queue.h

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

H
33
字号
#ifndef QUEUE_H#define QUEUE_H#include <qobject.h>#include <kio/jobclasses.h>#include <qptrlist.h>/** * Queue can hold anything which inherits KIO::Job, and schedule it, start it, stop etc... * the main reason to hold the Job itself (at least for phase 1) is to keep the code  * in krusader relatively unchaged, and allow to create the job as usual and choose if  * to start it, or queue it. * */class Queue: public QObject{	Q_OBJECTpublic:	Queue(const QString& name);	virtual ~Queue();		inline const QString& name() const { return _name; }	void enqueue(KIO::Job *job);protected:	void dumpQueue();	QString _name;	QPtrList<KIO::Job> _jobs;};#endif // QUEUE_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?