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

#include </tmp/quassel/src/common/bufferviewconfig.h>

Inheritance diagram for BufferViewConfig:
Collaboration diagram for BufferViewConfig:

Public Slots

int bufferViewId () const
const QString & bufferViewName () const
void setBufferViewName (const QString &bufferViewName)
const NetworkIdnetworkId () const
void setNetworkId (const NetworkId &networkId)
bool addNewBuffersAutomatically () const
void setAddNewBuffersAutomatically (bool addNewBuffersAutomatically)
bool sortAlphabetically () const
void setSortAlphabetically (bool sortAlphabetically)
bool disableDecoration () const
void setDisableDecoration (bool disableDecoration)
int allowedBufferTypes () const
void setAllowedBufferTypes (int bufferTypes)
int minimumActivity () const
void setMinimumActivity (int activity)
bool hideInactiveBuffers () const
void setHideInactiveBuffers (bool hideInactiveBuffers)
bool hideInactiveNetworks () const
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

 BufferViewConfig (int bufferViewId, QObject *parent=0)
 BufferViewConfig (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

Private Attributes

int _bufferViewId
QString _bufferViewName
NetworkId _networkId
bool _addNewBuffersAutomatically
bool _sortAlphabetically
bool _hideInactiveBuffers
bool _hideInactiveNetworks
bool _disableDecoration
int _allowedBufferTypes
int _minimumActivity
QList< BufferId_buffers
QSet< BufferId_removedBuffers
QSet< BufferId_temporarilyRemovedBuffers

Static Private Attributes

static const int _classNameOffset__ = QByteArray(staticMetaObject.className()).length() + 2

Detailed Description

Definition at line 28 of file bufferviewconfig.h.

Constructor & Destructor Documentation

BufferViewConfig ( int  bufferViewId,
QObject *  parent = 0 
)

Definition at line 26 of file bufferviewconfig.cpp.

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

Definition at line 41 of file bufferviewconfig.cpp.

References SyncableObject::fromVariantMap().

Member Function Documentation

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtual

Reimplemented from SyncableObject.

Reimplemented in CoreBufferViewConfig.

Definition at line 47 of file bufferviewconfig.h.

const QString& bufferViewName ( ) const
inlineslot

Definition at line 52 of file bufferviewconfig.h.

References _bufferViewName.

Referenced by setBufferViewName().

const NetworkId& networkId ( ) const
inlineslot

Definition at line 55 of file bufferviewconfig.h.

References _networkId.

Referenced by setNetworkId().

void setNetworkId ( const NetworkId networkId)
slot
bool addNewBuffersAutomatically ( ) const
inlineslot

Definition at line 58 of file bufferviewconfig.h.

References _addNewBuffersAutomatically.

Referenced by setAddNewBuffersAutomatically().

void setAddNewBuffersAutomatically ( bool  addNewBuffersAutomatically)
slot
bool sortAlphabetically ( ) const
inlineslot

Definition at line 61 of file bufferviewconfig.h.

References _sortAlphabetically.

Referenced by ClientBufferViewConfig::isLocked(), and setSortAlphabetically().

void setSortAlphabetically ( bool  sortAlphabetically)
slot
bool disableDecoration ( ) const
inlineslot
void setDisableDecoration ( bool  disableDecoration)
slot
int allowedBufferTypes ( ) const
inlineslot

Definition at line 67 of file bufferviewconfig.h.

References _allowedBufferTypes.

void setAllowedBufferTypes ( int  bufferTypes)
slot

Definition at line 105 of file bufferviewconfig.cpp.

References _allowedBufferTypes, ARG, configChanged(), and SYNC.

Referenced by BufferViewSettingsPage::saveConfig().

int minimumActivity ( ) const
inlineslot

Definition at line 70 of file bufferviewconfig.h.

References _minimumActivity.

void setMinimumActivity ( int  activity)
slot

Definition at line 116 of file bufferviewconfig.cpp.

References _minimumActivity, ARG, configChanged(), and SYNC.

Referenced by BufferViewSettingsPage::saveConfig().

bool hideInactiveBuffers ( ) const
inlineslot

Definition at line 73 of file bufferviewconfig.h.

References _hideInactiveBuffers.

Referenced by setHideInactiveBuffers().

void setHideInactiveBuffers ( bool  hideInactiveBuffers)
slot
bool hideInactiveNetworks ( ) const
inlineslot

Definition at line 76 of file bufferviewconfig.h.

References _hideInactiveNetworks.

Referenced by setHideInactiveNetworks().

void setHideInactiveNetworks ( bool  hideInactiveNetworks)
slot
virtual void requestSetBufferViewName ( const QString &  bufferViewName)
inlinevirtualslot

Definition at line 79 of file bufferviewconfig.h.

References ARG, and REQUEST.

const QSet<BufferId>& removedBuffers ( ) const
inlineslot
QVariantList initBufferList ( ) const
slot

Definition at line 148 of file bufferviewconfig.cpp.

References _buffers.

void initSetBufferList ( const QVariantList &  buffers)
slot
void initSetBufferList ( const QList< BufferId > &  buffers)
slot

Definition at line 172 of file bufferviewconfig.cpp.

References _buffers, and configChanged().

QVariantList initRemovedBuffers ( ) const
slot

Definition at line 184 of file bufferviewconfig.cpp.

References _removedBuffers, and removedBuffers().

void initSetRemovedBuffers ( const QVariantList &  buffers)
slot

Definition at line 196 of file bufferviewconfig.cpp.

References _removedBuffers.

QVariantList initTemporarilyRemovedBuffers ( ) const
slot
void initSetTemporarilyRemovedBuffers ( const QVariantList &  buffers)
slot

Definition at line 218 of file bufferviewconfig.cpp.

References _temporarilyRemovedBuffers.

void addBuffer ( const BufferId bufferId,
int  pos 
)
slot
virtual void requestAddBuffer ( const BufferId bufferId,
int  pos 
)
inlinevirtualslot
void moveBuffer ( const BufferId bufferId,
int  pos 
)
slot

Definition at line 251 of file bufferviewconfig.cpp.

References _buffers, ARG, bufferMoved(), configChanged(), and SYNC.

Referenced by CoreBufferViewConfig::requestMoveBuffer().

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

Definition at line 98 of file bufferviewconfig.h.

References ARG, and REQUEST.

Referenced by BufferViewFilter::dropMimeData().

virtual void requestRemoveBuffer ( const BufferId bufferId)
inlinevirtualslot
void removeBufferPermanently ( const BufferId bufferId)
slot
virtual void requestRemoveBufferPermanently ( const BufferId bufferId)
inlinevirtualslot

Definition at line 102 of file bufferviewconfig.h.

References ARG, and REQUEST.

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

void bufferViewNameSet ( const QString &  bufferViewName)
signal

Referenced by setBufferViewName().

void networkIdSet ( const NetworkId networkId)
signal

Referenced by setNetworkId().

void bufferListSet ( )
signal
void bufferAdded ( const BufferId bufferId,
int  pos 
)
signal

Referenced by addBuffer().

void bufferMoved ( const BufferId bufferId,
int  pos 
)
signal

Referenced by moveBuffer().

void bufferRemoved ( const BufferId bufferId)
signal

Referenced by removeBuffer().

void bufferPermanentlyRemoved ( const BufferId bufferId)
signal

Referenced by removeBufferPermanently().

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(), 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

const int _classNameOffset__ = QByteArray(staticMetaObject.className()).length() + 2
staticprivate

Definition at line 30 of file bufferviewconfig.h.

int _bufferViewId
private

Definition at line 128 of file bufferviewconfig.h.

Referenced by bufferViewId().

QString _bufferViewName
private

Definition at line 129 of file bufferviewconfig.h.

Referenced by bufferViewName(), and setBufferViewName().

NetworkId _networkId
private

Definition at line 130 of file bufferviewconfig.h.

Referenced by networkId(), and setNetworkId().

bool _addNewBuffersAutomatically
private
bool _sortAlphabetically
private

Definition at line 132 of file bufferviewconfig.h.

Referenced by setSortAlphabetically(), and sortAlphabetically().

bool _hideInactiveBuffers
private

Definition at line 133 of file bufferviewconfig.h.

Referenced by hideInactiveBuffers(), and setHideInactiveBuffers().

bool _hideInactiveNetworks
private

Definition at line 134 of file bufferviewconfig.h.

Referenced by hideInactiveNetworks(), and setHideInactiveNetworks().

bool _disableDecoration
private

Definition at line 135 of file bufferviewconfig.h.

Referenced by disableDecoration(), and setDisableDecoration().

int _allowedBufferTypes
private

Definition at line 136 of file bufferviewconfig.h.

Referenced by allowedBufferTypes(), and setAllowedBufferTypes().

int _minimumActivity
private

Definition at line 137 of file bufferviewconfig.h.

Referenced by minimumActivity(), and setMinimumActivity().

QSet<BufferId> _removedBuffers
private

Property Documentation

bool addNewBuffersAutomatically
readwrite
bool hideInactiveBuffers
readwrite

Definition at line 37 of file bufferviewconfig.h.

Referenced by BufferViewSettingsPage::loadConfig().

bool hideInactiveNetworks
readwrite

Definition at line 38 of file bufferviewconfig.h.

Referenced by BufferViewSettingsPage::loadConfig().

bool disableDecoration
readwrite

Definition at line 39 of file bufferviewconfig.h.

int minimumActivity
readwrite

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