Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qplatformprintplugin.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QPLATFORMPRINTPLUGIN_H
6#define QPLATFORMPRINTPLUGIN_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is part of the QPA API and is not meant to be used
13// in applications. Usage of this API may make your code
14// source and binary incompatible with future versions of Qt.
15//
16
17#include <QtPrintSupport/qtprintsupportglobal.h>
18#include <QtCore/qplugin.h>
19#include <QtCore/qfactoryinterface.h>
20
21#ifndef QT_NO_PRINTER
22
23QT_BEGIN_NAMESPACE
24
25
26class QPlatformPrinterSupport;
27
28#define QPlatformPrinterSupportFactoryInterface_iid "org.qt-project.QPlatformPrinterSupportFactoryInterface.5.1"
29
30class Q_PRINTSUPPORT_EXPORT QPlatformPrinterSupportPlugin : public QObject
31{
32 Q_OBJECT
33public:
34 explicit QPlatformPrinterSupportPlugin(QObject *parent = nullptr);
35 ~QPlatformPrinterSupportPlugin();
36
37 virtual QPlatformPrinterSupport *create(const QString &key) = 0;
38
39 static QPlatformPrinterSupport *get();
40};
41
42QT_END_NAMESPACE
43
44#endif
45
46#endif // QPLATFORMPRINTPLUGIN_H
Q_GLOBAL_STATIC_WITH_ARGS(PermissionStatusHash, g_permissionStatusHash,({ { qMetaTypeId< QCameraPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QMicrophonePermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QBluetoothPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QContactsPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QCalendarPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QLocationPermission >(), Qt::PermissionStatus::Undetermined } }))
static QPlatformPrinterSupport * printerSupport
static void cleanupPrinterSupport()
#define QPlatformPrinterSupportFactoryInterface_iid