summaryrefslogtreecommitdiffstats
path: root/kdeprint/kmjobmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdeprint/kmjobmanager.h')
-rw-r--r--kdeprint/kmjobmanager.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/kdeprint/kmjobmanager.h b/kdeprint/kmjobmanager.h
index 2148a4810..643be34d1 100644
--- a/kdeprint/kmjobmanager.h
+++ b/kdeprint/kmjobmanager.h
@@ -24,10 +24,10 @@
#warning internal header, do not use except if you are a KDEPrint developer
#endif
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qdict.h>
-#include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
+#include <tqvaluelist.h>
#include <kdelibs_export.h>
@@ -56,48 +56,48 @@ public:
bool m_isspecial;
};
- KMJobManager(QObject *parent = 0, const char *name = 0);
+ KMJobManager(TQObject *parent = 0, const char *name = 0);
virtual ~KMJobManager();
static KMJobManager* self();
- void addPrinter(const QString& pr, JobType type = ActiveJobs, bool isSpecial = false);
- void removePrinter(const QString& pr, JobType type = ActiveJobs);
+ void addPrinter(const TQString& pr, JobType type = ActiveJobs, bool isSpecial = false);
+ void removePrinter(const TQString& pr, JobType type = ActiveJobs);
void clearFilter();
- QDict<JobFilter>* filter();
+ TQDict<JobFilter>* filter();
int limit();
void setLimit(int val);
//KMJob* findJob(int ID);
- KMJob* findJob(const QString& uri);
- //bool sendCommand(int ID, int action, const QString& arg = QString::null);
- bool sendCommand(const QString& uri, int action, const QString& arg = QString::null);
- bool sendCommand(const QPtrList<KMJob>& jobs, int action, const QString& arg = QString::null);
- const QPtrList<KMJob>& jobList(bool reload = true);
+ KMJob* findJob(const TQString& uri);
+ //bool sendCommand(int ID, int action, const TQString& arg = TQString::null);
+ bool sendCommand(const TQString& uri, int action, const TQString& arg = TQString::null);
+ bool sendCommand(const TQPtrList<KMJob>& jobs, int action, const TQString& arg = TQString::null);
+ const TQPtrList<KMJob>& jobList(bool reload = true);
void addJob(KMJob*);
KMThreadJob* threadJob();
virtual int actions();
- virtual QValueList<KAction*> createPluginActions(KActionCollection*);
- virtual void validatePluginActions(KActionCollection*, const QPtrList<KMJob>&);
- virtual bool doPluginAction(int, const QPtrList<KMJob>&);
+ virtual TQValueList<KAction*> createPluginActions(KActionCollection*);
+ virtual void validatePluginActions(KActionCollection*, const TQPtrList<KMJob>&);
+ virtual bool doPluginAction(int, const TQPtrList<KMJob>&);
protected:
void discardAllJobs();
void removeDiscardedJobs();
protected:
- virtual bool listJobs(const QString& prname, JobType type, int limit = 0);
- virtual bool sendCommandSystemJob(const QPtrList<KMJob>& jobs, int action, const QString& arg = QString::null);
- bool sendCommandThreadJob(const QPtrList<KMJob>& jobs, int action, const QString& arg = QString::null);
+ virtual bool listJobs(const TQString& prname, JobType type, int limit = 0);
+ virtual bool sendCommandSystemJob(const TQPtrList<KMJob>& jobs, int action, const TQString& arg = TQString::null);
+ bool sendCommandThreadJob(const TQPtrList<KMJob>& jobs, int action, const TQString& arg = TQString::null);
protected:
- QPtrList<KMJob> m_jobs;
- QDict<JobFilter> m_filter;
+ TQPtrList<KMJob> m_jobs;
+ TQDict<JobFilter> m_filter;
KMThreadJob *m_threadjob;
};
-inline QDict<KMJobManager::JobFilter>* KMJobManager::filter()
+inline TQDict<KMJobManager::JobFilter>* KMJobManager::filter()
{ return &m_filter; }
inline void KMJobManager::clearFilter()