23 #include "kmmanager.h"
26 #include <tqptrlist.h>
27 #include <tqdatetime.h>
35 class KMLprManager :
public KMManager
39 KMLprManager(TQObject *parent,
const char *name,
const TQStringList & );
41 bool completePrinter(KMPrinter*);
42 bool completePrinterShort(KMPrinter*);
43 bool enablePrinter(KMPrinter*,
bool);
44 bool startPrinter(KMPrinter*,
bool);
45 bool savePrinterDriver(KMPrinter*, DrMain*);
46 DrMain* loadPrinterDriver(KMPrinter*,
bool =
false);
47 DrMain* loadFileDriver(
const TQString&);
48 bool createPrinter(KMPrinter*);
49 bool removePrinter(KMPrinter*);
51 TQString driverDbCreationProgram();
52 TQString driverDirectory();
54 LpcHelper* lpcHelper() {
return m_lpchelper; }
57 void createPluginActions(TDEActionCollection*);
58 void validatePluginActions(TDEActionCollection*, KMPrinter*);
59 TQString stateInformation();
62 void slotEditPrintcap();
67 void insertHandler(LprHandler*);
68 PrintcapEntry* findEntry(KMPrinter*);
69 LprHandler* findHandler(KMPrinter*);
70 void checkPrinterState(KMPrinter*);
71 bool savePrintcapFile();
74 TQDict<LprHandler> m_handlers;
75 TQPtrList<LprHandler> m_handlerlist;
76 TQDict<PrintcapEntry> m_entries;
78 LpcHelper *m_lpchelper;
79 KMPrinter *m_currentprinter;
This class is the main interface to access the TDE print framework.