kmthreadjob.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef KMTHREADJOB_H
00021 #define KMTHREADJOB_H
00022 
00023 #include <qintdict.h>
00024 #include <qobject.h>
00025 
00026 class KMJob;
00027 class KMJobManager;
00028 
00029 class KMThreadJob : public QObject
00030 {
00031 public:
00032     KMThreadJob(QObject *parent = 0, const char *name = 0);
00033     ~KMThreadJob();
00034 
00035     KMJob* findJob(int ID);
00036     KMJob* findJob(const QString& uri);
00037     bool removeJob(int ID);
00038     void createJob(KMJob*);
00039     void updateManager(KMJobManager*);
00040 
00041     static void createJob(int ID, const QString& printer, const QString& name = QString::null, const QString& owner = QString::null, int size = 0);
00042 
00043 protected:
00044     QString jobFile();
00045     bool loadJobs();
00046     bool saveJobs();
00047     bool checkJob(int ID);
00048 
00049 private:
00050     QIntDict<KMJob> m_jobs;
00051 };
00052 
00053 #endif
 
This file is part of the documentation for kdeprint Library Version 3.2.0.