KVIrc
4.9.2
DeveloperAPIs
|
The class which manages the irc servers. More...
#include <KviIrcServer.h>
Public Types | |
enum | Flags { IPv6 = 1, CacheIP = 2, SSL = 4, STARTTLS = 8, SASL = 16, CAP = 32, FAVORITE = 64 } |
Contains the features supported by the server. More... | |
Public Member Functions | |
const QString & | alternativeNickName () const |
Returns the alternative nickname of the user associated to the server. More... | |
bool | autoConnect () const |
Returns true if the server is in autoconnect mode. More... | |
QStringList * | autoJoinChannelList () |
Returns the list of the channels in the autojoin list. More... | |
const QString | autoJoinChannelListAsString () |
Returns the list of the channels in the autojoin list as a string. More... | |
bool | cacheIp () const |
Returns true if the server caches the IP. More... | |
void | clearReconnectInfo () |
const QString & | description () const |
Returns the description of the server. More... | |
bool | enabledCAP () const |
Returns true if the CAP protocol is enabled for this server. More... | |
bool | enabledSASL () const |
Returns true if the SASL protocol is enabled for this server. More... | |
bool | enabledSTARTTLS () const |
Returns true if the STARTTLS protocol is enabled for this server. More... | |
const QString & | encoding () const |
Returns the encoding associated to the server Some information as nickname and channel names are encoded when communicating with the server. More... | |
bool | favorite () const |
Returns if the server is a favorite. More... | |
void | generateUniqueId () |
Generates an unique id for the server and sets it. More... | |
const QString & | hostName () const |
Returns the hostname of the user associated to the server. More... | |
const QString & | id () const |
Returns the id of the server. More... | |
const QString & | initUMode () const |
Returns the user modes of the user associated to the server. More... | |
const QString & | ip () const |
Returns the IP address of the server. More... | |
QString | ircUri () |
Returns the irc URI for the server The URI is in the form irc[[s]6]://name.serverhost.tld. More... | |
bool | isIPv6 () const |
Returns true if the server uses IPv6. More... | |
KviIrcServer () | |
Constructs the server object. More... | |
KviIrcServer (const KviIrcServer &serv) | |
Carbon copy. More... | |
const QString & | linkFilter () const |
Returns the filter applied on the server. More... | |
bool | load (KviConfigurationFile *pCfg, const QString &szPrefix) |
Loads the information from the configuration file. More... | |
const QString & | nickName () const |
Returns the nickname of the user associated to the server. More... | |
const QString & | onConnectCommand () const |
Returns the commands to run on server connection. More... | |
const QString & | onLoginCommand () const |
Returns the commands to run on server login. More... | |
void | operator= (const KviIrcServer &serv) |
Carbon copy. More... | |
const QString & | password () const |
Returns the password of the user associated to the server. More... | |
kvi_u32_t | port () const |
Returns the port number. More... | |
int | proxy () |
Returns the proxy server's id. More... | |
KviProxy * | proxyServer (KviProxyDataBase *pDb) |
Returns the proxy server. More... | |
const QString & | realName () const |
Returns the realname of the user associated to the server. More... | |
KviIrcServerReconnectInfo * | reconnectInfo () |
const QString & | saslNick () const |
Returns the nickname used for sasl auth. More... | |
const QString & | saslPass () const |
Returns the password used for sasl auth. More... | |
void | save (KviConfigurationFile *pCfg, const QString &szPrefix) |
Saves the information to the configuration file. More... | |
void | setAlternativeNickName (const QString &szNick) |
Sets the alternative nickname of the user associated to the server. More... | |
void | setAutoConnect (bool bAutoConnect) |
Sets the autoconnection mode for the server. More... | |
void | setAutoJoinChannelList (QStringList *pNewChannelList) |
Sets the list of channels to autojoin after connection The channel list must be allocated with a new! More... | |
void | setAutoJoinChannelList (const QString &szNewChannelList) |
Sets the list of channels to mark for autojoin. More... | |
void | setCacheIp (bool bSet) |
Sets if the server caches the IP. More... | |
void | setDescription (const QString &szDesc) |
Sets the description for the server. More... | |
void | setEnabledCAP (bool bSet) |
Sets if CAP support is enabled/disabled for this server. More... | |
void | setEnabledSASL (bool bSet) |
Sets if SASL support is enabled/disabled for this server. More... | |
void | setEnabledSTARTTLS (bool bSet) |
Sets if STARTTLS support is enabled/disabled for this server. More... | |
void | setEncoding (const QString &szEncoding) |
Sets the encoding associated to the server Some information as nickname and channel names are encoded when communicating with the server This is the default encoding when talking on channels or queries. More... | |
void | setFavorite (bool bSet) |
Sets the server to a favorite. More... | |
void | setHostName (const QString &szHost) |
Sets the hostname for the server. More... | |
void | setId (const QString &szId) |
Sets an unique id for the server. More... | |
void | setInitUMode (const QString &szUMode) |
Sets the user modes of the user associated to the server. More... | |
void | setIp (const QString &szIp) |
Sets the IP for the server. More... | |
void | setIPv6 (bool bSet) |
Sets if the server uses IPv6. More... | |
void | setLinkFilter (const QString &szFilter) |
Applies the filter to the server. More... | |
void | setNickName (const QString &szNick) |
Sets the nickname of the user associated to the server. More... | |
void | setOnConnectCommand (const QString &szCmd) |
Sets the commands to run on server connection. More... | |
void | setOnLoginCommand (const QString &szCmd) |
Sets the commands to run on server login. More... | |
void | setPassword (const QString &szPass) |
Sets the password of the user associated to the server. More... | |
void | setPort (kvi_u32_t uPort) |
Sets the port for the server. More... | |
void | setProxy (int iProxy) |
Sets the proxy server for the server. More... | |
void | setRealName (const QString &szReal) |
Sets the realname of the user associated to the server. More... | |
void | setReconnectInfo (KviIrcServerReconnectInfo *pInfo) |
void | setSaslNick (const QString &szNick) |
Sets the nickname used for sasl auth. More... | |
void | setSaslPass (const QString &szPass) |
Sets the password used for sasl auth. More... | |
void | setTextEncoding (const QString &szEncoding) |
Sets the encoding associated to the server This is the default encoding when talking on channels or queries. More... | |
void | setUserIdentityId (const QString &szUserIdentityId) |
Sets the id of the user associated to the server. More... | |
void | setUserName (const QString &szUser) |
Sets the username of the user associated to the server. More... | |
void | setUseSSL (bool bSet) |
Sets if the server uses SSL. More... | |
const QString & | textEncoding () const |
Returns the text encoding associated to the server This is the default encoding when talking on channels or queries. More... | |
const QString & | userIdentityId () const |
Returns the id of the user associated to the server. More... | |
const QString & | userName () const |
Returns the username of the user associated to the server. More... | |
bool | useSSL () const |
Returns true if the server uses SSL. More... | |
~KviIrcServer () | |
Destroys the server object. More... | |
Private Attributes | |
bool | m_bAutoConnect |
int | m_iProxy |
QStringList * | m_pAutoJoinChannelList |
KviIrcServerReconnectInfo * | m_pReconnectInfo |
QString | m_szAlternativeNick |
QString | m_szDescription |
QString | m_szEncoding |
QString | m_szHostname |
QString | m_szId |
QString | m_szInitUMode |
QString | m_szIp |
QString | m_szLinkFilter |
QString | m_szNick |
QString | m_szOnConnectCommand |
QString | m_szOnLoginCommand |
QString | m_szPass |
QString | m_szRealName |
QString | m_szSaslNick |
QString | m_szSaslPass |
QString | m_szTextEncoding |
QString | m_szUser |
QString | m_szUserIdentityId |
unsigned short int | m_uFlags |
kvi_u32_t | m_uPort |
The class which manages the irc servers.
enum KviIrcServer::Flags |
KviIrcServer::KviIrcServer | ( | ) |
Constructs the server object.
References m_bAutoConnect, m_iProxy, m_pAutoJoinChannelList, m_pReconnectInfo, m_uFlags, and m_uPort.
KviIrcServer::KviIrcServer | ( | const KviIrcServer & | serv | ) |
Carbon copy.
serv | The irc server |
References m_bAutoConnect, m_iProxy, m_pAutoJoinChannelList, m_pReconnectInfo, m_szAlternativeNick, m_szDescription, m_szEncoding, m_szHostname, m_szId, m_szInitUMode, m_szIp, m_szLinkFilter, m_szNick, m_szOnConnectCommand, m_szOnLoginCommand, m_szPass, m_szRealName, m_szSaslNick, m_szSaslPass, m_szTextEncoding, m_szUser, m_szUserIdentityId, m_uFlags, and m_uPort.
KviIrcServer::~KviIrcServer | ( | ) |
Destroys the server object.
References m_pAutoJoinChannelList, and m_pReconnectInfo.
|
inline |
Returns the alternative nickname of the user associated to the server.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::pickNextLoginNickName().
|
inline |
Returns true if the server is in autoconnect mode.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), KviIrcServerDataBase::load(), and save().
|
inline |
Returns the list of the channels in the autojoin list.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), KviIrcConnection::loginComplete(), and save().
|
inline |
Returns the list of the channels in the autojoin list as a string.
|
inline |
Returns true if the server caches the IP.
References CacheIP.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), KviIrcConnectionTargetResolver::lookupServerHostname(), KviIrcSocket::proxySendTargetDataV5(), and save().
void KviIrcServer::clearReconnectInfo | ( | ) |
References m_pReconnectInfo.
Referenced by KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), and KviIrcConnection::loginComplete().
|
inline |
Returns the description of the server.
Referenced by OptionsWidget_servers::filterTextEdited(), IrcServerDetailsWidget::IrcServerDetailsWidget(), IrcServerOptionsTreeWidgetItem::IrcServerOptionsTreeWidgetItem(), and IrcServerOptionsTreeWidgetItem::updateVisibleStrings().
|
inline |
Returns true if the CAP protocol is enabled for this server.
References CAP.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and save().
|
inline |
Returns true if the SASL protocol is enabled for this server.
References SASL.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and save().
|
inline |
Returns true if the STARTTLS protocol is enabled for this server.
References STARTTLS.
Referenced by KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), and save().
|
inline |
Returns the encoding associated to the server Some information as nickname and channel names are encoded when communicating with the server.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::setupSrvCodec().
|
inline |
Returns if the server is a favorite.
References FAVORITE.
Referenced by OptionsWidget_servers::favoriteServer(), save(), and OptionsWidget_servers::updateFavoritesFilter().
void KviIrcServer::generateUniqueId | ( | ) |
Generates an unique id for the server and sets it.
References kvi_gettimeofday(), and m_szId.
Referenced by OptionsWidget_servers::commit(), IrcServerDetailsWidget::fillData(), IrcServerDetailsWidget::IrcServerDetailsWidget(), load(), OptionsWidget_servers::newServer(), and OptionsWidget_servers::pasteServer().
|
inline |
Returns the hostname of the user associated to the server.
Referenced by KviIrcConnectionTargetResolver::asyncStartResolve(), OptionsWidget_servers::commit(), KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), OptionsWidget_servers::currentItemChanged(), OptionsWidget_servers::filterTextEdited(), KviIrcNetwork::findServer(), OptionsWidget_servers::importServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), IrcServerOptionsTreeWidgetItem::IrcServerOptionsTreeWidgetItem(), KviIrcUrl::join(), KviIrcConnection::loginToIrcServer(), KviIrcConnectionTargetResolver::lookupServerHostname(), KviIrcSocket::proxyLoginHttp(), KviIrcSocket::proxySendTargetDataV5(), KviIrcUrl::run(), OptionsWidget_servers::selectBestServerByUrl(), KviIrcConnectionTargetResolver::serverLookupTerminated(), and IrcServerOptionsTreeWidgetItem::updateVisibleStrings().
|
inline |
Returns the id of the server.
Referenced by OptionsWidget_servers::commit(), KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), IrcServerDetailsWidget::fillData(), KviIrcNetwork::findServer(), and IrcServerDetailsWidget::IrcServerDetailsWidget().
|
inline |
Returns the user modes of the user associated to the server.
Referenced by KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::loginComplete().
|
inline |
Returns the IP address of the server.
Referenced by KviIrcContext::connectionTerminated(), OptionsWidget_servers::importServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), KviIrcConnectionTargetResolver::lookupServerHostname(), KviIrcSocket::proxyLoginV4(), KviIrcSocket::proxySendTargetDataV5(), and KviIrcSocket::startConnection().
QString KviIrcServer::ircUri | ( | ) |
Returns the irc URI for the server The URI is in the form irc[[s]6]://name.serverhost.tld.
References isIPv6(), m_szHostname, m_uPort, and useSSL().
|
inline |
Returns true if the server uses IPv6.
References IPv6.
Referenced by KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), IrcServerDetailsWidget::fillData(), KviIrcNetwork::findServer(), KviIrcConnectionTargetResolver::haveServerIp(), OptionsWidget_servers::importServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), ircUri(), KviConsoleWindow::isIPv6Connection(), KviIrcUrl::join(), KviIrcConnectionTargetResolver::lookupServerHostname(), KviIrcSocket::proxySendTargetDataV5(), KviIrcUrl::run(), save(), OptionsWidget_servers::selectBestServerByUrl(), KviIrcConnectionTargetResolver::serverLookupTerminated(), KviIrcSocket::startConnection(), and KviIrcConnectionTargetResolver::validateLocalAddress().
|
inline |
Returns the filter applied on the server.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcLink::resolverTerminated().
bool KviIrcServer::load | ( | KviConfigurationFile * | pCfg, |
const QString & | szPrefix | ||
) |
Loads the information from the configuration file.
pCfg | The configuration file |
szPrefix | The prefix of the server |
References generateUniqueId(), l, m_bAutoConnect, m_szAlternativeNick, m_szDescription, m_szEncoding, m_szHostname, m_szId, m_szInitUMode, m_szIp, m_szLinkFilter, m_szNick, m_szOnConnectCommand, m_szOnLoginCommand, m_szPass, m_szRealName, m_szSaslNick, m_szSaslPass, m_szTextEncoding, m_szUser, m_szUserIdentityId, m_uPort, KviConfigurationFile::readBoolEntry(), KviConfigurationFile::readEntry(), KviConfigurationFile::readIntEntry(), KviConfigurationFile::readStringListEntry(), KviConfigurationFile::readUIntEntry(), setAutoJoinChannelList(), setCacheIp(), setEnabledCAP(), setEnabledSASL(), setEnabledSTARTTLS(), setFavorite(), setIPv6(), setProxy(), and setUseSSL().
Referenced by KviIrcServerDataBase::load().
|
inline |
Returns the nickname of the user associated to the server.
Referenced by OptionsWidget_servers::importServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::pickNextLoginNickName().
|
inline |
Returns the commands to run on server connection.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::loginToIrcServer().
|
inline |
Returns the commands to run on server login.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::loginComplete().
void KviIrcServer::operator= | ( | const KviIrcServer & | serv | ) |
Carbon copy.
serv | The server to copy |
References m_bAutoConnect, m_iProxy, m_pAutoJoinChannelList, m_pReconnectInfo, m_szAlternativeNick, m_szDescription, m_szEncoding, m_szHostname, m_szId, m_szInitUMode, m_szIp, m_szLinkFilter, m_szNick, m_szOnConnectCommand, m_szOnLoginCommand, m_szPass, m_szRealName, m_szSaslNick, m_szSaslPass, m_szTextEncoding, m_szUser, m_szUserIdentityId, m_uFlags, and m_uPort.
|
inline |
Returns the password of the user associated to the server.
Referenced by KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), OptionsWidget_servers::importServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::loginToIrcServer().
|
inline |
Returns the port number.
Referenced by KviIrcConnectionTargetResolver::asyncStartResolve(), KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), KviIrcNetwork::findServer(), OptionsWidget_servers::importServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), KviIrcUrl::join(), KviIrcSocket::proxyLoginHttp(), KviIrcSocket::proxyLoginV4(), KviIrcSocket::proxySendTargetDataV5(), KviIrcUrl::run(), OptionsWidget_servers::selectBestServerByUrl(), and KviIrcSocket::startConnection().
|
inline |
Returns the proxy server's id.
Referenced by KviIrcContext::connectToCurrentServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), proxyServer(), and save().
KviProxy * KviIrcServer::proxyServer | ( | KviProxyDataBase * | pDb | ) |
Returns the proxy server.
pDb | The proxy database |
References KviPointerList< T >::first(), i, KviPointerList< T >::next(), proxy(), and KviProxyDataBase::proxyList().
Referenced by KviIrcContext::connectToCurrentServer().
|
inline |
Returns the realname of the user associated to the server.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::loginToIrcServer().
|
inline |
|
inline |
Returns the nickname used for sasl auth.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget().
|
inline |
Returns the password used for sasl auth.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget().
void KviIrcServer::save | ( | KviConfigurationFile * | pCfg, |
const QString & | szPrefix | ||
) |
Saves the information to the configuration file.
pCfg | The configuration file |
szPrefix | The prefix of the server |
References autoConnect(), autoJoinChannelList(), cacheIp(), enabledCAP(), enabledSASL(), enabledSTARTTLS(), favorite(), isIPv6(), m_szAlternativeNick, m_szDescription, m_szEncoding, m_szHostname, m_szId, m_szInitUMode, m_szIp, m_szLinkFilter, m_szNick, m_szOnConnectCommand, m_szOnLoginCommand, m_szPass, m_szRealName, m_szSaslNick, m_szSaslPass, m_szTextEncoding, m_szUser, m_szUserIdentityId, m_uPort, proxy(), useSSL(), and KviConfigurationFile::writeEntry().
|
inline |
Sets the alternative nickname of the user associated to the server.
szNick | The nick name of the user |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the autoconnection mode for the server.
bAutoConnect | Whether to set the autoconnection |
Referenced by IrcServerDetailsWidget::fillData(), and serverdb_kvs_cmd_addServer().
void KviIrcServer::setAutoJoinChannelList | ( | QStringList * | pNewChannelList | ) |
Sets the list of channels to autojoin after connection The channel list must be allocated with a new!
pNewChannelList | The list of channels to autojoin |
References m_pAutoJoinChannelList.
Referenced by IrcServerDetailsWidget::fillData(), and load().
void KviIrcServer::setAutoJoinChannelList | ( | const QString & | szNewChannelList | ) |
Sets the list of channels to mark for autojoin.
szNewChannelList | A comma separated list of channels |
References m_pAutoJoinChannelList.
|
inline |
Sets if the server caches the IP.
bSet | Whether to set the cache for the IP |
References CacheIP.
Referenced by IrcServerDetailsWidget::fillData(), load(), KviIrcServerDataBase::makeCurrentServer(), OptionsWidget_servers::newServer(), and serverdb_kvs_cmd_addServer().
|
inline |
Sets the description for the server.
szDesc | The description of the server |
Referenced by KviMircServersIniImport::doImport(), IrcServerDetailsWidget::fillData(), and KviIrcServerDataBase::importFromMircIni().
|
inline |
Sets if CAP support is enabled/disabled for this server.
bSet | Whether to enable the support for CAP |
References CAP.
Referenced by IrcServerDetailsWidget::fillData(), and load().
|
inline |
Sets if SASL support is enabled/disabled for this server.
bSet | Whether to enable the support for SASL |
References SASL.
Referenced by IrcServerDetailsWidget::fillData(), and load().
|
inline |
Sets if STARTTLS support is enabled/disabled for this server.
bSet | Whether to enable the support for STARTTLS |
References STARTTLS.
Referenced by IrcServerDetailsWidget::fillData(), and load().
|
inline |
Sets the encoding associated to the server Some information as nickname and channel names are encoded when communicating with the server This is the default encoding when talking on channels or queries.
szEncoding | The default encoding of the text |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the server to a favorite.
bSet | wether the server is a favorite or not |
References FAVORITE.
Referenced by OptionsWidget_servers::favoriteServer(), load(), and serverdb_kvs_cmd_addServer().
|
inline |
Sets the hostname for the server.
szHost | The host name of the user |
References szHost.
Referenced by KviMircServersIniImport::doImport(), KviIrcServerDataBase::importFromMircIni(), KviIrcServerDataBase::makeCurrentServer(), OptionsWidget_servers::newServer(), OptionsWidget_servers::saveLastItem(), serverdb_kvs_cmd_addServer(), and KviIrcConnectionTargetResolver::serverLookupTerminated().
|
inline |
Sets an unique id for the server.
szId | The id of the server |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the user modes of the user associated to the server.
szUMode | The user modes of the user |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the IP for the server.
szIp | The IP of the server |
Referenced by IrcServerDetailsWidget::fillData(), OptionsWidget_servers::importServer(), KviIrcConnectionTargetResolver::lookupServerHostname(), KviIrcServerDataBase::makeCurrentServer(), and KviIrcConnectionTargetResolver::serverLookupTerminated().
|
inline |
Sets if the server uses IPv6.
bSet | Whether to set the support for IPv6 |
References IPv6.
Referenced by IrcServerDetailsWidget::fillData(), load(), and serverdb_kvs_cmd_addServer().
|
inline |
Applies the filter to the server.
A link filter resides between the low-level socket, which send/receive blocks of bytes, and the connection which talk using IRC messages. The filter can remap blocks of bytes in any direction
szFilter |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the nickname of the user associated to the server.
szNick | The nick name of the user |
Referenced by IrcServerDetailsWidget::fillData(), and OptionsWidget_servers::importServer().
|
inline |
Sets the commands to run on server connection.
szCmd | The comands to run on connection |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the commands to run on server login.
szCmd | The comands to run on login |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the password of the user associated to the server.
szPass | The password of the user |
Referenced by IrcServerDetailsWidget::fillData(), OptionsWidget_servers::importServer(), and serverdb_kvs_cmd_addServer().
|
inline |
Sets the port for the server.
uPort | The port of the server |
References uPort.
Referenced by KviMircServersIniImport::doImport(), IrcServerDetailsWidget::fillData(), KviIrcServerDataBase::importFromMircIni(), OptionsWidget_servers::importServer(), and serverdb_kvs_cmd_addServer().
|
inline |
Sets the proxy server for the server.
iProxy | The proxy to connect through |
Referenced by IrcServerDetailsWidget::fillData(), and load().
|
inline |
Sets the realname of the user associated to the server.
szReal | The real name of the user |
Referenced by IrcServerDetailsWidget::fillData().
void KviIrcServer::setReconnectInfo | ( | KviIrcServerReconnectInfo * | pInfo | ) |
References m_pReconnectInfo.
Referenced by KviIrcContext::connectToCurrentServer().
|
inline |
Sets the nickname used for sasl auth.
szNick | The nick name of the user |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the password used for sasl auth.
szPass | The password of the user |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the encoding associated to the server This is the default encoding when talking on channels or queries.
szEncoding | The default encoding of the text |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets the id of the user associated to the server.
szUserIdentityId | The user identity id to set |
|
inline |
Sets the username of the user associated to the server.
szUser | The user name of the user |
Referenced by IrcServerDetailsWidget::fillData().
|
inline |
Sets if the server uses SSL.
bSet | Whether to set the support for SSL |
References SSL.
Referenced by IrcServerDetailsWidget::fillData(), load(), and serverdb_kvs_cmd_addServer().
|
inline |
Returns the text encoding associated to the server This is the default encoding when talking on channels or queries.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::setupTextCodec().
|
inline |
Returns the id of the user associated to the server.
Referenced by KviIrcContext::connectToCurrentServer().
|
inline |
Returns the username of the user associated to the server.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIrcConnection::loginToIrcServer().
|
inline |
Returns true if the server uses SSL.
References SSL.
Referenced by KviIrcConnectionTargetResolver::asyncStartResolve(), KviIrcSocket::connectedToIrcServer(), KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), KviIrcContext::connectToCurrentServer(), KviIrcNetwork::findServer(), OptionsWidget_servers::importServer(), IrcServerDetailsWidget::IrcServerDetailsWidget(), ircUri(), KviIrcUrl::join(), KviIrcUrl::run(), save(), OptionsWidget_servers::selectBestServerByUrl(), and KviIrcSocket::startConnection().
|
private |
autoconnect
Referenced by KviIrcServer(), load(), and operator=().
|
private |
proxy server's id
Referenced by KviIrcServer(), and operator=().
|
private |
Channels to auto join
Referenced by KviIrcServer(), operator=(), setAutoJoinChannelList(), and ~KviIrcServer().
|
private |
Referenced by clearReconnectInfo(), KviIrcServer(), operator=(), setReconnectInfo(), and ~KviIrcServer().
|
private |
alternate special nickname
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
the server description
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
if empty, use network encoding
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
the server hostname (or IP eventually)
Referenced by ircUri(), KviIrcServer(), load(), operator=(), and save().
|
private |
the server's may-be-unique id, may be auto-generated
Referenced by generateUniqueId(), KviIrcServer(), load(), operator=(), and save().
|
private |
special user mode
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
the server's cached ip (if we're caching)
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
the link filter object
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
special nickname
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
the command to run on connect
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
the command to run after login
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
special password
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
special real name
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
nickname for sasl auth
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
password for sasl auth
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
if empty, use network encoding
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
special username
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
the user identity to use for this server: if empty, then use the network identity instead
Referenced by KviIrcServer(), load(), operator=(), and save().
|
private |
flags
Referenced by KviIrcServer(), and operator=().
|
private |
the server's port
Referenced by ircUri(), KviIrcServer(), load(), operator=(), and save().