1#ifndef _KVI_IRCSERVER_H_
2#define _KVI_IRCSERVER_H_
122 void clearReconnectInfo();
470 void setAutoJoinChannelList(QStringList * pNewChannelList);
477 void setAutoJoinChannelList(
const QString & szNewChannelList);
575 void generateUniqueId();
C++ Template based double linked pointer list class.
Definition KviConfigurationFile.h:50
Definition KviHeapObject.h:119
A class for reconnecting purposes.
Definition KviIrcServerReconnectInfo.h:47
The class which manages the irc servers.
Definition KviIrcServer.h:52
Flags
Contains the features supported by the server.
Definition KviIrcServer.h:59
@ STARTTLS
Definition KviIrcServer.h:63
@ CacheIP
Definition KviIrcServer.h:61
@ CAP
Definition KviIrcServer.h:65
@ IPv6
Definition KviIrcServer.h:60
@ SASL
Definition KviIrcServer.h:64
@ SSL
Definition KviIrcServer.h:62
@ FAVORITE
Definition KviIrcServer.h:66
QString m_szSaslNick
Definition KviIrcServer.h:112
KviIrcServer()
Constructs the server object.
Definition KviIrcServer.cpp:48
void setAutoConnect(bool bAutoConnect)
Sets the autoconnection mode for the server.
Definition KviIrcServer.h:484
QString m_szAlternativeNick
Definition KviIrcServer.h:100
bool favorite() const
Returns if the server is a favorite.
Definition KviIrcServer.h:629
QString m_szId
Definition KviIrcServer.h:110
kvi_u32_t port() const
Returns the port number.
Definition KviIrcServer.h:143
QString m_szUser
Definition KviIrcServer.h:97
const QString & id() const
Returns the id of the server.
Definition KviIrcServer.h:254
void setUserIdentityId(const QString &szUserIdentityId)
Sets the id of the user associated to the server.
Definition KviIrcServer.h:491
bool enabledCAP() const
Returns true if the CAP protocol is enabled for this server.
Definition KviIrcServer.h:296
const QString & userIdentityId() const
Returns the id of the user associated to the server.
Definition KviIrcServer.h:260
const QString & alternativeNickName() const
Returns the alternative nickname of the user associated to the server.
Definition KviIrcServer.h:179
void generateUniqueId()
Generates an unique id for the server and sets it.
Definition KviIrcServer.cpp:179
void setSaslMethod(const QString &szMethod)
Sets the sasl method to be used for auth.
Definition KviIrcServer.h:405
bool enabledSTARTTLS() const
Returns true if the STARTTLS protocol is enabled for this server.
Definition KviIrcServer.h:302
QString m_szIp
Definition KviIrcServer.h:90
void setIp(const QString &szIp)
Sets the IP for the server.
Definition KviIrcServer.h:335
QString m_szOnLoginCommand
Definition KviIrcServer.h:104
const QString & password() const
Returns the password of the user associated to the server.
Definition KviIrcServer.h:149
QStringList * m_pAutoJoinChannelList
Definition KviIrcServer.h:108
int m_iProxy
Definition KviIrcServer.h:111
bool autoConnect() const
Returns true if the server is in autoconnect mode.
Definition KviIrcServer.h:266
const QString & saslPass() const
Returns the password used for sasl auth.
Definition KviIrcServer.h:161
void setUseSSL(bool bSet)
Sets if the server uses SSL.
Definition KviIrcServer.h:511
const QString & saslNick() const
Returns the nickname used for sasl auth.
Definition KviIrcServer.h:155
void setIPv6(bool bSet)
Sets if the server uses IPv6.
Definition KviIrcServer.h:498
void setSaslPass(const QString &szPass)
Sets the password used for sasl auth.
Definition KviIrcServer.h:391
const QString & realName() const
Returns the realname of the user associated to the server.
Definition KviIrcServer.h:221
QString m_szLinkFilter
Definition KviIrcServer.h:105
QString m_szInitUMode
Definition KviIrcServer.h:102
void setDescription(const QString &szDesc)
Sets the description for the server.
Definition KviIrcServer.h:356
QString m_szTextEncoding
Definition KviIrcServer.h:107
int proxy() const
Returns the proxy server's id.
Definition KviIrcServer.h:130
void setRealName(const QString &szReal)
Sets the realname of the user associated to the server.
Definition KviIrcServer.h:412
void setOnConnectCommand(const QString &szCmd)
Sets the commands to run on server connection.
Definition KviIrcServer.h:444
KviIrcServerReconnectInfo * m_pReconnectInfo
Definition KviIrcServer.h:88
void setId(const QString &szId)
Sets an unique id for the server.
Definition KviIrcServer.h:582
const QString & hostName() const
Returns the hostname of the user associated to the server.
Definition KviIrcServer.h:191
void setSaslNick(const QString &szNick)
Sets the nickname used for sasl auth.
Definition KviIrcServer.h:398
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:430
void setProxy(int iProxy)
Sets the proxy server for the server.
Definition KviIrcServer.h:328
unsigned short int m_uFlags
Definition KviIrcServer.h:93
void setPort(kvi_u32_t uPort)
Sets the port for the server.
Definition KviIrcServer.h:342
const QString autoJoinChannelListAsString()
Returns the list of the channels in the autojoin list as a string.
Definition KviIrcServer.h:278
bool useSSL() const
Returns true if the server uses SSL.
Definition KviIrcServer.h:290
const QString & onLoginCommand() const
Returns the commands to run on server login.
Definition KviIrcServer.h:203
const QString & initUMode() const
Returns the user modes of the user associated to the server.
Definition KviIrcServer.h:185
QString m_szHostname
Definition KviIrcServer.h:89
KviIrcServerReconnectInfo * reconnectInfo()
Definition KviIrcServer.h:117
bool isIPv6() const
Returns true if the server uses IPv6.
Definition KviIrcServer.h:284
QString m_szUserIdentityId
Definition KviIrcServer.h:96
const QString & textEncoding() const
Returns the text encoding associated to the server This is the default encoding when talking on chann...
Definition KviIrcServer.h:248
QString m_szDescription
Definition KviIrcServer.h:91
QString m_szSaslPass
Definition KviIrcServer.h:113
QString m_szSaslMethod
Definition KviIrcServer.h:114
QString m_szOnConnectCommand
Definition KviIrcServer.h:103
const QString & userName() const
Returns the username of the user associated to the server.
Definition KviIrcServer.h:215
kvi_u32_t m_uPort
Definition KviIrcServer.h:92
void setEnabledSASL(bool bSet)
Sets if SASL support is enabled/disabled for this server.
Definition KviIrcServer.h:550
QStringList * autoJoinChannelList()
Returns the list of the channels in the autojoin list.
Definition KviIrcServer.h:272
const QString & linkFilter() const
Returns the filter applied on the server.
Definition KviIrcServer.h:227
void setEnabledSTARTTLS(bool bSet)
Sets if STARTTLS support is enabled/disabled for this server.
Definition KviIrcServer.h:524
void setPassword(const QString &szPass)
Sets the password of the user associated to the server.
Definition KviIrcServer.h:370
void setOnLoginCommand(const QString &szCmd)
Sets the commands to run on server login.
Definition KviIrcServer.h:451
bool enabledSASL() const
Returns true if the SASL protocol is enabled for this server.
Definition KviIrcServer.h:308
void setInitUMode(const QString &szUMode)
Sets the user modes of the user associated to the server.
Definition KviIrcServer.h:437
void setCacheIp(bool bSet)
Sets if the server caches the IP.
Definition KviIrcServer.h:563
const QString & saslMethod() const
Returns the sasl authentication method to be used.
Definition KviIrcServer.h:167
void setNickName(const QString &szNick)
Sets the nickname of the user associated to the server.
Definition KviIrcServer.h:377
void setAlternativeNickName(const QString &szNick)
Sets the alternative nickname of the user associated to the server.
Definition KviIrcServer.h:384
const QString & nickName() const
Returns the nickname of the user associated to the server.
Definition KviIrcServer.h:173
bool cacheIp() const
Returns true if the server caches the IP.
Definition KviIrcServer.h:314
QString m_szPass
Definition KviIrcServer.h:98
QString m_szEncoding
Definition KviIrcServer.h:106
void setEnabledCAP(bool bSet)
Sets if CAP support is enabled/disabled for this server.
Definition KviIrcServer.h:537
void setFavorite(bool bSet)
Sets the server to a favorite.
Definition KviIrcServer.h:617
const QString & encoding() const
Returns the encoding associated to the server Some information as nickname and channel names are enco...
Definition KviIrcServer.h:241
bool m_bAutoConnect
Definition KviIrcServer.h:109
void setEncoding(const QString &szEncoding)
Sets the encoding associated to the server Some information as nickname and channel names are encoded...
Definition KviIrcServer.h:422
const QString & description() const
Returns the description of the server.
Definition KviIrcServer.h:233
QString m_szRealName
Definition KviIrcServer.h:101
void setHostName(const QString &szHost)
Sets the hostname for the server.
Definition KviIrcServer.h:349
void setUserName(const QString &szUser)
Sets the username of the user associated to the server.
Definition KviIrcServer.h:363
const QString & onConnectCommand() const
Returns the commands to run on server connection.
Definition KviIrcServer.h:209
QString m_szNick
Definition KviIrcServer.h:99
void setLinkFilter(const QString &szFilter)
Applies the filter to the server.
Definition KviIrcServer.h:462
const QString & ip() const
Returns the IP address of the server.
Definition KviIrcServer.h:197
Definition KviNickServRuleSet.h:38
Definition KviProxyDataBase.h:37
This file contains compile time settings.
#define KVILIB_API
Definition kvi_settings.h:124
QString szHost
Definition libkvisetup.cpp:48
unsigned int uPort
Definition libkvisetup.cpp:47