📄 queue_mgr.h
字号:
#ifndef QUEUE_MGR_H#define QUEUE_MGR_H#include "queue.h"#include <qmap.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 QString defaultName;public: QueueManager(); ~QueueManager(); static Queue* queue(const QString& queueName=defaultName); QValueList<QString> queues() const;protected: static QMap<QString, Queue*> _queues;};#endif // QUEUE_MGR_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -