Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Network Class Reference

#include </tmp/quassel/src/common/network.h>

Inheritance diagram for Network:
Collaboration diagram for Network:

Classes

struct  Server

Public Slots

void setNetworkName (const QString &networkName)
void setCurrentServer (const QString &currentServer)
void setConnected (bool isConnected)
void setConnectionState (int state)
virtual void setMyNick (const QString &mynick)
void setLatency (int latency)
void setIdentity (IdentityId)
void setServerList (const QVariantList &serverList)
void setUseRandomServer (bool)
void setPerform (const QStringList &)
void setUseAutoIdentify (bool)
void setAutoIdentifyService (const QString &)
void setAutoIdentifyPassword (const QString &)
void setUseSasl (bool)
void setSaslAccount (const QString &)
void setSaslPassword (const QString &)
virtual void setUseAutoReconnect (bool)
virtual void setAutoReconnectInterval (quint32)
virtual void setAutoReconnectRetries (quint16)
void setUnlimitedReconnectRetries (bool)
void setRejoinChannels (bool)
void setCodecForServer (const QByteArray &codecName)
void setCodecForEncoding (const QByteArray &codecName)
void setCodecForDecoding (const QByteArray &codecName)
void addSupport (const QString &param, const QString &value=QString())
void removeSupport (const QString &param)
void addIrcUser (const QString &hostmask)
void addIrcChannel (const QString &channel)
QVariantMap initSupports () const
QVariantList initServerList () const
virtual QVariantMap initIrcUsersAndChannels () const
void initSetSupports (const QVariantMap &supports)
void initSetServerList (const QVariantList &serverList)
virtual void initSetIrcUsersAndChannels (const QVariantMap &usersAndChannels)
IrcUserupdateNickFromMask (const QString &mask)
void ircUserNickChanged (QString newnick)
virtual void requestConnect () const
virtual void requestDisconnect () const
virtual void requestSetNetworkInfo (const NetworkInfo &info)
void emitConnectionError (const QString &)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)

Signals

void aboutToBeDestroyed ()
void networkNameSet (const QString &networkName)
void currentServerSet (const QString &currentServer)
void connectedSet (bool isConnected)
void connectionStateSet (Network::ConnectionState)
void connectionError (const QString &errorMsg)
void myNickSet (const QString &mynick)
void identitySet (IdentityId)
void configChanged ()
void ircUserAdded (IrcUser *)
void ircChannelAdded (IrcChannel *)
void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

virtual QVariantMap toVariantMap ()
 Stores the object's state into a QVariantMap.
virtual void fromVariantMap (const QVariantMap &properties)
 Initialize the object's state from a given QVariantMap.
virtual bool isInitialized () const
virtual const QMetaObject * syncMetaObject () const
void setAllowClientUpdates (bool allow)
bool allowClientUpdates () const

Protected Slots

virtual void removeIrcUser (IrcUser *ircuser)
virtual void removeIrcChannel (IrcChannel *ircChannel)
virtual void removeChansAndUsers ()

Protected Member Functions

virtual IrcChannelircChannelFactory (const QString &channelname)
virtual IrcUserircUserFactory (const QString &hostmask)
void sync_call__ (SignalProxy::ProxyMode modeType, const char *funcname,...) const
void renameObject (const QString &newName)

Private Types

enum  ChannelModeType {
  NOT_A_CHANMODE = 0x00, A_CHANMODE = 0x01, B_CHANMODE = 0x02, C_CHANMODE = 0x04,
  D_CHANMODE = 0x08
}
typedef QList< ServerServerList

Private Member Functions

 Q_ENUMS (ConnectionState) Q_PROPERTY(QString networkName READ networkName WRITE setNetworkName) Q_PROPERTY(QString currentServer READ currentServer WRITE setCurrentServer) Q_PROPERTY(QString myNick READ myNick WRITE setMyNick) Q_PROPERTY(int latency READ latency WRITE setLatency) Q_PROPERTY(QByteArray codecForServer READ codecForServer WRITE setCodecForServer) Q_PROPERTY(QByteArray codecForEncoding READ codecForEncoding WRITE setCodecForEncoding) Q_PROPERTY(QByteArray codecForDecoding READ codecForDecoding WRITE setCodecForDecoding) Q_PROPERTY(IdentityId identityId READ identity WRITE setIdentity) Q_PROPERTY(bool isConnected READ isConnected WRITE setConnected) Q_PROPERTY(int connectionState READ connectionState WRITE setConnectionState) Q_PROPERTY(bool useRandomServer READ useRandomServer WRITE setUseRandomServer) Q_PROPERTY(QStringList perform READ perform WRITE setPerform) Q_PROPERTY(bool useAutoIdentify READ useAutoIdentify WRITE setUseAutoIdentify) Q_PROPERTY(QString autoIdentifyService READ autoIdentifyService WRITE setAutoIdentifyService) Q_PROPERTY(QString autoIdentifyPassword READ autoIdentifyPassword WRITE setAutoIdentifyPassword) Q_PROPERTY(bool useSasl READ useSasl WRITE setUseSasl) Q_PROPERTY(QString saslAccount READ saslAccount WRITE setSaslAccount) Q_PROPERTY(QString saslPassword READ saslPassword WRITE setSaslPassword) Q_PROPERTY(bool useAutoReconnect READ useAutoReconnect WRITE setUseAutoReconnect) Q_PROPERTY(quint32 autoReconnectInterval READ autoReconnectInterval WRITE setAutoReconnectInterval) Q_PROPERTY(quint16 autoReconnectRetries READ autoReconnectRetries WRITE setAutoReconnectRetries) Q_PROPERTY(bool unlimitedReconnectRetries READ unlimitedReconnectRetries WRITE setUnlimitedReconnectRetries) Q_PROPERTY(bool rejoinChannels READ rejoinChannels WRITE setRejoinChannels) public
 Network (const NetworkId &networkid, QObject *parent=0)
 ~Network ()
NetworkId networkId () const
SignalProxyproxy () const
void setProxy (SignalProxy *proxy)
bool isMyNick (const QString &nick) const
bool isMe (IrcUser *ircuser) const
bool isChannelName (const QString &channelname) const
bool isConnected () const
int connectionState () const
QString prefixToMode (const QString &prefix) const
QString prefixToMode (const QCharRef &prefix) const
QString modeToPrefix (const QString &mode) const
QString modeToPrefix (const QCharRef &mode) const
ChannelModeType channelModeType (const QString &mode)
ChannelModeType channelModeType (const QCharRef &mode)
const QString & networkName () const
const QString & currentServer () const
const QString & myNick () const
int latency () const
IrcUserme () const
IdentityId identity () const
QStringList nicks () const
QStringList channels () const
const ServerListserverList () const
bool useRandomServer () const
const QStringList & perform () const
bool useAutoIdentify () const
const QString & autoIdentifyService () const
const QString & autoIdentifyPassword () const
bool useSasl () const
const QString & saslAccount () const
const QString & saslPassword () const
bool useAutoReconnect () const
quint32 autoReconnectInterval () const
quint16 autoReconnectRetries () const
bool unlimitedReconnectRetries () const
bool rejoinChannels () const
NetworkInfo networkInfo () const
void setNetworkInfo (const NetworkInfo &)
QString prefixes () const
QString prefixModes () const
void determinePrefixes () const
bool supports (const QString &param) const
QString support (const QString &param) const
IrcUsernewIrcUser (const QString &hostmask, const QVariantMap &initData=QVariantMap())
IrcUsernewIrcUser (const QByteArray &hostmask)
IrcUserircUser (QString nickname) const
IrcUserircUser (const QByteArray &nickname) const
QList< IrcUser * > ircUsers () const
quint32 ircUserCount () const
IrcChannelnewIrcChannel (const QString &channelname, const QVariantMap &initData=QVariantMap())
IrcChannelnewIrcChannel (const QByteArray &channelname)
IrcChannelircChannel (QString channelname) const
IrcChannelircChannel (const QByteArray &channelname) const
QList< IrcChannel * > ircChannels () const
quint32 ircChannelCount () const
QByteArray codecForServer () const
QByteArray codecForEncoding () const
QByteArray codecForDecoding () const
void setCodecForServer (QTextCodec *codec)
void setCodecForEncoding (QTextCodec *codec)
void setCodecForDecoding (QTextCodec *codec)
QString decodeString (const QByteArray &text) const
QByteArray encodeString (const QString &string) const
QString decodeServerString (const QByteArray &text) const
QByteArray encodeServerString (const QString &string) const
bool autoAwayActive () const
void setAutoAwayActive (bool active)

Static Private Member Functions

static QByteArray defaultCodecForServer ()
static QByteArray defaultCodecForEncoding ()
static QByteArray defaultCodecForDecoding ()
static void setDefaultCodecForServer (const QByteArray &name)
static void setDefaultCodecForEncoding (const QByteArray &name)
static void setDefaultCodecForDecoding (const QByteArray &name)

Private Attributes

QPointer< SignalProxy_proxy
NetworkId _networkId
IdentityId _identity
QString _myNick
int _latency
QString _networkName
QString _currentServer
bool _connected
ConnectionState _connectionState
QString _prefixes
QString _prefixModes
QHash< QString, IrcUser * > _ircUsers
QHash< QString, IrcChannel * > _ircChannels
QHash< QString, QString > _supports
ServerList _serverList
bool _useRandomServer
QStringList _perform
bool _useAutoIdentify
QString _autoIdentifyService
QString _autoIdentifyPassword
bool _useSasl
QString _saslAccount
QString _saslPassword
bool _useAutoReconnect
quint32 _autoReconnectInterval
quint16 _autoReconnectRetries
bool _unlimitedReconnectRetries
bool _rejoinChannels
QTextCodec * _codecForServer
QTextCodec * _codecForEncoding
QTextCodec * _codecForDecoding
bool _autoAwayActive

Static Private Attributes

static const int _classNameOffset__ = QByteArray(staticMetaObject.className()).length() + 2
static QTextCodec * _defaultCodecForServer = 0
static QTextCodec * _defaultCodecForEncoding = 0
static QTextCodec * _defaultCodecForDecoding = 0

Friends

class IrcUser
class IrcChannel

Detailed Description

Definition at line 47 of file network.h.

Member Typedef Documentation

typedef QList<Server> ServerList
private

Definition at line 120 of file network.h.

Member Enumeration Documentation

enum ChannelModeType
private
Enumerator:
NOT_A_CHANMODE 
A_CHANMODE 
B_CHANMODE 
C_CHANMODE 
D_CHANMODE 

Definition at line 91 of file network.h.

Constructor & Destructor Documentation

Network ( const NetworkId networkid,
QObject *  parent = 0 
)
private

Definition at line 33 of file network.cpp.

~Network ( )
private

Definition at line 62 of file network.cpp.

References aboutToBeDestroyed().

Member Function Documentation

Q_ENUMS ( ConnectionState  )
inlineprivate

Definition at line 51 of file network.h.

SignalProxy* proxy ( ) const
inlineprivate
void setProxy ( SignalProxy proxy)
inlineprivate

Definition at line 128 of file network.h.

References _proxy, and proxy().

Referenced by Client::addNetwork().

bool isMyNick ( const QString &  nick) const
inlineprivate

Definition at line 130 of file network.h.

References myNick().

Referenced by InputWidget::changeNick(), and EventStringifier::processIrcEventNick().

bool isConnected ( ) const
inlineprivate
QString prefixToMode ( const QString &  prefix) const
private

Definition at line 132 of file network.cpp.

References prefixes(), and prefixModes().

Referenced by CoreSessionEventProcessor::processIrcEvent353().

QString prefixToMode ( const QCharRef &  prefix) const
inlineprivate

Definition at line 140 of file network.h.

References prefixToMode().

Referenced by prefixToMode().

QString modeToPrefix ( const QString &  mode) const
private

Definition at line 141 of file network.cpp.

References prefixes(), and prefixModes().

QString modeToPrefix ( const QCharRef &  mode) const
inlineprivate

Definition at line 142 of file network.h.

References modeToPrefix().

Referenced by modeToPrefix().

ChannelModeType channelModeType ( const QCharRef &  mode)
inlineprivate

Definition at line 145 of file network.h.

References channelModeType().

Referenced by channelModeType().

int latency ( ) const
inlineprivate

Definition at line 150 of file network.h.

References _latency.

Referenced by setLatency(), and TopicWidget::setTopic().

QStringList nicks ( ) const
private

Definition at line 150 of file network.cpp.

References _ircUsers, and IrcUser::nick.

QStringList channels ( ) const
inlineprivate
bool useRandomServer ( ) const
inlineprivate

Definition at line 156 of file network.h.

References _useRandomServer.

Referenced by CoreNetwork::connectToIrc(), networkInfo(), and setNetworkInfo().

const QStringList& perform ( ) const
inlineprivate

Definition at line 157 of file network.h.

References _perform.

Referenced by networkInfo(), CoreNetwork::sendPerform(), setNetworkInfo(), and setPerform().

bool useAutoIdentify ( ) const
inlineprivate

Definition at line 158 of file network.h.

References _useAutoIdentify.

Referenced by networkInfo(), CoreNetwork::sendPerform(), and setNetworkInfo().

const QString& autoIdentifyService ( ) const
inlineprivate

Definition at line 159 of file network.h.

References _autoIdentifyService.

Referenced by networkInfo(), CoreNetwork::sendPerform(), and setNetworkInfo().

const QString& autoIdentifyPassword ( ) const
inlineprivate

Definition at line 160 of file network.h.

References _autoIdentifyPassword.

Referenced by networkInfo(), CoreNetwork::sendPerform(), and setNetworkInfo().

bool useSasl ( ) const
inlineprivate

Definition at line 161 of file network.h.

References _useSasl.

Referenced by networkInfo(), setNetworkInfo(), and CoreNetwork::socketInitialized().

const QString& saslAccount ( ) const
inlineprivate

Definition at line 162 of file network.h.

References _saslAccount.

Referenced by networkInfo(), and setNetworkInfo().

const QString& saslPassword ( ) const
inlineprivate

Definition at line 163 of file network.h.

References _saslPassword.

Referenced by networkInfo(), and setNetworkInfo().

bool useAutoReconnect ( ) const
inlineprivate
quint32 autoReconnectInterval ( ) const
inlineprivate

Definition at line 165 of file network.h.

References _autoReconnectInterval.

Referenced by CoreNetwork::connectToIrc(), networkInfo(), and setNetworkInfo().

bool unlimitedReconnectRetries ( ) const
inlineprivate
bool rejoinChannels ( ) const
inlineprivate

Definition at line 168 of file network.h.

References _rejoinChannels.

Referenced by networkInfo(), CoreNetwork::sendPerform(), and setNetworkInfo().

QString prefixes ( ) const
private
QString prefixModes ( ) const
private
void determinePrefixes ( ) const
private

Definition at line 850 of file network.cpp.

References _prefixes, _prefixModes, and support().

Referenced by prefixes(), prefixModes(), and CoreSessionEventProcessor::processIrcEvent005().

bool supports ( const QString &  param) const
inlineprivate

Definition at line 177 of file network.h.

References _supports.

Referenced by initSupports(), and isChannelName().

QString support ( const QString &  param) const
private

Definition at line 205 of file network.cpp.

References _supports.

Referenced by channelModeType(), determinePrefixes(), and isChannelName().

IrcUser* newIrcUser ( const QByteArray &  hostmask)
inlineprivate

Definition at line 181 of file network.h.

References decodeServerString(), and newIrcUser().

Referenced by newIrcUser().

IrcUser* ircUser ( const QByteArray &  nickname) const
inlineprivate

Definition at line 183 of file network.h.

References decodeServerString(), and ircUser().

Referenced by ircUser().

QList<IrcUser *> ircUsers ( ) const
inlineprivate

Definition at line 184 of file network.h.

References _ircUsers.

Referenced by removeChansAndUsers(), and TopicWidget::setTopic().

quint32 ircUserCount ( ) const
inlineprivate

Definition at line 185 of file network.h.

References _ircUsers.

IrcChannel * newIrcChannel ( const QString &  channelname,
const QVariantMap &  initData = QVariantMap() 
)
private
IrcChannel* newIrcChannel ( const QByteArray &  channelname)
inlineprivate

Definition at line 188 of file network.h.

References decodeServerString(), and newIrcChannel().

Referenced by newIrcChannel().

IrcChannel* ircChannel ( const QByteArray &  channelname) const
inlineprivate

Definition at line 190 of file network.h.

References decodeServerString(), and ircChannel().

Referenced by ircChannel().

QList<IrcChannel *> ircChannels ( ) const
inlineprivate

Definition at line 191 of file network.h.

References _ircChannels.

Referenced by TabCompleter::buildCompletionList(), and removeChansAndUsers().

quint32 ircChannelCount ( ) const
inlineprivate

Definition at line 192 of file network.h.

References _ircChannels.

QByteArray codecForServer ( ) const
private

Definition at line 369 of file network.cpp.

References _codecForServer.

Referenced by networkInfo(), setCodecForServer(), and setNetworkInfo().

QByteArray codecForEncoding ( ) const
private

Definition at line 392 of file network.cpp.

References _codecForEncoding.

Referenced by networkInfo(), setCodecForEncoding(), and setNetworkInfo().

QByteArray codecForDecoding ( ) const
private

Definition at line 415 of file network.cpp.

References _codecForDecoding.

Referenced by networkInfo(), setCodecForDecoding(), and setNetworkInfo().

void setCodecForServer ( QTextCodec *  codec)
private

Definition at line 383 of file network.cpp.

References _codecForServer, ARG, codecForServer(), configChanged(), and SYNC_OTHER.

Referenced by setCodecForServer(), and setNetworkInfo().

void setCodecForEncoding ( QTextCodec *  codec)
private

Definition at line 406 of file network.cpp.

References _codecForEncoding, ARG, codecForEncoding(), configChanged(), and SYNC_OTHER.

Referenced by setCodecForEncoding(), and setNetworkInfo().

void setCodecForDecoding ( QTextCodec *  codec)
private

Definition at line 429 of file network.cpp.

References _codecForDecoding, ARG, codecForDecoding(), configChanged(), and SYNC_OTHER.

Referenced by setCodecForDecoding(), and setNetworkInfo().

QString decodeString ( const QByteArray &  text) const
private
QByteArray encodeString ( const QString &  string) const
private
QString decodeServerString ( const QByteArray &  text) const
private
QByteArray encodeServerString ( const QString &  string) const
private

Definition at line 468 of file network.cpp.

References _codecForServer, and _defaultCodecForServer.

Referenced by CoreNetwork::serverEncode().

QByteArray defaultCodecForServer ( )
staticprivate

Definition at line 327 of file network.cpp.

References _defaultCodecForServer.

Referenced by NetworksSettingsPage::displayNetwork().

QByteArray defaultCodecForEncoding ( )
staticprivate

Definition at line 341 of file network.cpp.

References _defaultCodecForEncoding.

Referenced by NetworksSettingsPage::displayNetwork().

QByteArray defaultCodecForDecoding ( )
staticprivate

Definition at line 355 of file network.cpp.

References _defaultCodecForDecoding.

Referenced by NetworksSettingsPage::displayNetwork().

void setDefaultCodecForServer ( const QByteArray &  name)
staticprivate

Definition at line 335 of file network.cpp.

References _defaultCodecForServer.

Referenced by Quassel::init().

void setDefaultCodecForEncoding ( const QByteArray &  name)
staticprivate

Definition at line 349 of file network.cpp.

References _defaultCodecForEncoding.

Referenced by Quassel::init().

void setDefaultCodecForDecoding ( const QByteArray &  name)
staticprivate

Definition at line 363 of file network.cpp.

References _defaultCodecForDecoding.

Referenced by Quassel::init().

bool autoAwayActive ( ) const
inlineprivate
void setAutoAwayActive ( bool  active)
inlineprivate

Definition at line 214 of file network.h.

References _autoAwayActive.

Referenced by CoreSessionEventProcessor::processIrcEvent305().

void setNetworkName ( const QString &  networkName)
slot

Definition at line 483 of file network.cpp.

References _networkName, ARG, configChanged(), networkName(), networkNameSet(), and SYNC.

Referenced by setNetworkInfo().

void setCurrentServer ( const QString &  currentServer)
slot
void setConnected ( bool  isConnected)
slot
void setConnectionState ( int  state)
slot
void setMyNick ( const QString &  mynick)
virtualslot
void setLatency ( int  latency)
slot

Definition at line 537 of file network.cpp.

References _latency, ARG, latency(), and SYNC.

Referenced by CoreSessionEventProcessor::processIrcEventPong().

void setIdentity ( IdentityId  id)
slot

Definition at line 546 of file network.cpp.

References _identity, ARG, configChanged(), identitySet(), and SYNC.

Referenced by setNetworkInfo().

void setServerList ( const QVariantList &  serverList)
slot

Definition at line 555 of file network.cpp.

References _serverList, ARG, configChanged(), serverList(), and SYNC.

Referenced by setNetworkInfo().

void setUseRandomServer ( bool  use)
slot

Definition at line 563 of file network.cpp.

References _useRandomServer, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setPerform ( const QStringList &  perform)
slot

Definition at line 571 of file network.cpp.

References _perform, ARG, configChanged(), perform(), and SYNC.

Referenced by setNetworkInfo().

void setUseAutoIdentify ( bool  use)
slot

Definition at line 579 of file network.cpp.

References _useAutoIdentify, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setAutoIdentifyService ( const QString &  service)
slot

Definition at line 587 of file network.cpp.

References _autoIdentifyService, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setAutoIdentifyPassword ( const QString &  password)
slot

Definition at line 595 of file network.cpp.

References _autoIdentifyPassword, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setUseSasl ( bool  use)
slot

Definition at line 603 of file network.cpp.

References _useSasl, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setSaslAccount ( const QString &  account)
slot

Definition at line 611 of file network.cpp.

References _saslAccount, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setSaslPassword ( const QString &  password)
slot

Definition at line 619 of file network.cpp.

References _saslPassword, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setUseAutoReconnect ( bool  use)
virtualslot

Definition at line 627 of file network.cpp.

References _useAutoReconnect, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setAutoReconnectInterval ( quint32  interval)
virtualslot

Definition at line 635 of file network.cpp.

References _autoReconnectInterval, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setAutoReconnectRetries ( quint16  retries)
virtualslot

Definition at line 643 of file network.cpp.

References _autoReconnectRetries, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setUnlimitedReconnectRetries ( bool  unlimited)
slot

Definition at line 651 of file network.cpp.

References _unlimitedReconnectRetries, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setRejoinChannels ( bool  rejoin)
slot

Definition at line 659 of file network.cpp.

References _rejoinChannels, ARG, configChanged(), and SYNC.

Referenced by setNetworkInfo().

void setCodecForServer ( const QByteArray &  codecName)
slot

Definition at line 377 of file network.cpp.

References setCodecForServer().

void setCodecForEncoding ( const QByteArray &  codecName)
slot

Definition at line 400 of file network.cpp.

References setCodecForEncoding().

void setCodecForDecoding ( const QByteArray &  codecName)
slot

Definition at line 423 of file network.cpp.

References setCodecForDecoding().

void addSupport ( const QString &  param,
const QString &  value = QString() 
)
slot

Definition at line 667 of file network.cpp.

References _supports, ARG, and SYNC.

Referenced by initSetSupports(), and CoreSessionEventProcessor::processIrcEvent005().

void removeSupport ( const QString &  param)
slot

Definition at line 676 of file network.cpp.

References _supports, ARG, and SYNC.

void addIrcUser ( const QString &  hostmask)
inlineslot

Definition at line 247 of file network.h.

References newIrcUser().

Referenced by newIrcUser().

void addIrcChannel ( const QString &  channel)
inlineslot

Definition at line 248 of file network.h.

References newIrcChannel().

Referenced by newIrcChannel().

QVariantMap initSupports ( ) const
slot

Definition at line 685 of file network.cpp.

References _supports, and supports().

QVariantList initServerList ( ) const
inlineslot

Definition at line 252 of file network.h.

References serverList(), and toVariantList().

QVariantMap initIrcUsersAndChannels ( ) const
virtualslot

Definition at line 702 of file network.cpp.

References _ircChannels, _ircUsers, and channels().

void initSetSupports ( const QVariantMap &  supports)
slot

Definition at line 801 of file network.cpp.

References addSupport().

void initSetServerList ( const QVariantList &  serverList)
inlineslot

Definition at line 257 of file network.h.

References _serverList, and serverList().

void initSetIrcUsersAndChannels ( const QVariantMap &  usersAndChannels)
virtualslot
void ircUserNickChanged ( QString  newnick)
slot

Definition at line 827 of file network.cpp.

References _ircUsers, myNick(), and setMyNick().

Referenced by newIrcUser().

virtual void requestConnect ( ) const
inlinevirtualslot
virtual void requestDisconnect ( ) const
inlinevirtualslot
virtual void requestSetNetworkInfo ( const NetworkInfo info)
inlinevirtualslot

Definition at line 268 of file network.h.

References ARG, and REQUEST.

Referenced by Client::updateNetwork().

void emitConnectionError ( const QString &  errorMsg)
slot

Definition at line 841 of file network.cpp.

References connectionError().

Referenced by CoreNetwork::socketError().

void removeIrcUser ( IrcUser ircuser)
protectedvirtualslot

Definition at line 257 of file network.cpp.

References _ircUsers.

Referenced by IrcUser::quit().

void removeIrcChannel ( IrcChannel ircChannel)
protectedvirtualslot

Definition at line 269 of file network.cpp.

References _ircChannels.

Referenced by IrcChannel::part().

void removeChansAndUsers ( )
protectedvirtualslot

Definition at line 281 of file network.cpp.

References _ircChannels, _ircUsers, channels(), ircChannels(), and ircUsers().

Referenced by setConnected().

void aboutToBeDestroyed ( )
signal

Referenced by ~Network().

void networkNameSet ( const QString &  networkName)
signal

Referenced by setNetworkName().

void currentServerSet ( const QString &  currentServer)
signal

Referenced by setCurrentServer().

void connectedSet ( bool  isConnected)
signal

Referenced by setConnected().

void connectionStateSet ( Network::ConnectionState  )
signal

Referenced by setConnectionState().

void connectionError ( const QString &  errorMsg)
signal

Referenced by emitConnectionError().

void myNickSet ( const QString &  mynick)
signal

Referenced by setMyNick().

void identitySet ( IdentityId  )
signal

Referenced by setIdentity().

void ircUserAdded ( IrcUser )
signal

Referenced by newIrcUser().

void ircChannelAdded ( IrcChannel )
signal

Referenced by newIrcChannel().

virtual IrcChannel* ircChannelFactory ( const QString &  channelname)
inlineprotectedvirtual

Reimplemented in CoreNetwork.

Definition at line 320 of file network.h.

References IrcChannel.

Referenced by newIrcChannel().

virtual IrcUser* ircUserFactory ( const QString &  hostmask)
inlineprotectedvirtual

Reimplemented in CoreNetwork.

Definition at line 321 of file network.h.

References IrcUser.

Referenced by newIrcUser().

QVariantMap toVariantMap ( )
virtualinherited

Stores the object's state into a QVariantMap.

The default implementation takes dynamic properties as well as getters that have names starting with "init" and stores them in a QVariantMap. Override this method in derived classes in order to store the object state in a custom form.

Note
This is used by SignalProxy to transmit the state of the object to clients that request the initial object state. Later updates use a different mechanism and assume that the state is completely covered by properties and init* getters. DO NOT OVERRIDE THIS unless you know exactly what you do!
Returns
The object's state in a QVariantMap

Definition at line 91 of file syncableobject.cpp.

References SignalProxy::ExtendedMetaObject::methodBaseName(), and SignalProxy::ExtendedMetaObject::methodName().

Referenced by BufferViewSettingsPage::cloneConfig(), AliasesModel::commit(), IgnoreListModel::commit(), ClientBufferViewConfig::ensureDecoration(), IrcConnectionWizard::finishClicked(), SignalProxy::initData(), CoreNetworkConfig::save(), BufferViewSettingsPage::save(), and ClientBufferViewManager::setInitialized().

void fromVariantMap ( const QVariantMap &  properties)
virtualinherited

Initialize the object's state from a given QVariantMap.

See Also
toVariantMap() for important information concerning this method.

Definition at line 135 of file syncableobject.cpp.

References SyncableObject::setInitValue().

Referenced by BufferViewConfig::BufferViewConfig(), BufferViewSettingsPage::cloneConfig(), newIrcChannel(), newIrcUser(), SignalProxy::setInitData(), and SyncableObject::update().

void setAllowClientUpdates ( bool  allow)
inlineinherited
bool allowClientUpdates ( ) const
inlineinherited

Definition at line 82 of file syncableobject.h.

References SyncableObject::_allowClientUpdates.

Referenced by SyncableObject::requestUpdate().

void update ( const QVariantMap &  properties)
virtualslotinherited
void sync_call__ ( SignalProxy::ProxyMode  modeType,
const char *  funcname,
  ... 
) const
protectedinherited
void renameObject ( const QString &  newName)
protectedinherited
void initDone ( )
signalinherited
void updatedRemotely ( )
signalinherited
void updated ( )
signalinherited

Friends And Related Function Documentation

friend class IrcUser
friend

Definition at line 371 of file network.h.

Referenced by ircUserFactory().

friend class IrcChannel
friend

Definition at line 372 of file network.h.

Referenced by ircChannelFactory().

Member Data Documentation

const int _classNameOffset__ = QByteArray(staticMetaObject.className()).length() + 2
staticprivate

Definition at line 49 of file network.h.

QPointer<SignalProxy> _proxy
private

Definition at line 324 of file network.h.

Referenced by proxy(), and setProxy().

NetworkId _networkId
private

Definition at line 326 of file network.h.

Referenced by networkId().

IdentityId _identity
private

Definition at line 327 of file network.h.

Referenced by identity(), and setIdentity().

QString _myNick
private

Definition at line 329 of file network.h.

Referenced by myNick(), and setMyNick().

int _latency
private

Definition at line 330 of file network.h.

Referenced by latency(), and setLatency().

QString _networkName
private

Definition at line 331 of file network.h.

Referenced by networkName(), and setNetworkName().

QString _currentServer
private

Definition at line 332 of file network.h.

Referenced by currentServer(), and setCurrentServer().

bool _connected
private

Definition at line 333 of file network.h.

Referenced by isConnected(), and setConnected().

ConnectionState _connectionState
private

Definition at line 334 of file network.h.

Referenced by connectionState(), and setConnectionState().

QString _prefixes
mutableprivate

Definition at line 336 of file network.h.

Referenced by determinePrefixes(), and prefixes().

QString _prefixModes
mutableprivate

Definition at line 337 of file network.h.

Referenced by determinePrefixes(), and prefixModes().

QHash<QString, IrcChannel *> _ircChannels
private
QHash<QString, QString> _supports
private

Definition at line 341 of file network.h.

Referenced by addSupport(), initSupports(), removeSupport(), support(), and supports().

ServerList _serverList
private

Definition at line 343 of file network.h.

Referenced by initSetServerList(), serverList(), and setServerList().

bool _useRandomServer
private

Definition at line 344 of file network.h.

Referenced by setUseRandomServer(), and useRandomServer().

QStringList _perform
private

Definition at line 345 of file network.h.

Referenced by perform(), and setPerform().

bool _useAutoIdentify
private

Definition at line 347 of file network.h.

Referenced by setUseAutoIdentify(), and useAutoIdentify().

QString _autoIdentifyService
private

Definition at line 348 of file network.h.

Referenced by autoIdentifyService(), and setAutoIdentifyService().

QString _autoIdentifyPassword
private

Definition at line 349 of file network.h.

Referenced by autoIdentifyPassword(), and setAutoIdentifyPassword().

bool _useSasl
private

Definition at line 351 of file network.h.

Referenced by setUseSasl(), and useSasl().

QString _saslAccount
private

Definition at line 352 of file network.h.

Referenced by saslAccount(), and setSaslAccount().

QString _saslPassword
private

Definition at line 353 of file network.h.

Referenced by saslPassword(), and setSaslPassword().

bool _useAutoReconnect
private

Definition at line 355 of file network.h.

Referenced by setUseAutoReconnect(), and useAutoReconnect().

quint32 _autoReconnectInterval
private

Definition at line 356 of file network.h.

Referenced by autoReconnectInterval(), and setAutoReconnectInterval().

quint16 _autoReconnectRetries
private

Definition at line 357 of file network.h.

Referenced by autoReconnectRetries(), and setAutoReconnectRetries().

bool _unlimitedReconnectRetries
private

Definition at line 358 of file network.h.

Referenced by setUnlimitedReconnectRetries(), and unlimitedReconnectRetries().

bool _rejoinChannels
private

Definition at line 359 of file network.h.

Referenced by rejoinChannels(), and setRejoinChannels().

QTextCodec* _codecForServer
private
QTextCodec* _codecForEncoding
private

Definition at line 362 of file network.h.

Referenced by codecForEncoding(), encodeString(), and setCodecForEncoding().

QTextCodec* _codecForDecoding
private

Definition at line 363 of file network.h.

Referenced by codecForDecoding(), decodeString(), and setCodecForDecoding().

QTextCodec * _defaultCodecForServer = 0
staticprivate
QTextCodec * _defaultCodecForEncoding = 0
staticprivate

Definition at line 366 of file network.h.

Referenced by defaultCodecForEncoding(), encodeString(), and setDefaultCodecForEncoding().

QTextCodec * _defaultCodecForDecoding = 0
staticprivate

Definition at line 367 of file network.h.

Referenced by decodeString(), defaultCodecForDecoding(), and setDefaultCodecForDecoding().

bool _autoAwayActive
private

Definition at line 369 of file network.h.

Referenced by autoAwayActive(), and setAutoAwayActive().


The documentation for this class was generated from the following files: