![]() |
KVIrc
4.9.2
DeveloperAPIs
|
Network handling class. More...
#include <KviIrcNetwork.h>
Inheritance diagram for KviIrcNetwork:Public Member Functions | |
| const QString & | alternativeNickName () const |
| Returns the alternative nickname of the user associated to the network. More... | |
| bool | autoConnect () const |
| Returns true if the network has the autoconnect state on. More... | |
| QStringList * | autoJoinChannelList () |
| Returns the list of channels with autojoin flag. More... | |
| const QString | autoJoinChannelListAsString () |
| Returns the list of channels with autojoin flag as a string. More... | |
| void | copyFrom (const KviIrcNetwork &net) |
| Carbon copy. More... | |
| KviIrcServer * | currentServer () |
| Returns the current server. More... | |
| const QString & | description () const |
| Returns the description of the network. More... | |
| const QString & | encoding () const |
| Returns the encoding of the network. More... | |
| KviIrcServer * | findServer (const QString &szHostname) |
| Searches for a server in the network. More... | |
| KviIrcServer * | findServer (const KviIrcServer *pServer) |
| Searches for a server in the network. More... | |
| void | insertServer (KviIrcServer *pServer) |
| Adds a new server to the network. More... | |
| KviIrcNetwork (const QString &name) | |
| Construct the network object. More... | |
| KviIrcNetwork (const KviIrcNetwork &src) | |
| Carbon copy. More... | |
| const QString & | name () const |
| Returns the name of the network. More... | |
| const QString & | nickName () const |
| Returns the nickname of the user associated to the network. More... | |
| KviNickServRuleSet * | nickServRuleSet () |
| Returns a set of rules for the NickServ. More... | |
| const QString & | onConnectCommand () const |
| Returns the commands to run on network connect. More... | |
| const QString & | onLoginCommand () const |
| Returns the commands to run on network login. More... | |
| const QString & | password () const |
| Returns the password of the user associated to the network. More... | |
| const QString & | realName () const |
| Returns the realname of the user associated to the network. More... | |
| KviPointerList< KviIrcServer > * | serverList () |
| Returns a list of servers associated to the network. More... | |
| void | setAlternativeNickName (const QString &szNick) |
| Sets the alternative nickname of the user associated to the network. More... | |
| void | setAutoConnect (bool bAutoConnect) |
| Sets the autoconnect flag. More... | |
| void | setAutoJoinChannelList (QStringList *pNewChannelList) |
| Sets the list of channels to mark for autojoin. More... | |
| void | setAutoJoinChannelList (const QString &szNewChannelList) |
| Sets the list of channels to mark for autojoin. More... | |
| void | setCurrentServer (KviIrcServer *pServer) |
| Sets the current server. More... | |
| void | setDescription (const QString &szDescription) |
| Sets the description of the network. More... | |
| void | setEncoding (const QString &szEncoding) |
| Sets the encondig of the network. More... | |
| void | setName (const QString &szName) |
| Sets the name of the network. More... | |
| void | setNickName (const QString &szNick) |
| Sets the nickname of the user associated to the network. More... | |
| void | setNickServRuleSet (KviNickServRuleSet *pSet) |
| Sets the rules for NickServ. More... | |
| void | setOnConnectCommand (const QString &szCmd) |
| Sets the list of commands to run on network connection. More... | |
| void | setOnLoginCommand (const QString &szCmd) |
| Sets the list of commands to run on network login. More... | |
| void | setPassword (const QString &szPass) |
| Sets the password of the user associated to the network. More... | |
| void | setRealName (const QString &szReal) |
| Sets the realname of the user associated to the network. More... | |
| void | setTextEncoding (const QString &szEncoding) |
| Sets the text encondig of the network. More... | |
| void | setUserIdentityId (const QString &szUserIdentityId) |
| Sets the user identity id of the user associated to the network. More... | |
| void | setUserName (const QString &szUser) |
| Sets the username of the user associated to the network. More... | |
| const QString & | textEncoding () const |
| Returns the text encoding of the network. More... | |
| const QString & | userIdentityId () const |
| Returns the user identity of the user associated to the network. More... | |
| const QString & | userName () const |
| Returns the username of the user associated to the network. More... | |
| ~KviIrcNetwork () | |
| Destroys the network object. More... | |
Protected Attributes | |
| bool | m_bAutoConnect |
| QStringList * | m_pChannelList |
| KviIrcServer * | m_pCurrentServer |
| KviNickServRuleSet * | m_pNickServRuleSet |
| KviPointerList< KviIrcServer > * | m_pServerList |
| QString | m_szAlternativeNickName |
| QString | m_szDescription |
| QString | m_szEncoding |
| QString | m_szName |
| QString | m_szNickName |
| QString | m_szOnConnectCommand |
| QString | m_szOnLoginCommand |
| QString | m_szPass |
| QString | m_szRealName |
| QString | m_szTextEncoding |
| QString | m_szUserIdentityId |
| QString | m_szUserName |
Friends | |
| class | KviIrcServerDataBase |
Network handling class.
| KviIrcNetwork::KviIrcNetwork | ( | const QString & | name | ) |
Construct the network object.
| name | The name of the network |
References m_bAutoConnect, m_pChannelList, m_pCurrentServer, m_pNickServRuleSet, m_pServerList, m_szName, name(), and KviPointerList< T >::setAutoDelete().
| KviIrcNetwork::KviIrcNetwork | ( | const KviIrcNetwork & | src | ) |
Carbon copy.
| src | The source network |
References copyFrom(), m_pChannelList, m_pNickServRuleSet, m_pServerList, and KviPointerList< T >::setAutoDelete().
| KviIrcNetwork::~KviIrcNetwork | ( | ) |
Destroys the network object.
References m_pChannelList, m_pNickServRuleSet, and m_pServerList.
|
inline |
Returns the alternative nickname of the user associated to the network.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::pickNextLoginNickName().
|
inline |
Returns true if the network has the autoconnect state on.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget().
|
inline |
Returns the list of channels with autojoin flag.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::loginComplete().
|
inline |
Returns the list of channels with autojoin flag as a string.
| void KviIrcNetwork::copyFrom | ( | const KviIrcNetwork & | net | ) |
Carbon copy.
| net | The source network to copy from |
References m_bAutoConnect, m_pChannelList, m_pNickServRuleSet, m_szAlternativeNickName, m_szDescription, m_szEncoding, m_szName, m_szNickName, m_szOnConnectCommand, m_szOnLoginCommand, m_szPass, m_szRealName, m_szTextEncoding, m_szUserIdentityId, and m_szUserName.
Referenced by OptionsWidget_servers::commit(), and KviIrcNetwork().
| KviIrcServer * KviIrcNetwork::currentServer | ( | ) |
Returns the current server.
References KviPointerList< T >::first(), m_pCurrentServer, and m_pServerList.
Referenced by KviIrcContext::connectToCurrentServer().
|
inline |
Returns the description of the network.
Referenced by OptionsWidget_servers::filterTextEdited(), IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), IrcServerOptionsTreeWidgetItem::IrcServerOptionsTreeWidgetItem(), and IrcServerOptionsTreeWidgetItem::updateVisibleStrings().
|
inline |
Returns the encoding of the network.
Some information as nickname and channel names are encoded when communicating with the server
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::setupSrvCodec().
| KviIrcServer * KviIrcNetwork::findServer | ( | const QString & | szHostname | ) |
Searches for a server in the network.
| szHostname | The hostname of the server to find |
References KviQString::equalCI(), KviPointerList< T >::first(), m_pServerList, KviPointerList< T >::next(), and s.
Referenced by OptionsWidget_servers::commit(), serverdb_kvs_cmd_addServer(), and serverdb_kvs_fnc_serverExists().
| KviIrcServer * KviIrcNetwork::findServer | ( | const KviIrcServer * | pServer | ) |
Searches for a server in the network.
| pServer | The server to find |
References KviQString::equalCI(), KviPointerList< T >::first(), KviIrcServer::hostName(), KviIrcServer::id(), KviIrcServer::isIPv6(), m_pServerList, KviPointerList< T >::next(), KviIrcServer::port(), s, and KviIrcServer::useSSL().
| void KviIrcNetwork::insertServer | ( | KviIrcServer * | pServer | ) |
Adds a new server to the network.
| pServer | The source server to add |
References KviPointerList< T >::append(), and m_pServerList.
Referenced by OptionsWidget_servers::commit(), and serverdb_kvs_cmd_addServer().
|
inline |
Returns the name of the network.
Referenced by KviIrcServerDataBase::addNetwork(), KviIrcConnectionTargetResolver::asyncStartResolve(), OptionsWidget_servers::commit(), OptionsWidget_servers::filterTextEdited(), IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), IrcServerOptionsTreeWidgetItem::IrcServerOptionsTreeWidgetItem(), KviIrcNetwork(), KviIrcConnection::loginToIrcServer(), KviIrcServerDataBase::makeCurrentServer(), KviIrcConnection::pickNextLoginNickName(), and IrcServerOptionsTreeWidgetItem::updateVisibleStrings().
|
inline |
Returns the nickname of the user associated to the network.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::pickNextLoginNickName().
|
inline |
Returns a set of rules for the NickServ.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcServerParser::parseLiteralNotice().
|
inline |
Returns the commands to run on network connect.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::loginToIrcServer().
|
inline |
Returns the commands to run on network login.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::loginComplete().
|
inline |
Returns the password of the user associated to the network.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::loginToIrcServer().
|
inline |
Returns the realname of the user associated to the network.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::loginToIrcServer().
|
inline |
Returns a list of servers associated to the network.
Referenced by KviIrcServerDataBase::makeCurrentServer().
|
inline |
Sets the alternative nickname of the user associated to the network.
| szNick | The nickname |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the autoconnect flag.
| bAutoConnect | The state of the autoconnect flag |
Referenced by IrcNetworkDetailsWidget::fillData(), and serverdb_kvs_cmd_addNetwork().
| void KviIrcNetwork::setAutoJoinChannelList | ( | QStringList * | pNewChannelList | ) |
Sets the list of channels to mark for autojoin.
| pNewChannelList | The channel list |
References m_pChannelList.
Referenced by IrcNetworkDetailsWidget::fillData(), and KviIrcServerDataBase::load().
| void KviIrcNetwork::setAutoJoinChannelList | ( | const QString & | szNewChannelList | ) |
Sets the list of channels to mark for autojoin.
| szNewChannelList | A comma separated list of channels |
References m_pChannelList.
| void KviIrcNetwork::setCurrentServer | ( | KviIrcServer * | pServer | ) |
Sets the current server.
| pServer | The source server |
References KviPointerList< T >::findRef(), m_pCurrentServer, and m_pServerList.
Referenced by OptionsWidget_servers::commit(), KviIrcServerDataBase::makeCurrentBestServerInNetwork(), and KviIrcServerDataBase::makeCurrentServer().
|
inline |
Sets the description of the network.
| szDescription | The description of the network |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the encondig of the network.
Some information as nickname and channel names are encoded when communicating with the server
| szEncoding | The encoding of the network |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the name of the network.
| szName | The name of the network |
Referenced by OptionsWidget_servers::saveLastItem().
|
inline |
Sets the nickname of the user associated to the network.
| szNick | The nickname |
Referenced by IrcNetworkDetailsWidget::fillData().
| void KviIrcNetwork::setNickServRuleSet | ( | KviNickServRuleSet * | pSet | ) |
Sets the rules for NickServ.
| pSet | The rule set where to add rules |
References m_pNickServRuleSet, and s.
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the list of commands to run on network connection.
| szCmd | The commands list to run |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the list of commands to run on network login.
| szCmd | The commands list to run |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the password of the user associated to the network.
| szPass | The password |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the realname of the user associated to the network.
| szReal | The realname |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the text encondig of the network.
This is the default encoding when talking on channels or queries
| szEncoding | The text encoding of the network |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Sets the user identity id of the user associated to the network.
| szUserIdentityId | The user identity |
|
inline |
Sets the username of the user associated to the network.
| szUser | The username |
Referenced by IrcNetworkDetailsWidget::fillData().
|
inline |
Returns the text encoding of the network.
This is the default encoding when talking on channels or queries
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::setupTextCodec().
|
inline |
Returns the user identity of the user associated to the network.
Referenced by KviIrcContext::connectToCurrentServer().
|
inline |
Returns the username of the user associated to the network.
Referenced by IrcNetworkDetailsWidget::IrcNetworkDetailsWidget(), and KviIrcConnection::loginToIrcServer().
|
friend |
|
protected |
autoconnect
Referenced by copyFrom(), KviIrcNetwork(), and KviIrcServerDataBase::load().
|
protected |
Channels to auto join
Referenced by copyFrom(), KviIrcNetwork(), setAutoJoinChannelList(), and ~KviIrcNetwork().
|
protected |
Referenced by currentServer(), KviIrcNetwork(), KviIrcServerDataBase::load(), and setCurrentServer().
|
protected |
set of nick serv rules
Referenced by copyFrom(), KviIrcNetwork(), KviIrcServerDataBase::load(), setNickServRuleSet(), and ~KviIrcNetwork().
|
protected |
|
protected |
alternative nick name
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
if empty, use system default
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
Referenced by copyFrom(), and KviIrcNetwork().
|
protected |
preferred nick name
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
the command to run on connect
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
the command to run after login
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
special password
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
preferred real name
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
if empty, use system default
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
The user identity to use for this server: if empty then use the global primary identity moved from KviIrcServerDataBaseRecord
Referenced by copyFrom(), and KviIrcServerDataBase::load().
|
protected |
preferred user name
Referenced by copyFrom(), and KviIrcServerDataBase::load().
1.8.7