queue_mgr.h

来自「LINUX 下, 以 QT/KDE 写的档案管理员」· C头文件 代码 · 共 27 行

H
27
字号
#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 + =
减小字号Ctrl + -
显示快捷键?