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

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

Inheritance diagram for CoreIrcChannel:
Collaboration diagram for CoreIrcChannel:

Public Slots

void setTopic (const QString &topic)
void setPassword (const QString &password)
void setEncrypted (bool encrypted)
void joinIrcUsers (const QList< IrcUser * > &users, const QStringList &modes)
void joinIrcUsers (const QStringList &nicks, const QStringList &modes)
void joinIrcUser (IrcUser *ircuser)
void part (IrcUser *ircuser)
void part (const QString &nick)
void setUserModes (IrcUser *ircuser, const QString &modes)
void setUserModes (const QString &nick, const QString &modes)
void addUserMode (IrcUser *ircuser, const QString &mode)
void addUserMode (const QString &nick, const QString &mode)
void removeUserMode (IrcUser *ircuser, const QString &mode)
void removeUserMode (const QString &nick, const QString &mode)
void addChannelMode (const QChar &mode, const QString &value)
void removeChannelMode (const QChar &mode, const QString &value)
QVariantMap initUserModes () const
QVariantMap initChanModes () const
void initSetUserModes (const QVariantMap &usermodes)
void initSetChanModes (const QVariantMap &chanModes)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)

Signals

void topicSet (const QString &topic)
void encryptedSet (bool encrypted)
void ircUsersJoined (QList< IrcUser * > ircusers)
void ircUserParted (IrcUser *ircuser)
void ircUserNickSet (IrcUser *ircuser, QString nick)
void ircUserModeAdded (IrcUser *ircuser, QString mode)
void ircUserModeRemoved (IrcUser *ircuser, QString mode)
void ircUserModesSet (IrcUser *ircuser, QString modes)
void parted ()
void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

 CoreIrcChannel (const QString &channelname, Network *network)
virtual ~CoreIrcChannel ()
virtual const QMetaObject * syncMetaObject () const
bool receivedWelcomeMsg () const
void setReceivedWelcomeMsg ()
QString name () const
QString topic () const
QString password () const
bool encrypted () const
bool isKnownUser (IrcUser *ircuser) const
bool isValidChannelUserMode (const QString &mode) const
Networknetwork () const
QList< IrcUser * > ircUsers () const
QString userModes (IrcUser *ircuser) const
QString userModes (const QString &nick) const
bool hasMode (const QChar &mode) const
QString modeValue (const QChar &mode) const
QStringList modeValueList (const QChar &mode) const
QString channelModeString () 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
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 name
QString topic
QString password
bool encrypted

Private Attributes

bool _receivedWelcomeMsg

Detailed Description

Definition at line 30 of file coreircchannel.h.

Constructor & Destructor Documentation

CoreIrcChannel ( const QString &  channelname,
Network network 
)
~CoreIrcChannel ( )
virtual

Definition at line 35 of file coreircchannel.cpp.

Member Function Documentation

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtual

Reimplemented from SyncableObject.

Definition at line 39 of file coreircchannel.h.

bool receivedWelcomeMsg ( ) const
inline

Definition at line 46 of file coreircchannel.h.

References _receivedWelcomeMsg.

Referenced by IrcParser::processNetworkIncoming().

void setReceivedWelcomeMsg ( )
inline

Definition at line 47 of file coreircchannel.h.

References _receivedWelcomeMsg.

Referenced by IrcParser::processNetworkIncoming().

QString name ( ) const
inlineinherited

Definition at line 52 of file ircchannel.h.

References IrcChannel::_name.

Referenced by IrcChannel::isKnownUser(), and IrcChannel::isValidChannelUserMode().

QString topic ( ) const
inlineinherited

Definition at line 53 of file ircchannel.h.

References IrcChannel::_topic.

Referenced by IrcChannel::setTopic().

QString password ( ) const
inlineinherited

Definition at line 54 of file ircchannel.h.

References IrcChannel::_password.

Referenced by IrcChannel::setPassword().

bool encrypted ( ) const
inlineinherited

Definition at line 55 of file ircchannel.h.

References IrcChannel::_encrypted.

Referenced by IrcChannel::setEncrypted().

bool isKnownUser ( IrcUser ircuser) const
inherited
bool isValidChannelUserMode ( const QString &  mode) const
inherited

Definition at line 72 of file ircchannel.cpp.

References IrcChannel::name().

Referenced by IrcChannel::addUserMode(), and IrcChannel::removeUserMode().

QList<IrcUser *> ircUsers ( ) const
inlineinherited
QString userModes ( IrcUser ircuser) const
inherited
QString userModes ( const QString &  nick) const
inherited

Definition at line 92 of file ircchannel.cpp.

References IrcChannel::network(), and IrcChannel::userModes().

QString modeValue ( const QChar &  mode) const
inherited
QStringList modeValueList ( const QChar &  mode) const
inherited
QString channelModeString ( ) const
inherited
QTextCodec* codecForEncoding ( ) const
inlineinherited

Definition at line 68 of file ircchannel.h.

References IrcChannel::_codecForEncoding.

Referenced by IrcChannel::encodeString().

QTextCodec* codecForDecoding ( ) const
inlineinherited

Definition at line 69 of file ircchannel.h.

References IrcChannel::_codecForDecoding.

Referenced by IrcChannel::decodeString().

void setCodecForEncoding ( const QString &  codecName)
inherited

Definition at line 98 of file ircchannel.cpp.

void setCodecForEncoding ( QTextCodec *  codec)
inherited

Definition at line 104 of file ircchannel.cpp.

References IrcChannel::_codecForEncoding.

void setCodecForDecoding ( const QString &  codecName)
inherited

Definition at line 110 of file ircchannel.cpp.

void setCodecForDecoding ( QTextCodec *  codec)
inherited

Definition at line 116 of file ircchannel.cpp.

References IrcChannel::_codecForDecoding.

QString decodeString ( const QByteArray &  text) const
inherited
QByteArray encodeString ( const QString &  string) const
inherited
void setPassword ( const QString &  password)
slotinherited

Definition at line 149 of file ircchannel.cpp.

References IrcChannel::_password, ARG, IrcChannel::password(), and SYNC.

void setEncrypted ( bool  encrypted)
slotinherited
void joinIrcUsers ( const QStringList &  nicks,
const QStringList &  modes 
)
slotinherited
void joinIrcUser ( IrcUser ircuser)
slotinherited

Definition at line 215 of file ircchannel.cpp.

References IrcChannel::joinIrcUsers().

Referenced by IrcUser::joinChannel().

void part ( const QString &  nick)
slotinherited

Definition at line 251 of file ircchannel.cpp.

References IrcChannel::network(), and IrcChannel::part().

void setUserModes ( IrcUser ircuser,
const QString &  modes 
)
slotinherited
void setUserModes ( const QString &  nick,
const QString &  modes 
)
slotinherited

Definition at line 269 of file ircchannel.cpp.

References IrcChannel::network(), and IrcChannel::setUserModes().

void addUserMode ( const QString &  nick,
const QString &  mode 
)
slotinherited

Definition at line 290 of file ircchannel.cpp.

References IrcChannel::addUserMode(), and IrcChannel::network().

void removeUserMode ( const QString &  nick,
const QString &  mode 
)
slotinherited

Definition at line 311 of file ircchannel.cpp.

References IrcChannel::network(), and IrcChannel::removeUserMode().

QVariantMap initUserModes ( ) const
slotinherited

Definition at line 318 of file ircchannel.cpp.

References IrcChannel::_userModes.

QVariantMap initChanModes ( ) const
slotinherited
void initSetUserModes ( const QVariantMap &  usermodes)
slotinherited
void initSetChanModes ( const QVariantMap &  chanModes)
slotinherited
void topicSet ( const QString &  topic)
signalinherited

Referenced by IrcChannel::setTopic().

void encryptedSet ( bool  encrypted)
signalinherited
void ircUsersJoined ( QList< IrcUser * >  ircusers)
signalinherited
void ircUserParted ( IrcUser ircuser)
signalinherited

Referenced by IrcChannel::part().

void ircUserNickSet ( IrcUser ircuser,
QString  nick 
)
signalinherited
void ircUserModeAdded ( IrcUser ircuser,
QString  mode 
)
signalinherited

Referenced by IrcChannel::addUserMode().

void ircUserModeRemoved ( IrcUser ircuser,
QString  mode 
)
signalinherited
void ircUserModesSet ( IrcUser ircuser,
QString  modes 
)
signalinherited
void parted ( )
signalinherited

Referenced by IrcChannel::part().

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

Member Data Documentation

bool _receivedWelcomeMsg
private

Definition at line 50 of file coreircchannel.h.

Referenced by receivedWelcomeMsg(), and setReceivedWelcomeMsg().

Property Documentation

QString topic
readwriteinherited

Definition at line 41 of file ircchannel.h.

Referenced by ChannelBufferItem::topic().

QString password
readwriteinherited

Definition at line 42 of file ircchannel.h.

bool encrypted
readwriteinherited

Definition at line 43 of file ircchannel.h.

Referenced by InputWidget::dataChanged().


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