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

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

Inheritance diagram for CoreIrcListHelper:
Collaboration diagram for CoreIrcListHelper:

Public Slots

virtual QVariantList requestChannelList (const NetworkId &netId, const QStringList &channelFilters)
bool addChannel (const NetworkId &netId, const QString &channelName, quint32 userCount, const QString &topic)
bool endOfChannelList (const NetworkId &netId)
virtual void receiveChannelList (const NetworkId &, const QStringList &, const QVariantList &)
virtual void reportFinishedList (const NetworkId &netId)
virtual void reportError (const QString &error)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)


void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

 CoreIrcListHelper (CoreSession *coreSession)
virtual const QMetaObject * syncMetaObject () const
CoreSessioncoreSession () const
bool requestInProgress (const NetworkId &netId) const
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 Member Functions

void timerEvent (QTimerEvent *event)
void sync_call__ (SignalProxy::ProxyMode modeType, const char *funcname,...) const
void renameObject (const QString &newName)

Private Member Functions

bool dispatchQuery (const NetworkId &netId, const QString &query)

Private Attributes

QHash< NetworkId, QString > _queuedQuery
QHash< NetworkId, QList
< ChannelDescription > > 
QHash< NetworkId, QVariantList > _finishedChannelLists
QHash< int, NetworkId_queryTimeout

Detailed Description

Definition at line 30 of file coreirclisthelper.h.

Constructor & Destructor Documentation

CoreIrcListHelper ( CoreSession coreSession)

Definition at line 36 of file coreirclisthelper.h.

Member Function Documentation

virtual const QMetaObject* syncMetaObject ( ) const

Reimplemented from SyncableObject.

Definition at line 38 of file coreirclisthelper.h.

CoreSession* coreSession ( ) const

Definition at line 40 of file coreirclisthelper.h.

References _coreSession.

Referenced by dispatchQuery().

bool requestInProgress ( const NetworkId netId) const

Definition at line 42 of file coreirclisthelper.h.

References _channelLists.

virtual QVariantList requestChannelList ( const NetworkId netId,
const QStringList &  channelFilters 
bool addChannel ( const NetworkId netId,
const QString &  channelName,
quint32  userCount,
const QString &  topic 

Definition at line 42 of file coreirclisthelper.cpp.

References _channelLists.

void timerEvent ( QTimerEvent *  event)

Definition at line 93 of file coreirclisthelper.cpp.

References _queryTimeout, and endOfChannelList().

bool dispatchQuery ( const NetworkId netId,
const QString &  query 
virtual void receiveChannelList ( const NetworkId ,
const QStringList &  ,
const QVariantList &   

Definition at line 52 of file irclisthelper.h.

virtual void reportFinishedList ( const NetworkId netId)

Definition at line 53 of file irclisthelper.h.

References ARG, and SYNC.

Referenced by endOfChannelList().

virtual void reportError ( const QString &  error)

Definition at line 54 of file irclisthelper.h.

References ARG, and SYNC.

QVariantMap toVariantMap ( )

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.

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!
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)

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)
bool allowClientUpdates ( ) const

Definition at line 82 of file syncableobject.h.

References SyncableObject::_allowClientUpdates.

Referenced by SyncableObject::requestUpdate().

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

Member Data Documentation

CoreSession* _coreSession

Definition at line 56 of file coreirclisthelper.h.

Referenced by coreSession().

QHash<NetworkId, QString> _queuedQuery

Definition at line 58 of file coreirclisthelper.h.

Referenced by endOfChannelList().

QHash<NetworkId, QList<ChannelDescription> > _channelLists

Definition at line 59 of file coreirclisthelper.h.

Referenced by addChannel(), dispatchQuery(), endOfChannelList(), and requestInProgress().

QHash<NetworkId, QVariantList> _finishedChannelLists

Definition at line 60 of file coreirclisthelper.h.

Referenced by endOfChannelList().

QHash<int, NetworkId> _queryTimeout

Definition at line 61 of file coreirclisthelper.h.

Referenced by dispatchQuery(), and timerEvent().

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