1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPLATFORMPRINTPLUGIN_H
5#define QPLATFORMPRINTPLUGIN_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is part of the QPA API and is not meant to be used
12// in applications. Usage of this API may make your code
13// source and binary incompatible with future versions of Qt.
14//
15
16#include <QtPrintSupport/qtprintsupportglobal.h>
17#include <QtCore/qplugin.h>
18#include <QtCore/qfactoryinterface.h>
19
20#ifndef QT_NO_PRINTER
21
22QT_BEGIN_NAMESPACE
23
24
25class QPlatformPrinterSupport;
26
27#define QPlatformPrinterSupportFactoryInterface_iid "org.qt-project.QPlatformPrinterSupportFactoryInterface.5.1"
28
29class Q_PRINTSUPPORT_EXPORT QPlatformPrinterSupportPlugin : public QObject
30{
31 Q_OBJECT
32public:
33 explicit QPlatformPrinterSupportPlugin(QObject *parent = nullptr);
34 ~QPlatformPrinterSupportPlugin();
35
36 virtual QPlatformPrinterSupport *create(const QString &key) = 0;
37
38 static QPlatformPrinterSupport *get();
39};
40
41QT_END_NAMESPACE
42
43#endif
44
45#endif // QPLATFORMPRINTPLUGIN_H
46

source code of qtbase/src/printsupport/kernel/qplatformprintplugin.h