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

#include </tmp/quassel/src/core/corenetwork.h>

Inheritance diagram for CoreNetwork:
Collaboration diagram for CoreNetwork:

Public Slots

virtual void setMyNick (const QString &mynick)
virtual void requestConnect () const
virtual void requestDisconnect () const
virtual void requestSetNetworkInfo (const NetworkInfo &info)
virtual void setUseAutoReconnect (bool)
virtual void setAutoReconnectInterval (quint32)
virtual void setAutoReconnectRetries (quint16)
void setPingInterval (int interval)
void connectToIrc (bool reconnecting=false)
void disconnectFromIrc (bool requested=true, const QString &reason=QString(), bool withReconnect=false)
void userInput (BufferInfo bufferInfo, QString msg)
void putRawLine (QByteArray input)
void putCmd (const QString &cmd, const QList< QByteArray > &params, const QByteArray &prefix=QByteArray())
void putCmd (const QString &cmd, const QList< QList< QByteArray >> &params, const QByteArray &prefix=QByteArray())
void setChannelJoined (const QString &channel)
void setChannelParted (const QString &channel)
void addChannelKey (const QString &channel, const QString &key)
void removeChannelKey (const QString &channel)
void setAutoWhoEnabled (bool enabled)
void setAutoWhoInterval (int interval)
void setAutoWhoDelay (int delay)
bool setAutoWhoDone (const QString &channel)
void updateIssuedModes (const QString &requestedModes)
void updatePersistentModes (QString addModes, QString removeModes)
void resetPersistentModes ()
Server usedServer () const
void resetPingTimeout ()
void displayMsg (Message::Type msgType, BufferInfo::Type bufferType, const QString &target, const QString &text, const QString &sender="", Message::Flags flags=Message::None)
void setCodecForServer (const QByteArray &codecName)
void setCodecForEncoding (const QByteArray &codecName)
void setCodecForDecoding (const QByteArray &codecName)
void setNetworkName (const QString &networkName)
void setCurrentServer (const QString &currentServer)
void setConnected (bool isConnected)
void setConnectionState (int state)
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 &)
void setUnlimitedReconnectRetries (bool)
void setRejoinChannels (bool)
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)
void emitConnectionError (const QString &)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)

Signals

void recvRawServerMsg (QString)
void displayStatusMsg (QString)
void displayMsg (NetworkId, Message::Type, BufferInfo::Type, const QString &target, const QString &text, const QString &sender="", Message::Flags flags=Message::None)
void disconnected (NetworkId networkId)
void connectionError (const QString &errorMsg)
void quitRequested (NetworkId networkId)
void sslErrors (const QVariant &errorData)
void newEvent (Event *event)
void socketOpen (const CoreIdentity *identity, const QHostAddress &localAddress, quint16 localPort, const QHostAddress &peerAddress, quint16 peerPort)
void socketInitialized (const CoreIdentity *identity, const QHostAddress &localAddress, quint16 localPort, const QHostAddress &peerAddress, quint16 peerPort)
void socketDisconnected (const CoreIdentity *identity, const QHostAddress &localAddress, quint16 localPort, const QHostAddress &peerAddress, quint16 peerPort)
void aboutToBeDestroyed ()
void networkNameSet (const QString &networkName)
void currentServerSet (const QString &currentServer)
void connectedSet (bool isConnected)
void connectionStateSet (Network::ConnectionState)
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

 CoreNetwork (const NetworkId &networkid, CoreSession *session)
 ~CoreNetwork ()
virtual const QMetaObject * syncMetaObject () const
CoreIdentityidentityPtr () const
CoreSessioncoreSession () const
CoreNetworkConfignetworkConfig () const
CoreUserInputHandleruserInputHandler () const
CoreIgnoreListManagerignoreListManager ()
QString serverDecode (const QByteArray &string) const
 Decode a string using the server (network) decoding.
QString channelDecode (const QString &channelName, const QByteArray &string) const
 Decode a string using a channel-specific encoding if one is set (and use the standard encoding else).
QString userDecode (const QString &userNick, const QByteArray &string) const
 Decode a string using an IrcUser-specific encoding, if one exists (using the standaed encoding else).
QByteArray serverEncode (const QString &string) const
 Encode a string using the server (network) encoding.
QByteArray channelEncode (const QString &channelName, const QString &string) const
 Encode a string using the channel-specific encoding, if set, and use the standard encoding else.
QByteArray userEncode (const QString &userNick, const QString &string) const
 Encode a string using the user-specific encoding, if set, and use the standard encoding else.
QString channelKey (const QString &channel) const
bool isAutoWhoInProgress (const QString &channel) const
UserId userId () const
QAbstractSocket::SocketState socketState () const
bool socketConnected () const
QHostAddress localAddress () const
QHostAddress peerAddress () const
quint16 localPort () const
quint16 peerPort () const
QList< QList< QByteArray > > splitMessage (const QString &cmd, const QString &message, std::function< QList< QByteArray >(QString &)> cmdGenerator)
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
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 Slots

void socketHasData ()
void socketError (QAbstractSocket::SocketError)
void socketInitialized ()
void socketCloseTimeout ()
void socketDisconnected ()
void socketStateChanged (QAbstractSocket::SocketState)
void networkInitialized ()
void sendPerform ()
void restoreUserModes ()
void doAutoReconnect ()
void sendPing ()
void enablePingTimeout (bool enable=true)
void disablePingTimeout ()
void sendAutoWho ()
void startAutoWhoCycle ()
void fillBucketAndProcessQueue ()
void writeToSocket (const QByteArray &data)

Private Attributes

CoreSession_coreSession
QTcpSocket socket
CoreUserInputHandler_userInputHandler
QHash< QString, QString > _channelKeys
QTimer _autoReconnectTimer
int _autoReconnectCount
QTimer _socketCloseTimer
bool _quitRequested
QString _quitReason
bool _previousConnectionAttemptFailed
int _lastUsedServerIndex
QTimer _pingTimer
uint _lastPingTime
uint _pingCount
bool _sendPings
QStringList _autoWhoQueue
QHash< QString, int > _autoWhoPending
QTimer _autoWhoTimer
QTimer _autoWhoCycleTimer
QTimer _tokenBucketTimer
int _messageDelay
int _burstSize
int _tokenBucket
QList< QByteArray > _msgQueue
QString _requestedUserModes

Detailed Description

Definition at line 50 of file corenetwork.h.

Constructor & Destructor Documentation

CoreNetwork ( const NetworkId networkid,
CoreSession session 
)

Member Function Documentation

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtual

Reimplemented from SyncableObject.

Definition at line 58 of file corenetwork.h.

CoreNetworkConfig* networkConfig ( ) const
inline
CoreIgnoreListManager* ignoreListManager ( )
inline

Definition at line 65 of file corenetwork.h.

References coreSession(), and CoreSession::ignoreListManager().

QString serverDecode ( const QByteArray &  string) const
inline

Decode a string using the server (network) decoding.

Definition at line 68 of file corenetwork.h.

References Network::decodeServerString().

Referenced by IrcParser::processNetworkIncoming(), and CoreBasicHandler::serverDecode().

QString channelDecode ( const QString &  channelName,
const QByteArray &  string 
) const

Decode a string using a channel-specific encoding if one is set (and use the standard encoding else).

Definition at line 100 of file corenetwork.cpp.

References IrcChannel::decodeString(), Network::decodeString(), and Network::ircChannel().

Referenced by CoreBasicHandler::channelDecode(), and IrcParser::processNetworkIncoming().

QString userDecode ( const QString &  userNick,
const QByteArray &  string 
) const

Decode a string using an IrcUser-specific encoding, if one exists (using the standaed encoding else).

Definition at line 111 of file corenetwork.cpp.

References IrcUser::decodeString(), Network::decodeString(), and Network::ircUser().

Referenced by IrcParser::processNetworkIncoming(), CtcpParser::targetDecode(), and CoreBasicHandler::userDecode().

QByteArray serverEncode ( const QString &  string) const
inline
QByteArray channelEncode ( const QString &  channelName,
const QString &  string 
) const

Encode a string using the channel-specific encoding, if set, and use the standard encoding else.

Definition at line 120 of file corenetwork.cpp.

References IrcChannel::encodeString(), Network::encodeString(), and Network::ircChannel().

Referenced by CoreBasicHandler::channelEncode().

QByteArray userEncode ( const QString &  userNick,
const QString &  string 
) const

Encode a string using the user-specific encoding, if set, and use the standard encoding else.

Definition at line 131 of file corenetwork.cpp.

References IrcUser::encodeString(), Network::encodeString(), and Network::ircUser().

Referenced by CtcpParser::query(), CtcpParser::reply(), CtcpParser::sendCtcpEvent(), and CoreBasicHandler::userEncode().

QString channelKey ( const QString &  channel) const
inline

Definition at line 85 of file corenetwork.h.

References _channelKeys.

Referenced by sendPerform().

bool isAutoWhoInProgress ( const QString &  channel) const
inline

Definition at line 87 of file corenetwork.h.

References _autoWhoPending.

Referenced by CoreSessionEventProcessor::processIrcEvent352().

QAbstractSocket::SocketState socketState ( ) const
inline

Definition at line 91 of file corenetwork.h.

References socket.

bool socketConnected ( ) const
inline

Definition at line 92 of file corenetwork.h.

References socket.

QHostAddress localAddress ( ) const
inline

Definition at line 93 of file corenetwork.h.

References socket.

Referenced by socketDisconnected(), and socketInitialized().

QHostAddress peerAddress ( ) const
inline

Definition at line 94 of file corenetwork.h.

References socket.

Referenced by socketDisconnected(), and socketInitialized().

quint16 localPort ( ) const
inline

Definition at line 95 of file corenetwork.h.

References socket.

Referenced by socketDisconnected(), and socketInitialized().

quint16 peerPort ( ) const
inline

Definition at line 96 of file corenetwork.h.

References socket.

Referenced by socketDisconnected(), and socketInitialized().

QList< QList< QByteArray > > splitMessage ( const QString &  cmd,
const QString &  message,
std::function< QList< QByteArray >(QString &)>  cmdGenerator 
)

Definition at line 995 of file corenetwork.cpp.

References CoreUserInputHandler::lastParamOverrun(), and userInputHandler().

Referenced by CtcpParser::query().

void setMyNick ( const QString &  mynick)
virtualslot

Definition at line 413 of file corenetwork.cpp.

References Network::connectionState(), and networkInitialized().

void requestConnect ( ) const
virtualslot

Definition at line 956 of file corenetwork.cpp.

References Network::connectionState().

void requestDisconnect ( ) const
virtualslot
void setUseAutoReconnect ( bool  use)
virtualslot

Definition at line 766 of file corenetwork.cpp.

References _autoReconnectTimer.

void setAutoReconnectInterval ( quint32  interval)
virtualslot

Definition at line 774 of file corenetwork.cpp.

References _autoReconnectTimer.

void setAutoReconnectRetries ( quint16  retries)
virtualslot
void setPingInterval ( int  interval)
slot

Definition at line 848 of file corenetwork.cpp.

References _pingTimer.

void userInput ( BufferInfo  bufferInfo,
QString  msg 
)
slot
void putCmd ( const QString &  cmd,
const QList< QByteArray > &  params,
const QByteArray &  prefix = QByteArray() 
)
slot

Definition at line 266 of file corenetwork.cpp.

References putRawLine().

Referenced by CtcpParser::packedReply(), putCmd(), CtcpParser::query(), and CtcpParser::reply().

void putCmd ( const QString &  cmd,
const QList< QList< QByteArray >> &  params,
const QByteArray &  prefix = QByteArray() 
)
slot

Definition at line 287 of file corenetwork.cpp.

References putCmd().

void setChannelJoined ( const QString &  channel)
slot
void setChannelParted ( const QString &  channel)
slot
void addChannelKey ( const QString &  channel,
const QString &  key 
)
slot

Definition at line 316 of file corenetwork.cpp.

References _channelKeys, and removeChannelKey().

Referenced by CoreUserInputHandler::handleJoin().

void removeChannelKey ( const QString &  channel)
slot

Definition at line 327 of file corenetwork.cpp.

References _channelKeys.

Referenced by addChannelKey(), CoreUserInputHandler::handleJoin(), and setChannelParted().

void setAutoWhoEnabled ( bool  enabled)
slot

Definition at line 878 of file corenetwork.cpp.

References _autoWhoCycleTimer, _autoWhoTimer, and Network::isConnected().

void setAutoWhoInterval ( int  interval)
slot

Definition at line 872 of file corenetwork.cpp.

References _autoWhoCycleTimer.

void setAutoWhoDelay ( int  delay)
slot

Definition at line 866 of file corenetwork.cpp.

References _autoWhoTimer.

bool setAutoWhoDone ( const QString &  channel)
slot

Definition at line 402 of file corenetwork.cpp.

References _autoWhoPending.

void updateIssuedModes ( const QString &  requestedModes)
slot

Definition at line 675 of file corenetwork.cpp.

References _requestedUserModes.

Referenced by CoreUserInputHandler::handleMode().

void updatePersistentModes ( QString  addModes,
QString  removeModes 
)
slot
void resetPersistentModes ( )
slot
Network::Server usedServer ( ) const
slot
void resetPingTimeout ( )
inlineslot

Definition at line 146 of file corenetwork.h.

References _pingCount.

Referenced by disablePingTimeout(), enablePingTimeout(), and IrcParser::processNetworkIncoming().

void displayMsg ( Message::Type  msgType,
BufferInfo::Type  bufferType,
const QString &  target,
const QString &  text,
const QString &  sender = "",
Message::Flags  flags = Message::None 
)
inlineslot

Definition at line 148 of file corenetwork.h.

References Network::networkId().

Referenced by connectToIrc(), disconnectFromIrc(), socketDisconnected(), and socketError().

void recvRawServerMsg ( QString  )
signal
void displayStatusMsg ( QString  )
signal

Referenced by connectToIrc().

void displayMsg ( NetworkId  ,
Message::Type  ,
BufferInfo::Type  ,
const QString &  target,
const QString &  text,
const QString &  sender = "",
Message::Flags  flags = Message::None 
)
signal
void disconnected ( NetworkId  networkId)
signal

Referenced by socketDisconnected().

void connectionError ( const QString &  errorMsg)
signal

Referenced by socketError().

void quitRequested ( NetworkId  networkId)
signal
void sslErrors ( const QVariant &  errorData)
signal
void newEvent ( Event event)
signal

Referenced by socketHasData().

void socketOpen ( const CoreIdentity identity,
const QHostAddress &  localAddress,
quint16  localPort,
const QHostAddress &  peerAddress,
quint16  peerPort 
)
signal

Referenced by socketInitialized().

void socketInitialized ( const CoreIdentity identity,
const QHostAddress &  localAddress,
quint16  localPort,
const QHostAddress &  peerAddress,
quint16  peerPort 
)
signal
void socketDisconnected ( const CoreIdentity identity,
const QHostAddress &  localAddress,
quint16  localPort,
const QHostAddress &  peerAddress,
quint16  peerPort 
)
signal
virtual IrcChannel* ircChannelFactory ( const QString &  channelname)
inlineprotectedvirtual

Reimplemented from Network.

Definition at line 170 of file corenetwork.h.

virtual IrcUser* ircUserFactory ( const QString &  hostmask)
inlineprotectedvirtual

Reimplemented from Network.

Definition at line 171 of file corenetwork.h.

void socketHasData ( )
privateslot

Definition at line 421 of file corenetwork.cpp.

References newEvent(), and socket.

void socketError ( QAbstractSocket::SocketError  error)
privateslot
void socketCloseTimeout ( )
inlineprivateslot

Definition at line 183 of file corenetwork.h.

References socket.

void socketStateChanged ( QAbstractSocket::SocketState  socketState)
privateslot

Definition at line 535 of file corenetwork.cpp.

References Network::setConnectionState().

void restoreUserModes ( )
privateslot
void doAutoReconnect ( )
privateslot

Definition at line 793 of file corenetwork.cpp.

References _autoReconnectCount, Network::connectionState(), and connectToIrc().

Referenced by socketDisconnected().

void enablePingTimeout ( bool  enable = true)
privateslot

Definition at line 828 of file corenetwork.cpp.

References _pingTimer, disablePingTimeout(), networkConfig(), and resetPingTimeout().

Referenced by connectToIrc().

void disablePingTimeout ( )
privateslot

Definition at line 840 of file corenetwork.cpp.

References _pingTimer, _sendPings, and resetPingTimeout().

Referenced by disconnectFromIrc(), enablePingTimeout(), and socketDisconnected().

void startAutoWhoCycle ( )
privateslot

Definition at line 856 of file corenetwork.cpp.

References _autoWhoCycleTimer, _autoWhoQueue, and Network::channels().

Referenced by networkInitialized(), and sendAutoWho().

void fillBucketAndProcessQueue ( )
privateslot

Definition at line 924 of file corenetwork.cpp.

References _burstSize, _msgQueue, _tokenBucket, and writeToSocket().

void writeToSocket ( const QByteArray &  data)
privateslot

Definition at line 936 of file corenetwork.cpp.

References _tokenBucket, and socket.

Referenced by fillBucketAndProcessQueue(), and putRawLine().

void setCodecForServer ( const QByteArray &  codecName)
slotinherited

Definition at line 377 of file network.cpp.

References Network::setCodecForServer().

void setCodecForEncoding ( const QByteArray &  codecName)
slotinherited

Definition at line 400 of file network.cpp.

References Network::setCodecForEncoding().

void setCodecForDecoding ( const QByteArray &  codecName)
slotinherited

Definition at line 423 of file network.cpp.

References Network::setCodecForDecoding().

void setNetworkName ( const QString &  networkName)
slotinherited
void setCurrentServer ( const QString &  currentServer)
slotinherited
void setConnected ( bool  isConnected)
slotinherited
void setConnectionState ( int  state)
slotinherited
void setLatency ( int  latency)
slotinherited

Definition at line 537 of file network.cpp.

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

Referenced by CoreSessionEventProcessor::processIrcEventPong().

void setIdentity ( IdentityId  id)
slotinherited
void setServerList ( const QVariantList &  serverList)
slotinherited
void setUseRandomServer ( bool  use)
slotinherited

Definition at line 563 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setPerform ( const QStringList &  perform)
slotinherited

Definition at line 571 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setUseAutoIdentify ( bool  use)
slotinherited

Definition at line 579 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setAutoIdentifyService ( const QString &  service)
slotinherited

Definition at line 587 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setAutoIdentifyPassword ( const QString &  password)
slotinherited

Definition at line 595 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setUseSasl ( bool  use)
slotinherited

Definition at line 603 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setSaslAccount ( const QString &  account)
slotinherited

Definition at line 611 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setSaslPassword ( const QString &  password)
slotinherited

Definition at line 619 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setUnlimitedReconnectRetries ( bool  unlimited)
slotinherited

Definition at line 651 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void setRejoinChannels ( bool  rejoin)
slotinherited

Definition at line 659 of file network.cpp.

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

Referenced by Network::setNetworkInfo().

void addSupport ( const QString &  param,
const QString &  value = QString() 
)
slotinherited
void removeSupport ( const QString &  param)
slotinherited

Definition at line 676 of file network.cpp.

References Network::_supports, ARG, and SYNC.

void addIrcUser ( const QString &  hostmask)
inlineslotinherited

Definition at line 247 of file network.h.

References Network::newIrcUser().

Referenced by Network::newIrcUser().

void addIrcChannel ( const QString &  channel)
inlineslotinherited

Definition at line 248 of file network.h.

References Network::newIrcChannel().

Referenced by Network::newIrcChannel().

QVariantMap initSupports ( ) const
slotinherited

Definition at line 685 of file network.cpp.

References Network::_supports, and Network::supports().

QVariantList initServerList ( ) const
inlineslotinherited

Definition at line 252 of file network.h.

References Network::serverList(), and toVariantList().

QVariantMap initIrcUsersAndChannels ( ) const
virtualslotinherited

Definition at line 702 of file network.cpp.

References Network::_ircChannels, Network::_ircUsers, and Network::channels().

void initSetSupports ( const QVariantMap &  supports)
slotinherited

Definition at line 801 of file network.cpp.

References Network::addSupport().

void initSetServerList ( const QVariantList &  serverList)
inlineslotinherited

Definition at line 257 of file network.h.

References Network::_serverList, and Network::serverList().

void initSetIrcUsersAndChannels ( const QVariantMap &  usersAndChannels)
virtualslotinherited
void ircUserNickChanged ( QString  newnick)
slotinherited

Definition at line 827 of file network.cpp.

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

Referenced by Network::newIrcUser().

void emitConnectionError ( const QString &  errorMsg)
slotinherited

Definition at line 841 of file network.cpp.

References Network::connectionError().

Referenced by socketError().

void removeIrcUser ( IrcUser ircuser)
protectedvirtualslotinherited

Definition at line 257 of file network.cpp.

References Network::_ircUsers.

Referenced by IrcUser::quit().

void removeIrcChannel ( IrcChannel ircChannel)
protectedvirtualslotinherited

Definition at line 269 of file network.cpp.

References Network::_ircChannels.

Referenced by IrcChannel::part().

void removeChansAndUsers ( )
protectedvirtualslotinherited
void aboutToBeDestroyed ( )
signalinherited

Referenced by Network::~Network().

void networkNameSet ( const QString &  networkName)
signalinherited

Referenced by Network::setNetworkName().

void currentServerSet ( const QString &  currentServer)
signalinherited
void connectedSet ( bool  isConnected)
signalinherited

Referenced by Network::setConnected().

void connectionStateSet ( Network::ConnectionState  )
signalinherited
void myNickSet ( const QString &  mynick)
signalinherited

Referenced by Network::setMyNick().

void identitySet ( IdentityId  )
signalinherited

Referenced by Network::setIdentity().

void ircUserAdded ( IrcUser )
signalinherited

Referenced by Network::newIrcUser().

void ircChannelAdded ( IrcChannel )
signalinherited

Referenced by Network::newIrcChannel().

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(), Network::newIrcChannel(), Network::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

Member Data Documentation

CoreSession* _coreSession
private

Definition at line 206 of file corenetwork.h.

Referenced by coreSession(), and userId().

CoreUserInputHandler* _userInputHandler
private

Definition at line 214 of file corenetwork.h.

Referenced by userInputHandler(), and ~CoreNetwork().

QHash<QString, QString> _channelKeys
private

Definition at line 216 of file corenetwork.h.

Referenced by addChannelKey(), channelKey(), removeChannelKey(), and setChannelJoined().

QTimer _autoReconnectTimer
private
int _autoReconnectCount
private
QTimer _socketCloseTimer
private

Definition at line 221 of file corenetwork.h.

Referenced by disconnectFromIrc(), and socketDisconnected().

bool _quitRequested
private
QString _quitReason
private

Definition at line 227 of file corenetwork.h.

Referenced by connectToIrc(), disconnectFromIrc(), and socketDisconnected().

bool _previousConnectionAttemptFailed
private

Definition at line 229 of file corenetwork.h.

Referenced by connectToIrc(), and socketError().

int _lastUsedServerIndex
private

Definition at line 230 of file corenetwork.h.

Referenced by connectToIrc(), requestSetNetworkInfo(), and usedServer().

QTimer _pingTimer
private

Definition at line 232 of file corenetwork.h.

Referenced by disablePingTimeout(), enablePingTimeout(), sendPing(), and setPingInterval().

uint _lastPingTime
private

Definition at line 233 of file corenetwork.h.

Referenced by sendPing().

uint _pingCount
private

Definition at line 234 of file corenetwork.h.

Referenced by resetPingTimeout(), and sendPing().

bool _sendPings
private

Definition at line 235 of file corenetwork.h.

Referenced by disablePingTimeout(), networkInitialized(), and sendPing().

QStringList _autoWhoQueue
private
QHash<QString, int> _autoWhoPending
private
QTimer _autoWhoTimer
private
QTimer _autoWhoCycleTimer
private
QTimer _tokenBucketTimer
private

Definition at line 241 of file corenetwork.h.

Referenced by socketDisconnected(), and socketInitialized().

int _messageDelay
private

Definition at line 242 of file corenetwork.h.

Referenced by socketInitialized().

int _burstSize
private

Definition at line 243 of file corenetwork.h.

Referenced by fillBucketAndProcessQueue(), and socketInitialized().

int _tokenBucket
private
QList<QByteArray> _msgQueue
private
QString _requestedUserModes
private

Definition at line 247 of file corenetwork.h.

Referenced by resetPersistentModes(), updateIssuedModes(), and updatePersistentModes().


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