Warning, file /include/QtPrintSupport/qprinterinfo.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004 #ifndef QPRINTERINFO_H
0005 #define QPRINTERINFO_H
0006
0007 #include <QtPrintSupport/qtprintsupportglobal.h>
0008 #include <QtPrintSupport/qprinter.h>
0009
0010 #include <QtCore/QList>
0011 #include <QtGui/qpagesize.h>
0012
0013 QT_BEGIN_NAMESPACE
0014
0015
0016 #ifndef QT_NO_PRINTER
0017 class QPrinterInfoPrivate;
0018 class QPrinterInfoPrivateDeleter;
0019 class QDebug;
0020 class Q_PRINTSUPPORT_EXPORT QPrinterInfo
0021 {
0022 public:
0023 QPrinterInfo();
0024 QPrinterInfo(const QPrinterInfo &other);
0025 explicit QPrinterInfo(const QPrinter &printer);
0026 ~QPrinterInfo();
0027
0028 QPrinterInfo &operator=(const QPrinterInfo &other);
0029
0030 QString printerName() const;
0031 QString description() const;
0032 QString location() const;
0033 QString makeAndModel() const;
0034
0035 bool isNull() const;
0036 bool isDefault() const;
0037 bool isRemote() const;
0038
0039 QPrinter::PrinterState state() const;
0040
0041 QList<QPageSize> supportedPageSizes() const;
0042 QPageSize defaultPageSize() const;
0043
0044 bool supportsCustomPageSizes() const;
0045
0046 QPageSize minimumPhysicalPageSize() const;
0047 QPageSize maximumPhysicalPageSize() const;
0048
0049 QList<int> supportedResolutions() const;
0050
0051 QPrinter::DuplexMode defaultDuplexMode() const;
0052 QList<QPrinter::DuplexMode> supportedDuplexModes() const;
0053
0054 QPrinter::ColorMode defaultColorMode() const;
0055 QList<QPrinter::ColorMode> supportedColorModes() const;
0056
0057 static QStringList availablePrinterNames();
0058 static QList<QPrinterInfo> availablePrinters();
0059
0060 static QString defaultPrinterName();
0061 static QPrinterInfo defaultPrinter();
0062
0063 static QPrinterInfo printerInfo(const QString &printerName);
0064
0065 private:
0066 explicit QPrinterInfo(const QString &name);
0067
0068 private:
0069 friend class QPlatformPrinterSupport;
0070 # ifndef QT_NO_DEBUG_STREAM
0071 friend Q_PRINTSUPPORT_EXPORT QDebug operator<<(QDebug debug, const QPrinterInfo &);
0072 # endif
0073 Q_DECLARE_PRIVATE(QPrinterInfo)
0074 QScopedPointer<QPrinterInfoPrivate, QPrinterInfoPrivateDeleter> d_ptr;
0075 };
0076
0077 #endif
0078
0079 QT_END_NAMESPACE
0080
0081 #endif