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

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

Inheritance diagram for CoreBufferViewConfig:
Collaboration diagram for CoreBufferViewConfig:

Public Slots

virtual void requestSetBufferViewName (const QString &bufferViewName)
virtual void requestRemoveBuffer (const BufferId &bufferId)
virtual void requestRemoveBufferPermanently (const BufferId &bufferId)
virtual void requestAddBuffer (const BufferId &bufferId, int pos)
virtual void requestMoveBuffer (const BufferId &bufferId, int pos)
const QString & bufferViewName () const
const NetworkIdnetworkId () const
bool addNewBuffersAutomatically () const
bool sortAlphabetically () const
bool hideInactiveBuffers () const
bool hideInactiveNetworks () const
bool disableDecoration () const
int allowedBufferTypes () const
int minimumActivity () const
int bufferViewId () const
void setBufferViewName (const QString &bufferViewName)
void setNetworkId (const NetworkId &networkId)
void setAddNewBuffersAutomatically (bool addNewBuffersAutomatically)
void setSortAlphabetically (bool sortAlphabetically)
void setDisableDecoration (bool disableDecoration)
void setAllowedBufferTypes (int bufferTypes)
void setMinimumActivity (int activity)
void setHideInactiveBuffers (bool hideInactiveBuffers)
void setHideInactiveNetworks (bool hideInactiveNetworks)
const QList< BufferId > & bufferList () const
const QSet< BufferId > & removedBuffers () const
const QSet< BufferId > & temporarilyRemovedBuffers () const
QVariantList initBufferList () const
void initSetBufferList (const QVariantList &buffers)
void initSetBufferList (const QList< BufferId > &buffers)
QVariantList initRemovedBuffers () const
void initSetRemovedBuffers (const QVariantList &buffers)
QVariantList initTemporarilyRemovedBuffers () const
void initSetTemporarilyRemovedBuffers (const QVariantList &buffers)
void addBuffer (const BufferId &bufferId, int pos)
void moveBuffer (const BufferId &bufferId, int pos)
void removeBuffer (const BufferId &bufferId)
void removeBufferPermanently (const BufferId &bufferId)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)

Signals

void bufferViewNameSet (const QString &bufferViewName)
void configChanged ()
void networkIdSet (const NetworkId &networkId)
void bufferListSet ()
void bufferAdded (const BufferId &bufferId, int pos)
void bufferMoved (const BufferId &bufferId, int pos)
void bufferRemoved (const BufferId &bufferId)
void bufferPermanentlyRemoved (const BufferId &bufferId)
void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

 CoreBufferViewConfig (int bufferViewId, QObject *parent=0)
 CoreBufferViewConfig (int bufferViewId, const QVariantMap &properties, QObject *parent=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)

Properties

QString bufferViewName
NetworkId networkId
bool addNewBuffersAutomatically
bool sortAlphabetically
bool hideInactiveBuffers
bool hideInactiveNetworks
bool disableDecoration
int allowedBufferTypes
int minimumActivity

Detailed Description

Definition at line 26 of file corebufferviewconfig.h.

Constructor & Destructor Documentation

CoreBufferViewConfig ( int  bufferViewId,
QObject *  parent = 0 
)
CoreBufferViewConfig ( int  bufferViewId,
const QVariantMap &  properties,
QObject *  parent = 0 
)

Definition at line 31 of file corebufferviewconfig.cpp.

References SyncableObject::setAllowClientUpdates().

Member Function Documentation

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtual

Reimplemented from BufferViewConfig.

Definition at line 35 of file corebufferviewconfig.h.

virtual void requestSetBufferViewName ( const QString &  bufferViewName)
inlinevirtualslot

Definition at line 38 of file corebufferviewconfig.h.

References BufferViewConfig::setBufferViewName().

virtual void requestRemoveBuffer ( const BufferId bufferId)
inlinevirtualslot

Definition at line 39 of file corebufferviewconfig.h.

References BufferViewConfig::removeBuffer().

virtual void requestRemoveBufferPermanently ( const BufferId bufferId)
inlinevirtualslot
virtual void requestAddBuffer ( const BufferId bufferId,
int  pos 
)
inlinevirtualslot

Definition at line 41 of file corebufferviewconfig.h.

References BufferViewConfig::addBuffer().

virtual void requestMoveBuffer ( const BufferId bufferId,
int  pos 
)
inlinevirtualslot

Definition at line 42 of file corebufferviewconfig.h.

References BufferViewConfig::moveBuffer().

const QString& bufferViewName ( ) const
inlineslotinherited

Definition at line 52 of file bufferviewconfig.h.

References BufferViewConfig::_bufferViewName.

Referenced by BufferViewConfig::setBufferViewName().

const NetworkId& networkId ( ) const
inlineslotinherited

Definition at line 55 of file bufferviewconfig.h.

References BufferViewConfig::_networkId.

Referenced by BufferViewConfig::setNetworkId().

bool addNewBuffersAutomatically ( ) const
inlineslotinherited
bool sortAlphabetically ( ) const
inlineslotinherited
bool hideInactiveBuffers ( ) const
inlineslotinherited
bool hideInactiveNetworks ( ) const
inlineslotinherited
bool disableDecoration ( ) const
inlineslotinherited
int allowedBufferTypes ( ) const
inlineslotinherited

Definition at line 67 of file bufferviewconfig.h.

References BufferViewConfig::_allowedBufferTypes.

int minimumActivity ( ) const
inlineslotinherited

Definition at line 70 of file bufferviewconfig.h.

References BufferViewConfig::_minimumActivity.

void setAddNewBuffersAutomatically ( bool  addNewBuffersAutomatically)
slotinherited
void setDisableDecoration ( bool  disableDecoration)
slotinherited
void setAllowedBufferTypes ( int  bufferTypes)
slotinherited
void setMinimumActivity ( int  activity)
slotinherited
void setHideInactiveBuffers ( bool  hideInactiveBuffers)
slotinherited
void setHideInactiveNetworks ( bool  hideInactiveNetworks)
slotinherited
const QSet<BufferId>& removedBuffers ( ) const
inlineslotinherited
QVariantList initBufferList ( ) const
slotinherited

Definition at line 148 of file bufferviewconfig.cpp.

References BufferViewConfig::_buffers.

void initSetBufferList ( const QList< BufferId > &  buffers)
slotinherited
QVariantList initRemovedBuffers ( ) const
slotinherited
void initSetRemovedBuffers ( const QVariantList &  buffers)
slotinherited

Definition at line 196 of file bufferviewconfig.cpp.

References BufferViewConfig::_removedBuffers.

QVariantList initTemporarilyRemovedBuffers ( ) const
slotinherited
void initSetTemporarilyRemovedBuffers ( const QVariantList &  buffers)
slotinherited
void moveBuffer ( const BufferId bufferId,
int  pos 
)
slotinherited
void bufferViewNameSet ( const QString &  bufferViewName)
signalinherited
void networkIdSet ( const NetworkId networkId)
signalinherited
void bufferListSet ( )
signalinherited
void bufferAdded ( const BufferId bufferId,
int  pos 
)
signalinherited
void bufferMoved ( const BufferId bufferId,
int  pos 
)
signalinherited
void bufferRemoved ( const BufferId bufferId)
signalinherited
void bufferPermanentlyRemoved ( const BufferId bufferId)
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

Property Documentation

bool addNewBuffersAutomatically
readwriteinherited
bool hideInactiveBuffers
readwriteinherited

Definition at line 37 of file bufferviewconfig.h.

Referenced by BufferViewSettingsPage::loadConfig().

bool hideInactiveNetworks
readwriteinherited

Definition at line 38 of file bufferviewconfig.h.

Referenced by BufferViewSettingsPage::loadConfig().

bool disableDecoration
readwriteinherited

Definition at line 39 of file bufferviewconfig.h.

int minimumActivity
readwriteinherited

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