Provides a flood protection queue for commands.
More...
Inherits QObject.
IrcCommandQueue::IrcCommandQueue |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Constructs a new command queue with parent.
- Note
- If parent is an instance of IrcConnection, it will be automatically assigned to connection.
IrcCommandQueue::~IrcCommandQueue |
( |
| ) |
|
|
virtual |
Destructs the command queue.
void IrcCommandQueue::clear |
( |
| ) |
|
|
slot |
This methods clears the command queue.
- Note
- Any queued commands are not sent.
- See also
- flush()
void IrcCommandQueue::flush |
( |
| ) |
|
|
slot |
This methods flushes the whole command queue without batching.
void IrcCommandQueue::sizeChanged |
( |
int |
size | ) |
|
|
signal |
This signal is emitted when the queue size has changed.
int IrcCommandQueue::batch |
|
readwrite |
This property holds the batch size.
This is the amount of commands sent at once. The default value is 3
.
- Access functions:
- int batch() const
- void setBatch(int batch)
This property holds the associated connection.
- Access functions:
- IrcConnection* connection() const
- void setConnection(IrcConnection* connection)
int IrcCommandQueue::interval |
|
readwrite |
This property holds the queue processing interval in seconds.
The default value is 2
seconds. A value equal to or less than 0
seconds disables command queueing.
- Access functions:
- int interval() const
- void setInterval(int seconds)
int IrcCommandQueue::size |
|
read |
This property holds the current size of the queue.
- Access function:
-
- Notifier signal:
- void sizeChanged(int size)