KDEPrint
apshandler.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef APSHANDLER_H
00021 #define APSHANDLER_H
00022
00023 #include "lprhandler.h"
00024
00025 #include <QtCore/QMap>
00026
00027 #ifdef __GNUC__
00028 #warning rename class or remove from global namespace
00029 #endif
00030 class ApsHandler : public LprHandler
00031 {
00032 public:
00033 explicit ApsHandler(KMManager*);
00034
00035 bool validate(PrintcapEntry*);
00036 KMPrinter* createPrinter(PrintcapEntry*);
00037 bool completePrinter(KMPrinter*, PrintcapEntry*, bool = true);
00038 DrMain* loadDriver(KMPrinter*, PrintcapEntry*, bool = false);
00039 DrMain* loadDbDriver(const QString&);
00040 void reset();
00041 PrintcapEntry* createEntry(KMPrinter*);
00042 bool savePrinterDriver(KMPrinter*, PrintcapEntry*, DrMain*, bool* = 0);
00043 bool removePrinter(KMPrinter*, PrintcapEntry*);
00044 QString printOptions(KPrinter*);
00045
00046 protected:
00047 QString driverDirInternal();
00048
00049 private:
00050 QMap<QString, QString> loadResources(PrintcapEntry*);
00051 QMap<QString, QString> loadVarFile(const QString&);
00052 QString sysconfDir();
00053 QString shareDir();
00054 DrMain* loadApsDriver(bool = false);
00055
00056 private:
00057 int m_counter;
00058 };
00059
00060 #endif