blob: 615579de089794bb72456a860bf9e1afafba6c0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef TQUEUE_MGR_H
#define TQUEUE_MGR_H
#include "queue.h"
#include <tqmap.h>
/**
* QueueManager holds multiple queues and has a static
* method that fetches a queue by name. calling it with
* no arguments will fetch the default queue
*/
class QueueManager
{
static const TQString defaultName;
public:
QueueManager();
~QueueManager();
static Queue* queue(const TQString& queueName=defaultName);
TQValueList<TQString> queues() const;
protected:
static TQMap<TQString, Queue*> _queues;
};
#endif // TQUEUE_MGR_H
|