diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/kmjobmanager.h | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/kmjobmanager.h')
-rw-r--r-- | kdeprint/kmjobmanager.h | 44 |
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() |