#ifndef QUEUE_MGR_H #define QUEUE_MGR_H #include "queue.h" #include /** * 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 queues() const; protected: static TQMap _queues; }; #endif // QUEUE_MGR_H