1 #ifndef _KVI_IRCSERVER_H_
2 #define _KVI_IRCSERVER_H_
39 #include <QStringList>
118 return m_pReconnectInfo;
121 void clearReconnectInfo();
129 inline int proxy() {
return m_iProxy; };
142 inline kvi_u32_t
port()
const {
return m_uPort; };
148 inline const QString &
password()
const {
return m_szPass; };
154 inline const QString &
saslNick()
const {
return m_szSaslNick; };
160 inline const QString &
saslPass()
const {
return m_szSaslPass; };
166 inline const QString &
nickName()
const {
return m_szNick; };
178 inline const QString &
initUMode()
const {
return m_szInitUMode; };
184 inline const QString &
hostName()
const {
return m_szHostname; };
190 inline const QString &
ip()
const {
return m_szIp; };
208 inline const QString &
userName()
const {
return m_szUser; };
214 inline const QString &
realName()
const {
return m_szRealName; };
220 inline const QString &
linkFilter()
const {
return m_szLinkFilter; };
226 inline const QString &
description()
const {
return m_szDescription; };
234 inline const QString &
encoding()
const {
return m_szEncoding; };
241 inline const QString &
textEncoding()
const {
return m_szTextEncoding; };
247 inline const QString &
id()
const {
return m_szId; };
321 inline void setProxy(
int iProxy) { m_iProxy = iProxy; };
328 inline void setIp(
const QString & szIp) { m_szIp = szIp; };
349 inline void setDescription(
const QString & szDesc) { m_szDescription = szDesc; };
356 inline void setUserName(
const QString & szUser) { m_szUser = szUser; };
363 inline void setPassword(
const QString & szPass) { m_szPass = szPass; };
370 inline void setNickName(
const QString & szNick) { m_szNick = szNick; };
384 inline void setSaslPass(
const QString & szPass) { m_szSaslPass = szPass; };
391 inline void setSaslNick(
const QString & szNick) { m_szSaslNick = szNick; };
398 inline void setRealName(
const QString & szReal) { m_szRealName = szReal; };
408 inline void setEncoding(
const QString & szEncoding) { m_szEncoding = szEncoding; };
416 inline void setTextEncoding(
const QString & szEncoding) { m_szTextEncoding = szEncoding; };
423 inline void setInitUMode(
const QString & szUMode) { m_szInitUMode = szUMode; };
448 inline void setLinkFilter(
const QString & szFilter) { m_szLinkFilter = szFilter; };
456 void setAutoJoinChannelList(QStringList * pNewChannelList);
463 void setAutoJoinChannelList(
const QString & szNewChannelList);
470 inline void setAutoConnect(
bool bAutoConnect) { m_bAutoConnect = bAutoConnect; };
477 inline void setUserIdentityId(
const QString & szUserIdentityId) { m_szUserIdentityId = szUserIdentityId; };
489 m_uFlags &=
static_cast<unsigned short>(~
KviIrcServer::IPv6);
502 m_uFlags &=
static_cast<unsigned short>(~
KviIrcServer::SSL);
515 m_uFlags &=
static_cast<unsigned short>(~
KviIrcServer::STARTTLS);
528 m_uFlags &=
static_cast<unsigned short>(~
KviIrcServer::CAP);
541 m_uFlags &=
static_cast<unsigned short>(~
KviIrcServer::SASL);
554 m_uFlags &=
static_cast<unsigned short>(~
KviIrcServer::CacheIP);
561 void generateUniqueId();
568 inline void setId(
const QString & szId)
608 m_uFlags &=
static_cast<unsigned short>(~
KviIrcServer::FAVORITE);
618 #endif //_KVI_IRCSERVER_H_
Definition: KviIrcServer.h:62
const QString & saslNick() const
Returns the nickname used for sasl auth.
Definition: KviIrcServer.h:154
Definition: KviHeapObject.h:124
QString m_szAlternativeNick
Definition: KviIrcServer.h:100
QString m_szUser
Definition: KviIrcServer.h:97
bool isIPv6() const
Returns true if the server uses IPv6.
Definition: KviIrcServer.h:277
KviIrcServerReconnectInfo * reconnectInfo()
Definition: KviIrcServer.h:116
The class which manages the irc servers.
Definition: KviIrcServer.h:51
QString m_szDescription
Definition: KviIrcServer.h:91
const QString & hostName() const
Returns the hostname of the user associated to the server.
Definition: KviIrcServer.h:184
Definition: KviIrcServer.h:60
const QString & nickName() const
Returns the nickname of the user associated to the server.
Definition: KviIrcServer.h:166
Definition: KviNickServRuleSet.h:36
void setPort(kvi_u32_t uPort)
Sets the port for the server.
Definition: KviIrcServer.h:335
const QString autoJoinChannelListAsString()
Returns the list of the channels in the autojoin list as a string.
Definition: KviIrcServer.h:271
QString m_szSaslPass
Definition: KviIrcServer.h:113
bool cacheIp() const
Returns true if the server caches the IP.
Definition: KviIrcServer.h:307
Definition: KviIrcServer.h:66
QString m_szPass
Definition: KviIrcServer.h:98
const QString & ip() const
Returns the IP address of the server.
Definition: KviIrcServer.h:190
const QString & alternativeNickName() const
Returns the alternative nickname of the user associated to the server.
Definition: KviIrcServer.h:172
void setFavorite(bool bSet)
Sets the server to a favorite.
Definition: KviIrcServer.h:603
const QString & userIdentityId() const
Returns the id of the user associated to the server.
Definition: KviIrcServer.h:253
Definition: KviConfigurationFile.h:48
Definition: KviIrcServer.h:63
void setIp(const QString &szIp)
Sets the IP for the server.
Definition: KviIrcServer.h:328
bool enabledCAP() const
Returns true if the CAP protocol is enabled for this server.
Definition: KviIrcServer.h:289
bool enabledSTARTTLS() const
Returns true if the STARTTLS protocol is enabled for this server.
Definition: KviIrcServer.h:295
void setOnLoginCommand(const QString &szCmd)
Sets the commands to run on server login.
Definition: KviIrcServer.h:437
void setSaslNick(const QString &szNick)
Sets the nickname used for sasl auth.
Definition: KviIrcServer.h:391
QString m_szOnConnectCommand
Definition: KviIrcServer.h:103
bool enabledSASL() const
Returns true if the SASL protocol is enabled for this server.
Definition: KviIrcServer.h:301
bool useSSL() const
Returns true if the server uses SSL.
Definition: KviIrcServer.h:283
void setUseSSL(bool bSet)
Sets if the server uses SSL.
Definition: KviIrcServer.h:497
const QString & id() const
Returns the id of the server.
Definition: KviIrcServer.h:247
Definition: KviProxy.h:37
int m_iProxy
Definition: KviIrcServer.h:111
const QString & onConnectCommand() const
Returns the commands to run on server connection.
Definition: KviIrcServer.h:202
const QString & description() const
Returns the description of the server.
Definition: KviIrcServer.h:226
bool favorite() const
Returns if the server is a favorite.
Definition: KviIrcServer.h:615
void setEnabledCAP(bool bSet)
Sets if CAP support is enabled/disabled for this server.
Definition: KviIrcServer.h:523
void setId(const QString &szId)
Sets an unique id for the server.
Definition: KviIrcServer.h:568
QString m_szOnLoginCommand
Definition: KviIrcServer.h:104
unsigned short int m_uFlags
Definition: KviIrcServer.h:93
QString szHost
Definition: libkvisetup.cpp:45
KviIrcServerReconnectInfo * m_pReconnectInfo
Definition: KviIrcServer.h:88
QString m_szUserIdentityId
Definition: KviIrcServer.h:96
QString m_szEncoding
Definition: KviIrcServer.h:106
const QString & onLoginCommand() const
Returns the commands to run on server login.
Definition: KviIrcServer.h:196
void setUserIdentityId(const QString &szUserIdentityId)
Sets the id of the user associated to the server.
Definition: KviIrcServer.h:477
A class for reconnecting purposes.
Definition: KviIrcServerReconnectInfo.h:47
int proxy()
Returns the proxy server's id.
Definition: KviIrcServer.h:129
void setIPv6(bool bSet)
Sets if the server uses IPv6.
Definition: KviIrcServer.h:484
void setHostName(const QString &szHost)
Sets the hostname for the server.
Definition: KviIrcServer.h:342
const QString & initUMode() const
Returns the user modes of the user associated to the server.
Definition: KviIrcServer.h:178
const QString & encoding() const
Returns the encoding associated to the server Some information as nickname and channel names are enco...
Definition: KviIrcServer.h:234
void setTextEncoding(const QString &szEncoding)
Sets the encoding associated to the server This is the default encoding when talking on channels or q...
Definition: KviIrcServer.h:416
bool save(KviThemeInfo &options, bool bSaveIcons)
Definition: KviOptions.cpp:986
QString m_szNick
Definition: KviIrcServer.h:99
void setLinkFilter(const QString &szFilter)
Applies the filter to the server.
Definition: KviIrcServer.h:448
void setRealName(const QString &szReal)
Sets the realname of the user associated to the server.
Definition: KviIrcServer.h:398
void setEnabledSASL(bool bSet)
Sets if SASL support is enabled/disabled for this server.
Definition: KviIrcServer.h:536
const QString & userName() const
Returns the username of the user associated to the server.
Definition: KviIrcServer.h:208
Flags
Contains the features supported by the server.
Definition: KviIrcServer.h:58
void setInitUMode(const QString &szUMode)
Sets the user modes of the user associated to the server.
Definition: KviIrcServer.h:423
QString m_szIp
Definition: KviIrcServer.h:90
QString m_szHostname
Definition: KviIrcServer.h:89
Definition: KviIrcServer.h:61
bool autoConnect() const
Returns true if the server is in autoconnect mode.
Definition: KviIrcServer.h:259
void setAlternativeNickName(const QString &szNick)
Sets the alternative nickname of the user associated to the server.
Definition: KviIrcServer.h:377
void setEnabledSTARTTLS(bool bSet)
Sets if STARTTLS support is enabled/disabled for this server.
Definition: KviIrcServer.h:510
C++ Template based double linked pointer list class.
QString m_szSaslNick
Definition: KviIrcServer.h:112
void setDescription(const QString &szDesc)
Sets the description for the server.
Definition: KviIrcServer.h:349
const QString & password() const
Returns the password of the user associated to the server.
Definition: KviIrcServer.h:148
Definition: KviProxyDataBase.h:33
void setPassword(const QString &szPass)
Sets the password of the user associated to the server.
Definition: KviIrcServer.h:363
bool m_bAutoConnect
Definition: KviIrcServer.h:109
void setProxy(int iProxy)
Sets the proxy server for the server.
Definition: KviIrcServer.h:321
void setEncoding(const QString &szEncoding)
Sets the encoding associated to the server Some information as nickname and channel names are encoded...
Definition: KviIrcServer.h:408
QString m_szInitUMode
Definition: KviIrcServer.h:102
Definition: KviIrcServer.h:64
unsigned int uPort
Definition: libkvisetup.cpp:44
void setNickName(const QString &szNick)
Sets the nickname of the user associated to the server.
Definition: KviIrcServer.h:370
QString m_szRealName
Definition: KviIrcServer.h:101
QString m_szId
Definition: KviIrcServer.h:110
void setCacheIp(bool bSet)
Sets if the server caches the IP.
Definition: KviIrcServer.h:549
const QString & realName() const
Returns the realname of the user associated to the server.
Definition: KviIrcServer.h:214
QStringList * autoJoinChannelList()
Returns the list of the channels in the autojoin list.
Definition: KviIrcServer.h:265
void setAutoConnect(bool bAutoConnect)
Sets the autoconnection mode for the server.
Definition: KviIrcServer.h:470
void setUserName(const QString &szUser)
Sets the username of the user associated to the server.
Definition: KviIrcServer.h:356
QString m_szTextEncoding
Definition: KviIrcServer.h:107
const QString & textEncoding() const
Returns the text encoding associated to the server This is the default encoding when talking on chann...
Definition: KviIrcServer.h:241
This file contains compile time settings.
QString m_szLinkFilter
Definition: KviIrcServer.h:105
QStringList * m_pAutoJoinChannelList
Definition: KviIrcServer.h:108
kvi_u32_t port() const
Returns the port number.
Definition: KviIrcServer.h:142
void setOnConnectCommand(const QString &szCmd)
Sets the commands to run on server connection.
Definition: KviIrcServer.h:430
const QString & saslPass() const
Returns the password used for sasl auth.
Definition: KviIrcServer.h:160
#define KVILIB_API
Definition: kvi_settings.h:125
const QString & linkFilter() const
Returns the filter applied on the server.
Definition: KviIrcServer.h:220
Helper functions for the QString class.
kvi_u32_t m_uPort
Definition: KviIrcServer.h:92
void setSaslPass(const QString &szPass)
Sets the password used for sasl auth.
Definition: KviIrcServer.h:384
Definition: KviIrcServer.h:65