Keeps track of buffer status.
More...
Inherits QObject.
Inherited by IrcChannel.
◆ IrcBuffer()
| IrcBuffer::IrcBuffer |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Constructs a new buffer object with parent.
◆ ~IrcBuffer()
| IrcBuffer::~IrcBuffer |
( |
| ) |
|
|
virtual |
Destructs the buffer object.
◆ close
| void IrcBuffer::close |
( |
const QString & |
reason = QString() | ) |
|
|
virtualslot |
- Since
- 3.1
Closes the buffer with an optional reason.
The default implementation removes the buffer from its model. Furthermore, IrcChannel parts the channel with reason and custom IrcBuffer subclasses might do some additional tasks.
- See also
- IrcChannel::close()
◆ messageReceived
| void IrcBuffer::messageReceived |
( |
IrcMessage * |
message | ) |
|
|
signal |
◆ receiveMessage
| void IrcBuffer::receiveMessage |
( |
IrcMessage * |
message | ) |
|
|
slot |
◆ sendCommand()
| bool IrcBuffer::sendCommand |
( |
IrcCommand * |
command | ) |
|
◆ toChannel()
Returns the buffer cast to a IrcChannel, if the class is actually a channel, 0 otherwise.
- See also
- isChannel()
◆ active
This property holds whether the buffer is active.
A buffer is considered active when a connection is established. Furthermore, channel buffers are only considered active when the user is on the channel.
- Access function:
-
- Notifier signal:
- void activeChanged(bool active)
- See also
- IrcConnection::connected
◆ channel
This property holds whether the buffer is a channel.
- Access function:
-
- See also
- toChannel()
◆ connection
This property holds the connection of the buffer.
- Access function:
-
◆ model
This property holds the model of the buffer.
- Access function:
-
◆ name
This property holds the name part of the buffer title.
- Access functions:
- QString name() const
- void setName(const QString& name) [slot]
- Notifier signal:
- void nameChanged(const QString& name)
◆ network
This property holds the network of the buffer.
- Access function:
-
◆ persistent
| bool IrcBuffer::persistent |
|
readwrite |
This property holds whether the buffer is persistent.
The default value is false.
A persistent buffer does not get removed and destructed when calling IrcBufferModel::clear(), or when when leaving the corresponding channel. In order to remove a persistent buffer, either explicitly call IrcBufferModel::remove() or delete the buffer.
- Access functions:
- bool isPersistent() const
- void setPersistent(bool persistent)
- Notifier signal:
- void persistentChanged(bool persistent)
◆ prefix
| QString IrcBuffer::prefix |
|
readwrite |
This property holds the prefix part of the buffer title.
- Access functions:
- QString prefix() const
- void setPrefix(const QString& prefix) [slot]
- Notifier signal:
- void prefixChanged(const QString& prefix)
◆ sticky
This property holds whether the buffer is sticky.
A sticky buffer stays in the beginning (Qt::AscendingOrder) or end (Qt::DescendingOrder) of the list of buffers in IrcBufferModel.
The default value is false.
- Access functions:
- bool isSticky() const
- void setSticky(bool sticky)
- Notifier signal:
- void stickyChanged(bool sticky)
◆ title
This property holds the whole buffer title.
The title consists of prefix and name.
- Access function:
-
- Notifier signal:
- void titleChanged(const QString& title)
◆ userData
| QVariantMap IrcBuffer::userData |
|
readwrite |
- Since
- 3.1
This property holds arbitrary user data.
- Access functions:
- QVariantMap userData() const
- void setUserData(const QVariantMap& data)
- Notifier signal:
- void userDataChanged(const QVariantMap& data)