Keeps track of buffer status.
More...
Inherits QObject.
Inherited by IrcChannel.
IrcBuffer::IrcBuffer |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Constructs a new buffer object with parent.
IrcBuffer::~IrcBuffer |
( |
| ) |
|
|
virtual |
Destructs the buffer object.
void IrcBuffer::messageReceived |
( |
IrcMessage * |
message | ) |
|
|
signal |
void IrcBuffer::receiveMessage |
( |
IrcMessage * |
message | ) |
|
|
slot |
bool IrcBuffer::sendCommand |
( |
IrcCommand * |
command | ) |
|
Returns the buffer cast to a IrcChannel, if the class is actually a channel, 0
otherwise.
- See Also
- isChannel()
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
This property holds whether the buffer is a channel.
- Access function:
-
- See Also
- toChannel()
This property holds the connection of the buffer.
- Access function:
-
This property holds the model of the buffer.
- Access function:
-
This property holds the name part of the buffer title.
- Access functions:
-
- Notifier signal:
- void nameChanged(const QString& name)
This property holds the network of the buffer.
- Access function:
-
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)
This property holds the prefix part of the buffer title.
- Access functions:
-
- Notifier signal:
- void prefixChanged(const QString& prefix)
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)
This property holds the whole buffer title.
The title consists of prefix and name.
- Access function:
-
- Notifier signal:
- void titleChanged(const QString& title)