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

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

Inheritance diagram for CoreIrcUser:
Collaboration diagram for CoreIrcUser:

Public Slots

void setUser (const QString &user)
void setHost (const QString &host)
void setNick (const QString &nick)
void setRealName (const QString &realName)
void setAway (const bool &away)
void setAwayMessage (const QString &awayMessage)
void setIdleTime (const QDateTime &idleTime)
void setLoginTime (const QDateTime &loginTime)
void setServer (const QString &server)
void setIrcOperator (const QString &ircOperator)
void setLastAwayMessage (const int &lastAwayMessage)
void setWhoisServiceReply (const QString &whoisServiceReply)
void setSuserHost (const QString &suserHost)
void setEncrypted (bool encrypted)
void updateHostmask (const QString &mask)
void setUserModes (const QString &modes)
void joinChannel (IrcChannel *channel)
void joinChannel (const QString &channelname)
void partChannel (IrcChannel *channel)
void partChannel (const QString &channelname)
void quit ()
void addUserModes (const QString &modes)
void removeUserModes (const QString &modes)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)

Signals

void nickSet (QString newnick)
void awaySet (bool away)
void encryptedSet (bool encrypted)
void userModesSet (QString modes)
void userModesAdded (QString modes)
void userModesRemoved (QString modes)
void channelParted (QString channel)
void quited ()
void lastChannelActivityUpdated (BufferId id, const QDateTime &newTime)
void lastSpokenToUpdated (BufferId id, const QDateTime &newTime)
void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

 CoreIrcUser (const QString &hostmask, Network *network)
virtual ~CoreIrcUser ()
virtual const QMetaObject * syncMetaObject () const
QString user () const
QString host () const
QString nick () const
QString realName () const
QString awayMessage () const
QDateTime idleTime ()
QDateTime loginTime () const
QString server () const
QString ircOperator () const
int lastAwayMessage () const
QString whoisServiceReply () const
QString suserHost () const
bool encrypted () const
QStringList channels () const
QString userModes () const
QString hostmask () const
bool isAway () const
Networknetwork () const
QTextCodec * codecForEncoding () const
QTextCodec * codecForDecoding () const
void setCodecForEncoding (const QString &codecName)
void setCodecForEncoding (QTextCodec *codec)
void setCodecForDecoding (const QString &codecName)
void setCodecForDecoding (QTextCodec *codec)
QString decodeString (const QByteArray &text) const
QByteArray encodeString (const QString &string) const
QDateTime lastChannelActivity (BufferId id) const
void setLastChannelActivity (BufferId id, const QDateTime &time)
QDateTime lastSpokenTo (BufferId id) const
void setLastSpokenTo (BufferId id, const QDateTime &time)
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 user
QString host
QString nick
QString realName
bool away
QString awayMessage
QDateTime idleTime
QDateTime loginTime
QString server
QString ircOperator
int lastAwayMessage
QString whoisServiceReply
QString suserHost
bool encrypted
QStringList channels
QString userModes

Detailed Description

Definition at line 30 of file coreircuser.h.

Constructor & Destructor Documentation

CoreIrcUser ( const QString &  hostmask,
Network network 
)

Definition at line 23 of file coreircuser.cpp.

~CoreIrcUser ( )
virtual

Definition at line 31 of file coreircuser.cpp.

Member Function Documentation

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtual

Reimplemented from SyncableObject.

Definition at line 39 of file coreircuser.h.

QString user ( ) const
inlineinherited

Definition at line 64 of file ircuser.h.

References IrcUser::_user.

Referenced by IrcUser::hostmask(), IrcUser::setUser(), and IrcUser::updateHostmask().

QString host ( ) const
inlineinherited

Definition at line 65 of file ircuser.h.

References IrcUser::_host.

Referenced by IrcUser::hostmask(), IrcUser::setHost(), and IrcUser::updateHostmask().

QString nick ( ) const
inlineinherited

Definition at line 66 of file ircuser.h.

References IrcUser::_nick.

Referenced by IrcUser::hostmask(), and IrcUser::setNick().

QString realName ( ) const
inlineinherited

Definition at line 67 of file ircuser.h.

References IrcUser::_realName.

Referenced by IrcUser::setRealName().

QString awayMessage ( ) const
inlineinherited

Definition at line 70 of file ircuser.h.

References IrcUser::_awayMessage.

Referenced by IrcUser::setAwayMessage().

QDateTime idleTime ( )
inherited

Referenced by IrcUser::setIdleTime().

QDateTime loginTime ( ) const
inlineinherited

Definition at line 72 of file ircuser.h.

References IrcUser::_loginTime.

Referenced by IrcUser::setLoginTime().

QString server ( ) const
inlineinherited

Definition at line 73 of file ircuser.h.

References IrcUser::_server.

Referenced by IrcUser::setServer().

QString ircOperator ( ) const
inlineinherited

Definition at line 74 of file ircuser.h.

References IrcUser::_ircOperator.

Referenced by IrcUser::setIrcOperator().

int lastAwayMessage ( ) const
inlineinherited

Definition at line 75 of file ircuser.h.

References IrcUser::_lastAwayMessage.

Referenced by IrcUser::setLastAwayMessage().

QString whoisServiceReply ( ) const
inlineinherited

Definition at line 76 of file ircuser.h.

References IrcUser::_whoisServiceReply.

Referenced by IrcUser::setWhoisServiceReply().

QString suserHost ( ) const
inlineinherited

Definition at line 77 of file ircuser.h.

References IrcUser::_suserHost.

Referenced by IrcUser::setSuserHost().

bool encrypted ( ) const
inlineinherited

Definition at line 78 of file ircuser.h.

References IrcUser::_encrypted.

Referenced by IrcUser::setEncrypted().

QStringList channels ( ) const
inherited

Referenced by IrcUser::quit().

QString userModes ( ) const
inlineinherited

Definition at line 81 of file ircuser.h.

References IrcUser::_userModes.

QTextCodec* codecForEncoding ( ) const
inlineinherited

Definition at line 86 of file ircuser.h.

References IrcUser::_codecForEncoding.

Referenced by IrcUser::encodeString().

QTextCodec* codecForDecoding ( ) const
inlineinherited

Definition at line 87 of file ircuser.h.

References IrcUser::_codecForDecoding.

Referenced by IrcUser::decodeString().

void setCodecForEncoding ( const QString &  codecName)
inherited

Definition at line 88 of file ircuser.cpp.

void setCodecForEncoding ( QTextCodec *  codec)
inherited

Definition at line 94 of file ircuser.cpp.

References IrcUser::_codecForEncoding.

void setCodecForDecoding ( const QString &  codecName)
inherited

Definition at line 100 of file ircuser.cpp.

void setCodecForDecoding ( QTextCodec *  codec)
inherited

Definition at line 106 of file ircuser.cpp.

References IrcUser::_codecForDecoding.

QString decodeString ( const QByteArray &  text) const
inherited
QByteArray encodeString ( const QString &  string) const
inherited
QDateTime lastChannelActivity ( BufferId  id) const
inlineinherited

Definition at line 97 of file ircuser.h.

References IrcUser::_lastActivity.

Referenced by TabCompleter::CompletionKey::operator<().

void setLastChannelActivity ( BufferId  id,
const QDateTime &  time 
)
inherited
QDateTime lastSpokenTo ( BufferId  id) const
inlineinherited

Definition at line 99 of file ircuser.h.

References IrcUser::_lastSpokenTo.

Referenced by TabCompleter::CompletionKey::operator<().

void setLastSpokenTo ( BufferId  id,
const QDateTime &  time 
)
inherited
void setUser ( const QString &  user)
slotinherited
void setHost ( const QString &  host)
slotinherited
void setNick ( const QString &  nick)
slotinherited
void setRealName ( const QString &  realName)
slotinherited
void setAwayMessage ( const QString &  awayMessage)
slotinherited
void setIdleTime ( const QDateTime &  idleTime)
slotinherited
void setLoginTime ( const QDateTime &  loginTime)
slotinherited
void setServer ( const QString &  server)
slotinherited
void setIrcOperator ( const QString &  ircOperator)
slotinherited
void setLastAwayMessage ( const int &  lastAwayMessage)
slotinherited
void setWhoisServiceReply ( const QString &  whoisServiceReply)
slotinherited
void setSuserHost ( const QString &  suserHost)
slotinherited
void setEncrypted ( bool  encrypted)
slotinherited

Definition at line 252 of file ircuser.cpp.

References IrcUser::_encrypted, ARG, IrcUser::encrypted(), IrcUser::encryptedSet(), and SYNC.

void updateHostmask ( const QString &  mask)
slotinherited
void setUserModes ( const QString &  modes)
slotinherited

Definition at line 346 of file ircuser.cpp.

References IrcUser::_userModes, ARG, SYNC, and IrcUser::userModesSet().

void joinChannel ( IrcChannel channel)
slotinherited
void joinChannel ( const QString &  channelname)
slotinherited

Definition at line 288 of file ircuser.cpp.

References IrcUser::joinChannel(), and IrcUser::network().

void partChannel ( const QString &  channelname)
slotinherited

Definition at line 308 of file ircuser.cpp.

References Network::ircChannel(), IrcUser::network(), and IrcUser::partChannel().

void addUserModes ( const QString &  modes)
slotinherited
void removeUserModes ( const QString &  modes)
slotinherited
void nickSet ( QString  newnick)
signalinherited

Referenced by IrcUser::setNick().

void awaySet ( bool  away)
signalinherited

Referenced by IrcUser::setAway().

void encryptedSet ( bool  encrypted)
signalinherited

Referenced by IrcUser::setEncrypted().

void userModesSet ( QString  modes)
signalinherited

Referenced by IrcUser::setUserModes().

void userModesAdded ( QString  modes)
signalinherited

Referenced by IrcUser::addUserModes().

void userModesRemoved ( QString  modes)
signalinherited
void channelParted ( QString  channel)
signalinherited
void quited ( )
signalinherited

Referenced by IrcUser::quit().

void lastChannelActivityUpdated ( BufferId  id,
const QDateTime &  newTime 
)
signalinherited
void lastSpokenToUpdated ( BufferId  id,
const QDateTime &  newTime 
)
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

QString user
readwriteinherited
QString host
readwriteinherited
QString realName
readwriteinherited
bool away
readwriteinherited

Definition at line 46 of file ircuser.h.

Referenced by IrcUser::setAway().

QString awayMessage
readwriteinherited

Definition at line 47 of file ircuser.h.

Referenced by CoreNetwork::disconnectFromIrc(), and QueryBufferItem::toolTip().

QDateTime idleTime
readwriteinherited

Definition at line 48 of file ircuser.h.

Referenced by QueryBufferItem::toolTip().

QDateTime loginTime
readwriteinherited

Definition at line 49 of file ircuser.h.

Referenced by QueryBufferItem::toolTip().

QString server
readwriteinherited

Definition at line 50 of file ircuser.h.

Referenced by QueryBufferItem::toolTip().

QString ircOperator
readwriteinherited

Definition at line 51 of file ircuser.h.

Referenced by QueryBufferItem::toolTip().

int lastAwayMessage
readwriteinherited

Definition at line 52 of file ircuser.h.

Referenced by EventStringifier::processIrcEvent301().

QString whoisServiceReply
readwriteinherited

Definition at line 53 of file ircuser.h.

Referenced by QueryBufferItem::toolTip().

QString suserHost
readwriteinherited

Definition at line 54 of file ircuser.h.

Referenced by QueryBufferItem::toolTip().

bool encrypted
readwriteinherited

Definition at line 55 of file ircuser.h.

Referenced by InputWidget::dataChanged().


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