Communi  3.0.0
A cross-platform IRC framework written with Qt
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Macros Groups Pages
Public Slots | Public Member Functions | Properties | List of all members
IrcChannel Class Reference

Keeps track of channel status. More...

Inherits IrcBuffer.

Public Slots

void part (const QString &reason=QString())
 
- Public Slots inherited from IrcBuffer
void receiveMessage (IrcMessage *message)
 

Public Member Functions

Q_INVOKABLE IrcChannel (QObject *parent=0)
 
virtual ~IrcChannel ()
 
- Public Member Functions inherited from IrcBuffer
Q_INVOKABLE IrcBuffer (QObject *parent=0)
 
virtual ~IrcBuffer ()
 
Q_INVOKABLE bool sendCommand (IrcCommand *command)
 
Q_INVOKABLE IrcChanneltoChannel ()
 

Properties

QString mode
 
QString topic
 
- Properties inherited from IrcBuffer
bool active
 
bool channel
 
IrcConnection connection
 
IrcBufferModel model
 
QString name
 
IrcNetwork network
 
bool persistent
 
QString prefix
 
bool sticky
 
QString title
 

Additional Inherited Members

- Signals inherited from IrcBuffer
void messageReceived (IrcMessage *message)
 

Detailed Description

See Also
IrcBufferModel

Constructor & Destructor Documentation

IrcChannel::IrcChannel ( QObject parent = 0)
explicit

Constructs a new channel object with parent.

IrcChannel::~IrcChannel ( )
virtual

Destructs the channel object.

Member Function Documentation

void IrcChannel::part ( const QString reason = QString())
slot

Parts the channel with an optional reason.

This method is provided for convenience. It is equal to:

IrcCommand* command = IrcCommand::createPart(channel->title(), reason);
channel->sendCommand(command);
See Also
IrcBuffer::sendCommand(), IrcCommand::createPart()

Property Documentation

QString IrcChannel::mode
read

This property holds the channel mode.

Access function:
Notifier signal:
  • void modeChanged(const QString& mode)
QString IrcChannel::topic
read

This property holds the channel topic.

Access function:
Notifier signal:
  • void topicChanged(const QString& topic)