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

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

Inheritance diagram for ClientBufferViewConfig:
Collaboration diagram for ClientBufferViewConfig:

Public Slots

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)
virtual void requestSetBufferViewName (const QString &bufferViewName)
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)
virtual void requestAddBuffer (const BufferId &bufferId, int pos)
void moveBuffer (const BufferId &bufferId, int pos)
virtual void requestMoveBuffer (const BufferId &bufferId, int pos)
void removeBuffer (const BufferId &bufferId)
virtual void requestRemoveBuffer (const BufferId &bufferId)
void removeBufferPermanently (const BufferId &bufferId)
virtual void requestRemoveBufferPermanently (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

 ClientBufferViewConfig (int bufferViewId, QObject *parent=0)
bool isLocked ()
void setLocked (bool locked)
void lock ()
void unlock ()
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

Private Slots

void ensureDecoration ()

Private Attributes

bool _locked

Detailed Description

Definition at line 26 of file clientbufferviewconfig.h.

Constructor & Destructor Documentation

ClientBufferViewConfig ( int  bufferViewId,
QObject *  parent = 0 
)

Member Function Documentation

bool isLocked ( )
inline
void setLocked ( bool  locked)
inline
void lock ( )
inline

Definition at line 36 of file clientbufferviewconfig.h.

References setLocked().

void unlock ( )
inline

Definition at line 37 of file clientbufferviewconfig.h.

References setLocked().

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.

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtualinherited

Reimplemented from SyncableObject.

Reimplemented in CoreBufferViewConfig.

Definition at line 47 of file bufferviewconfig.h.

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
virtual void requestSetBufferViewName ( const QString &  bufferViewName)
inlinevirtualslotinherited

Definition at line 79 of file bufferviewconfig.h.

References ARG, and REQUEST.

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
virtual void requestAddBuffer ( const BufferId bufferId,
int  pos 
)
inlinevirtualslotinherited
void moveBuffer ( const BufferId bufferId,
int  pos 
)
slotinherited
virtual void requestMoveBuffer ( const BufferId bufferId,
int  pos 
)
inlinevirtualslotinherited

Definition at line 98 of file bufferviewconfig.h.

References ARG, and REQUEST.

Referenced by BufferViewFilter::dropMimeData().

virtual void requestRemoveBuffer ( const BufferId bufferId)
inlinevirtualslotinherited
virtual void requestRemoveBufferPermanently ( const BufferId bufferId)
inlinevirtualslotinherited

Definition at line 102 of file bufferviewconfig.h.

References ARG, and REQUEST.

Referenced by BufferViewFilter::enableEditMode(), and BufferView::removeSelectedBuffers().

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(), 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 requestUpdate ( const QVariantMap &  properties)
slotinherited
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

bool _locked
private

Definition at line 43 of file clientbufferviewconfig.h.

Referenced by isLocked(), and setLocked().

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: