| 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 QPLATFORMCLIPBOARD_H |
| 5 | #define QPLATFORMCLIPBOARD_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 <QtGui/qtguiglobal.h> |
| 17 | |
| 18 | #ifndef QT_NO_CLIPBOARD |
| 19 | |
| 20 | #include <QtGui/QClipboard> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | |
| 25 | class Q_GUI_EXPORT QPlatformClipboard |
| 26 | { |
| 27 | public: |
| 28 | Q_DISABLE_COPY_MOVE(QPlatformClipboard) |
| 29 | |
| 30 | QPlatformClipboard() = default; |
| 31 | virtual ~QPlatformClipboard(); |
| 32 | |
| 33 | virtual QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard); |
| 34 | virtual void setMimeData(QMimeData *data, QClipboard::Mode mode = QClipboard::Clipboard); |
| 35 | virtual bool supportsMode(QClipboard::Mode mode) const; |
| 36 | virtual bool ownsMode(QClipboard::Mode mode) const; |
| 37 | void emitChanged(QClipboard::Mode mode); |
| 38 | }; |
| 39 | |
| 40 | QT_END_NAMESPACE |
| 41 | |
| 42 | #endif // QT_NO_CLIPBOARD |
| 43 | |
| 44 | #endif //QPLATFORMCLIPBOARD_H |
| 45 | |