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

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

Inheritance diagram for CoreIdentity:
Collaboration diagram for CoreIdentity:

Public Slots

void setId (IdentityId id)
void setIdentityName (const QString &name)
void setRealName (const QString &realName)
void setNicks (const QStringList &nicks)
void setAwayNick (const QString &awayNick)
void setAwayNickEnabled (bool enabled)
void setAwayReason (const QString &awayReason)
void setAwayReasonEnabled (bool enabled)
void setAutoAwayEnabled (bool enabled)
void setAutoAwayTime (int time)
void setAutoAwayReason (const QString &reason)
void setAutoAwayReasonEnabled (bool enabled)
void setDetachAwayEnabled (bool enabled)
void setDetachAwayReason (const QString &reason)
void setDetachAwayReasonEnabled (bool enabled)
void setIdent (const QString &ident)
void setKickReason (const QString &reason)
void setPartReason (const QString &reason)
void setQuitReason (const QString &reason)
void copyFrom (const Identity &other)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)

Signals

void idSet (IdentityId id)
void nicksSet (const QStringList &nicks)
void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

 CoreIdentity (IdentityId id, QObject *parent=0)
 CoreIdentity (const Identity &other, QObject *parent=0)
 CoreIdentity (const CoreIdentity &other, QObject *parent=0)
void synchronize (SignalProxy *proxy)
CoreIdentityoperator= (const CoreIdentity &identity)
const QString & identityName () const
const QString & realName () const
const QStringList & nicks () const
const QString & awayNick () const
bool awayNickEnabled () const
const QString & awayReason () const
bool awayReasonEnabled () const
bool autoAwayEnabled () const
int autoAwayTime () const
const QString & autoAwayReason () const
bool autoAwayReasonEnabled () const
bool detachAwayEnabled () const
const QString & detachAwayReason () const
bool detachAwayReasonEnabled () const
const QString & ident () const
const QString & kickReason () const
const QString & partReason () const
const QString & quitReason () const
virtual const QMetaObject * syncMetaObject () const
void setToDefaults ()
bool operator== (const Identity &other) const
bool operator!= (const Identity &other) const
bool isValid () const
IdentityId id () 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

IdentityId identityId
QString identityName
QString realName
QStringList nicks
QString awayNick
bool awayNickEnabled
QString awayReason
bool awayReasonEnabled
bool autoAwayEnabled
int autoAwayTime
QString autoAwayReason
bool autoAwayReasonEnabled
bool detachAwayEnabled
QString detachAwayReason
bool detachAwayReasonEnabled
QString ident
QString kickReason
QString partReason
QString quitReason

Detailed Description

Definition at line 67 of file coreidentity.h.

Constructor & Destructor Documentation

CoreIdentity ( IdentityId  id,
QObject *  parent = 0 
)
CoreIdentity ( const Identity other,
QObject *  parent = 0 
)

Definition at line 39 of file coreidentity.cpp.

References Identity::idSet(), Identity::setId(), and SyncableObject::updated().

CoreIdentity ( const CoreIdentity other,
QObject *  parent = 0 
)

Definition at line 52 of file coreidentity.cpp.

References Identity::idSet(), Identity::setId(), and SyncableObject::updated().

Member Function Documentation

void synchronize ( SignalProxy proxy)

Reimplemented from SyncableObject.

Definition at line 67 of file coreidentity.cpp.

References SignalProxy::synchronize().

Referenced by CoreSession::createIdentity().

CoreIdentity & operator= ( const CoreIdentity identity)

Definition at line 94 of file coreidentity.cpp.

const QString& identityName ( ) const
inlineinherited

Definition at line 71 of file identity.h.

References Identity::_identityName.

Referenced by Identity::setIdentityName().

const QString& realName ( ) const
inlineinherited

Definition at line 72 of file identity.h.

References Identity::_realName.

Referenced by Identity::defaultRealName(), and Identity::setRealName().

const QStringList& nicks ( ) const
inlineinherited

Definition at line 73 of file identity.h.

References Identity::_nicks.

Referenced by Identity::setNicks().

const QString& awayNick ( ) const
inlineinherited

Definition at line 74 of file identity.h.

References Identity::_awayNick.

bool awayNickEnabled ( ) const
inlineinherited

Definition at line 75 of file identity.h.

References Identity::_awayNickEnabled.

const QString& awayReason ( ) const
inlineinherited

Definition at line 76 of file identity.h.

References Identity::_awayReason.

bool awayReasonEnabled ( ) const
inlineinherited

Definition at line 77 of file identity.h.

References Identity::_awayReasonEnabled.

bool autoAwayEnabled ( ) const
inlineinherited

Definition at line 78 of file identity.h.

References Identity::_autoAwayEnabled.

int autoAwayTime ( ) const
inlineinherited

Definition at line 79 of file identity.h.

References Identity::_autoAwayTime.

const QString& autoAwayReason ( ) const
inlineinherited

Definition at line 80 of file identity.h.

References Identity::_autoAwayReason.

bool autoAwayReasonEnabled ( ) const
inlineinherited

Definition at line 81 of file identity.h.

References Identity::_autoAwayReasonEnabled.

bool detachAwayEnabled ( ) const
inlineinherited

Definition at line 82 of file identity.h.

References Identity::_detachAwayEnabled.

const QString& detachAwayReason ( ) const
inlineinherited

Definition at line 83 of file identity.h.

References Identity::_detachAwayReason.

bool detachAwayReasonEnabled ( ) const
inlineinherited

Definition at line 84 of file identity.h.

References Identity::_detachAwayReasonEnabled.

const QString& ident ( ) const
inlineinherited

Definition at line 85 of file identity.h.

References Identity::_ident.

Referenced by Identity::setIdent().

const QString& kickReason ( ) const
inlineinherited

Definition at line 86 of file identity.h.

References Identity::_kickReason.

const QString& partReason ( ) const
inlineinherited

Definition at line 87 of file identity.h.

References Identity::_partReason.

const QString& quitReason ( ) const
inlineinherited

Definition at line 88 of file identity.h.

References Identity::_quitReason.

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtualinherited

Reimplemented from SyncableObject.

Definition at line 61 of file identity.h.

bool operator== ( const Identity other) const
inherited

Definition at line 351 of file identity.cpp.

bool operator!= ( const Identity other) const
inherited

Definition at line 370 of file identity.cpp.

bool isValid ( ) const
inlineinherited

Definition at line 68 of file identity.h.

References Identity::id(), and SignedId::isValid().

void setRealName ( const QString &  realName)
slotinherited
void setNicks ( const QStringList &  nicks)
slotinherited
void setAwayNick ( const QString &  awayNick)
slotinherited
void setAwayNickEnabled ( bool  enabled)
slotinherited
void setAwayReason ( const QString &  awayReason)
slotinherited
void setAwayReasonEnabled ( bool  enabled)
slotinherited
void setAutoAwayEnabled ( bool  enabled)
slotinherited
void setAutoAwayTime ( int  time)
slotinherited
void setAutoAwayReason ( const QString &  reason)
slotinherited
void setAutoAwayReasonEnabled ( bool  enabled)
slotinherited
void setDetachAwayEnabled ( bool  enabled)
slotinherited
void setDetachAwayReason ( const QString &  reason)
slotinherited
void setDetachAwayReasonEnabled ( bool  enabled)
slotinherited
void setIdent ( const QString &  ident)
slotinherited
void setKickReason ( const QString &  reason)
slotinherited
void setPartReason ( const QString &  reason)
slotinherited
void setQuitReason ( const QString &  reason)
slotinherited
void copyFrom ( const Identity other)
slotinherited
void idSet ( IdentityId  id)
signalinherited

Referenced by CoreIdentity(), and Identity::setId().

void nicksSet ( const QStringList &  nicks)
signalinherited

Referenced by Identity::setNicks().

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

IdentityId identityId
readwriteinherited

Definition at line 38 of file identity.h.

bool awayNickEnabled
readwriteinherited
bool awayReasonEnabled
readwriteinherited
bool autoAwayEnabled
readwriteinherited

Definition at line 46 of file identity.h.

Referenced by IdentityEditWidget::displayIdentity().

bool detachAwayReasonEnabled
readwriteinherited

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