1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2014 John Layt <jlayt@kde.org>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QCUPSPRINTERSUPPORT_H
6#define QCUPSPRINTERSUPPORT_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <qpa/qplatformprintersupport.h>
20
21#include <QtCore/qstringlist.h>
22
23QT_BEGIN_NAMESPACE
24
25class QCupsPrinterSupport : public QPlatformPrinterSupport
26{
27public:
28 QCupsPrinterSupport();
29 ~QCupsPrinterSupport();
30
31 QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId = QString()) override;
32 QPaintEngine *createPaintEngine(QPrintEngine *printEngine, QPrinter::PrinterMode) override;
33
34 QPrintDevice createPrintDevice(const QString &id) override;
35 QStringList availablePrintDeviceIds() const override;
36 QString defaultPrintDeviceId() const override;
37
38 static QString staticDefaultPrintDeviceId();
39
40private:
41 QString cupsOption(int i, const QString &key) const;
42};
43
44QT_END_NAMESPACE
45
46#endif // QCUPSPRINTERSUPPORT_H
47

source code of qtbase/src/plugins/printsupport/cups/qcupsprintersupport_p.h