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

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

Inheritance diagram for CoreBacklogManager:
Collaboration diagram for CoreBacklogManager:

Public Slots

virtual QVariantList requestBacklog (BufferId bufferId, MsgId first=-1, MsgId last=-1, int limit=-1, int additional=0)
virtual QVariantList requestBacklogAll (MsgId first=-1, MsgId last=-1, int limit=-1, int additional=0)
virtual void receiveBacklog (BufferId, MsgId, MsgId, int, int, QVariantList)
virtual void receiveBacklogAll (MsgId, MsgId, int, int, QVariantList)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)

Signals

void backlogRequested (BufferId, MsgId, MsgId, int, int)
void backlogAllRequested (MsgId, MsgId, int, int)
void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

 CoreBacklogManager (CoreSession *coreSession=0)
CoreSessioncoreSession ()
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

CoreSession_coreSession

Detailed Description

Definition at line 28 of file corebacklogmanager.h.

Constructor & Destructor Documentation

CoreBacklogManager ( CoreSession coreSession = 0)

Member Function Documentation

CoreSession* coreSession ( )
inline

Definition at line 36 of file corebacklogmanager.h.

References _coreSession.

Referenced by requestBacklog(), and requestBacklogAll().

QVariantList requestBacklog ( BufferId  bufferId,
MsgId  first = -1,
MsgId  last = -1,
int  limit = -1,
int  additional = 0 
)
virtualslot

Definition at line 35 of file corebacklogmanager.cpp.

References coreSession(), and Core::requestMsgs().

QVariantList requestBacklogAll ( MsgId  first = -1,
MsgId  last = -1,
int  limit = -1,
int  additional = 0 
)
virtualslot

Definition at line 81 of file corebacklogmanager.cpp.

References coreSession(), and Core::requestAllMsgs().

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtualinherited

Reimplemented from SyncableObject.

Definition at line 34 of file backlogmanager.h.

virtual void receiveBacklog ( BufferId  ,
MsgId  ,
MsgId  ,
int  ,
int  ,
QVariantList   
)
inlinevirtualslotinherited

Definition at line 38 of file backlogmanager.h.

virtual void receiveBacklogAll ( MsgId  ,
MsgId  ,
int  ,
int  ,
QVariantList   
)
inlinevirtualslotinherited

Definition at line 41 of file backlogmanager.h.

void backlogRequested ( BufferId  ,
MsgId  ,
MsgId  ,
int  ,
int   
)
signalinherited
void backlogAllRequested ( MsgId  ,
MsgId  ,
int  ,
int   
)
signalinherited
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 43 of file corebacklogmanager.h.

Referenced by coreSession().


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