00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KJOBVIEWER_H
00021 #define KJOBVIEWER_H
00022
00023 #include <kuniqueapplication.h>
00024 #include <kdeprint/kpreloadobject.h>
00025 #include <tqdict.h>
00026
00027 class KMJobViewer;
00028 class KMTimer;
00029 class JobTray;
00030
00031 class KJobViewerApp : public KUniqueApplication, public KPReloadObject
00032 {
00033 Q_OBJECT
00034 friend class JobTray;
00035 public:
00036 KJobViewerApp();
00037 virtual ~KJobViewerApp();
00038
00039 virtual int newInstance();
00040
00041 protected:
00042 void initialize();
00043 void reload();
00044
00045 protected slots:
00046 void slotJobsShown(KMJobViewer*, bool);
00047 void slotTimer();
00048 void slotPrinterChanged(KMJobViewer*, const TQString&);
00049 void slotViewerDestroyed(KMJobViewer*);
00050
00051 private:
00052 TQDict<KMJobViewer> m_views;
00053 JobTray *m_tray;
00054 KMTimer *m_timer;
00055 };
00056
00057 #endif