kprinterimpl.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 #ifndef KPRINTERIMPL_H
00022 #define KPRINTERIMPL_H
00023 
00024 #include <qobject.h>
00025 #include <qstringlist.h>
00026 #include <qmap.h>
00027 #include <qptrlist.h>
00028 
00029 class KPrinter;
00030 class KMPrinter;
00031 
00032 class KPrinterImpl : public QObject
00033 {
00034     Q_OBJECT
00035 public:
00036     KPrinterImpl(QObject *parent = 0, const char *name = 0);
00037     virtual ~KPrinterImpl();
00038 
00039     virtual bool setupCommand(QString& cmd, KPrinter*);
00040     virtual void preparePrinting(KPrinter*);
00041     virtual void broadcastOption(const QString& key, const QString& value);
00042 
00043     bool printFiles(KPrinter*, const QStringList&, bool removeflag = false);
00044     
00045     
00046     
00047     
00048     int filterFiles(KPrinter*, QStringList&, bool removeflag = false);
00049     int autoConvertFiles(KPrinter*, QStringList&, bool removeflag = false);
00050     void saveOptions(const QMap<QString,QString>& opts);
00051     const QMap<QString,QString>& loadOptions() const    { return m_options; }
00052     QString tempFile();
00053     QString quote(const QString&);
00054     void statusMessage(const QString&, KPrinter* = 0);
00055 
00056 protected:
00057     bool startPrinting(const QString& cmd, KPrinter *printer, const QStringList& files, bool removeflag = false);
00058     int dcopPrint(const QString& cmd, const QStringList& files, bool removeflag = false);
00059     bool setupSpecialCommand(QString&, KPrinter*, const QStringList&);
00060     int doFilterFiles(KPrinter* pr, QStringList& files, const QStringList& flist, const QMap<QString,QString>& opts, bool removeflag = false);
00061     void loadAppOptions();
00062     void saveAppOptions();
00063 
00064 protected:
00065     QMap<QString,QString>   m_options;  
00066 };
00067 
00068 #endif
 
This file is part of the documentation for kdeprint Library Version 3.2.0.