30 #ifndef PRINTERINTERFACE_H 31 #define PRINTERINTERFACE_H 42 class PrinterHelperInterface;
49 Q_PROPERTY(QString printerName READ printerName WRITE setPrinterName NOTIFY printerNameChanged)
51 Q_PROPERTY(
int _current_property READ _currentProperty WRITE _setCurrentProperty DESIGNABLE
false STORED
false)
52 Q_PROPERTY(QString _current_property_description READ _current_property_description DESIGNABLE
false STORED
false)
55 explicit PrinterInterface(QObject *parent = 0);
56 virtual ~PrinterInterface();
58 virtual PrinterHelperInterface * helper() = 0;
59 virtual PrinterInterface * createInstance(QObject * parent = 0)
const = 0;
60 virtual PrinterInterface * clone()
const = 0;
64 QString printerName()
const;
65 void setPrinterName(
const QString & printerName);
67 virtual QString lastError() = 0;
71 virtual QString _current_property_description()
const;
74 void printerNameChanged(
const QString &);
79 QString m_printerName;
80 int m_currentProperty;
92 virtual void load() = 0;
93 virtual void save() = 0;
103 #endif // PRINTERINTERFACE_H Definition: abstractpainterdelegate.h:42
Definition: printerinterface.h:44
TODO v2: rename to ReportObject.
Definition: reportinterface.h:71
PrinterHelperInterface(PrinterInterface *, VisibleOptions=AllOptions)
Definition: printerinterface.h:91
virtual void _setCurrentProperty(int num)
Definition: printerinterface.h:69
Definition: reportplugininterface.h:53
virtual int _currentProperty()
Definition: printerinterface.h:70
VisibleOptions
Definition: printerinterface.h:90
#define CUTEREPORT_EXPORTS
Definition: cutereport_globals.h:47
Definition: printerinterface.h:86
Definition: reportcore.h:83