KDEPrint
kprintdialogpage.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
00021 #ifndef KPRINTDIALOGPAGE_H
00022 #define KPRINTDIALOGPAGE_H
00023
00024 #include <kdeprint_export.h>
00025
00026 #include <QtGui/QWidget>
00027 #include <QtCore/QMap>
00028
00029 class KMPrinter;
00030 class DrMain;
00031
00032 class KPrintDialogPagePrivate;
00091 class KDEPRINT_EXPORT KPrintDialogPage : public QWidget
00092 {
00093 Q_OBJECT
00094 public:
00098 KPrintDialogPage(QWidget *parent = 0);
00102 explicit KPrintDialogPage(KMPrinter *pr, DrMain *dr = 0, QWidget *parent = 0);
00106 virtual ~KPrintDialogPage();
00107
00116 virtual void getOptions(QMap<QString, QString>& opts, bool incldef = false);
00122 virtual void setOptions(const QMap<QString, QString>& opts);
00130 virtual bool isValid(QString& msg);
00136 int id() const;
00142 void setId(int ID);
00148 QString title() const;
00155 void setTitle(const QString& txt);
00165 bool onlyRealPrinters() const;
00173 void setOnlyRealPrinters(bool on = true);
00177 DrMain* driver();
00181 KMPrinter* printer();
00182
00183 protected:
00184 KMPrinter *m_printer;
00185 DrMain *m_driver;
00186 int m_ID;
00187 QString m_title;
00188 bool m_onlyreal;
00189 private:
00190 KPrintDialogPagePrivate * const d;
00191 };
00192
00193 #endif