23 #if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
24 #warning internal header, do not use except if you are a TDEPrint developer
27 #include <tdemainwindow.h>
28 #include "kmprinterpage.h"
29 #include "kpreloadobject.h"
49 class TDEPRINT_EXPORT KMJobViewer :
public TDEMainWindow,
public KMPrinterPage,
public KPReloadObject
53 KMJobViewer(TQWidget *parent = 0,
const char *name = 0);
56 void setPrinter(
const TQString& prname);
57 void setPrinter(KMPrinter *p);
58 void refresh(
bool reload =
false);
59 TQString printer()
const;
60 bool isSticky()
const;
63 void jobsShown(KMJobViewer*,
bool hasJobs);
64 void refreshClicked();
65 void printerChanged(KMJobViewer*,
const TQString& prname);
66 void viewerDestroyed(KMJobViewer*);
69 void pluginActionActivated(
int);
72 void slotSelectionChanged();
77 void slotRightClicked(TQListViewItem*,
const TQPoint&,
int);
78 void slotMove(
int prID);
79 void slotPrinterSelected(
int);
80 void slotShowCompleted(
bool);
83 void slotShowMoveMenu();
84 void slotShowPrinterMenu();
85 void slotUserOnly(
bool);
86 void slotUserChanged();
88 void slotDropped( TQDropEvent*, TQListViewItem* );
89 void slotKeepWindowChange(
bool);
90 void slotPrinterListUpdated();
96 JobItem* findItem(
const TQString& uri);
97 void jobSelection(TQPtrList<KMJob>& l);
98 void send(
int cmd,
const TQString& name,
const TQString& arg = TQString::null);
100 void loadPluginActions();
101 void removePluginActions();
104 void closeEvent(TQCloseEvent*);
105 void triggerRefresh();
107 void removeFromManager();
108 void buildPrinterMenu(TQPopupMenu *menu,
bool use_all =
false,
bool use_specials =
false);
109 void updateCaption();
110 void updateStatusBar();
114 TQPtrList<KMJob> m_jobs;
115 TQPtrList<JobItem> m_items;
117 TQPtrList<KMPrinter> m_printers;
121 TQLineEdit *m_userfield;
122 TQCheckBox *m_stickybox;
126 inline TQString KMJobViewer::printer()
const