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

#include </tmp/quassel/src/client/clientirclisthelper.h>

Inheritance diagram for ClientIrcListHelper:
Collaboration diagram for ClientIrcListHelper:

Public Slots

virtual QVariantList requestChannelList (const NetworkId &netId, const QStringList &channelFilters)
virtual void receiveChannelList (const NetworkId &netId, const QStringList &channelFilters, const QVariantList &channels)
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 channelListReceived (const NetworkId &netId, const QStringList &channelFilters, const QList< IrcListHelper::ChannelDescription > &channelList)
void finishedListReported (const NetworkId &netId)
void errorReported (const QString &error)
void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

 ClientIrcListHelper (QObject *object=0)
virtual const QMetaObject * syncMetaObject () 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 sync_call__ (SignalProxy::ProxyMode modeType, const char *funcname,...) const
void renameObject (const QString &newName)

Private Attributes

NetworkId _netId

Detailed Description

Definition at line 26 of file clientirclisthelper.h.

Constructor & Destructor Documentation

ClientIrcListHelper ( QObject *  object = 0)

Definition at line 32 of file clientirclisthelper.h.

Member Function Documentation

virtual const QMetaObject* syncMetaObject ( ) const

Reimplemented from SyncableObject.

Definition at line 34 of file clientirclisthelper.h.

virtual QVariantList requestChannelList ( const NetworkId netId,
const QStringList &  channelFilters 
void receiveChannelList ( const NetworkId netId,
const QStringList &  channelFilters,
const QVariantList &  channels 

Definition at line 36 of file clientirclisthelper.cpp.

References channelListReceived().

void reportFinishedList ( const NetworkId netId)

Definition at line 53 of file clientirclisthelper.cpp.

References _netId, finishedListReported(), and requestChannelList().

virtual void reportError ( const QString &  error)

Definition at line 40 of file clientirclisthelper.h.

References errorReported().

void channelListReceived ( const NetworkId netId,
const QStringList &  channelFilters,
const QList< IrcListHelper::ChannelDescription > &  channelList 

Referenced by receiveChannelList().

void finishedListReported ( const NetworkId netId)

Referenced by reportFinishedList().

void errorReported ( const QString &  error)

Referenced by reportError().

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

NetworkId _netId

Definition at line 48 of file clientirclisthelper.h.

Referenced by reportFinishedList().

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