20 #ifndef KMLPDMANAGER_H
21 #define KMLPDMANAGER_H
23 #include "kmmanager.h"
30 class KMLpdManager :
public KMManager
33 KMLpdManager(TQObject *parent = 0,
const char *name = 0);
36 bool completePrinterShort(KMPrinter*);
37 bool completePrinter(KMPrinter*);
38 bool createPrinter(KMPrinter*);
39 bool removePrinter(KMPrinter*);
40 bool enablePrinter(KMPrinter*);
41 bool disablePrinter(KMPrinter*);
44 TQString driverDbCreationProgram();
45 TQString driverDirectory();
48 DrMain* loadDbDriver(KMDBEntry*);
49 DrMain* loadPrinterDriver(KMPrinter *p,
bool config =
false);
50 bool savePrinterDriver(KMPrinter*, DrMain*);
51 bool validateDbDriver(KMDBEntry*);
56 void loadPrintcapFile(
const TQString& filename);
57 bool writePrintcapFile(
const TQString& filename);
58 void loadPrinttoolDb(
const TQString& filename);
59 TQMap<TQString,TQString> loadPrinttoolCfgFile(
const TQString& filename);
60 bool savePrinttoolCfgFile(
const TQString& templatefile,
const TQString& dirname,
const TQMap<TQString,TQString>& options);
61 bool checkGsDriver(
const TQString& gsdriver);
62 bool createSpooldir(PrintcapEntry*);
63 bool createPrinttoolEntry(KMPrinter*, PrintcapEntry*);
64 PrintcapEntry* findPrintcapEntry(
const TQString& name);
65 PrinttoolEntry* findPrinttoolEntry(
const TQString& name);
66 TQString programName(
int);
68 bool enablePrinter(KMPrinter*,
bool);
71 TQDict<PrintcapEntry> m_entries;
72 TQDict<PrinttoolEntry> m_ptentries;
73 GsChecker *m_gschecker;