/**************************************************************************** ** ** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ******************************************************************************/ #ifndef QPRINTERINFO_H #define QPRINTERINFO_H #include #include #include #include #include QT_BEGIN_NAMESPACE #ifndef QT_NO_PRINTER class QPrinterInfoPrivate; class QPrinterInfoPrivateDeleter; class QDebug; class Q_PRINTSUPPORT_EXPORT QPrinterInfo { public: QPrinterInfo(); QPrinterInfo(const QPrinterInfo &other); explicit QPrinterInfo(const QPrinter &printer); ~QPrinterInfo(); QPrinterInfo &operator=(const QPrinterInfo &other); QString printerName() const; QString description() const; QString location() const; QString makeAndModel() const; bool isNull() const; bool isDefault() const; bool isRemote() const; QPrinter::PrinterState state() const; QList supportedPageSizes() const; QPageSize defaultPageSize() const; bool supportsCustomPageSizes() const; QPageSize minimumPhysicalPageSize() const; QPageSize maximumPhysicalPageSize() const; QList supportedResolutions() const; QPrinter::DuplexMode defaultDuplexMode() const; QList supportedDuplexModes() const; QPrinter::ColorMode defaultColorMode() const; QList supportedColorModes() const; static QStringList availablePrinterNames(); static QList availablePrinters(); static QString defaultPrinterName(); static QPrinterInfo defaultPrinter(); static QPrinterInfo printerInfo(const QString &printerName); private: explicit QPrinterInfo(const QString &name); private: friend class QPlatformPrinterSupport; # ifndef QT_NO_DEBUG_STREAM friend Q_PRINTSUPPORT_EXPORT QDebug operator<<(QDebug debug, const QPrinterInfo &); # endif Q_DECLARE_PRIVATE(QPrinterInfo) QScopedPointer d_ptr; }; #endif // QT_NO_PRINTER QT_END_NAMESPACE #endif // QPRINTERINFO_H