You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef QUEUE_MGR_H
|
|
|
|
#define QUEUE_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 // QUEUE_MGR_H
|