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 QXCBMIME_H |
5 | #define QXCBMIME_H |
6 | |
7 | #include <QtGui/private/qinternalmimedata_p.h> |
8 | |
9 | #include <QtGui/QClipboard> |
10 | |
11 | #include "qxcbintegration.h" |
12 | #include "qxcbconnection.h" |
13 | |
14 | QT_BEGIN_NAMESPACE |
15 | |
16 | class QXcbMime : public QInternalMimeData { |
17 | Q_OBJECT |
18 | public: |
19 | QXcbMime(); |
20 | ~QXcbMime(); |
21 | |
22 | static QList<xcb_atom_t> mimeAtomsForFormat(QXcbConnection *connection, const QString &format); |
23 | static QString mimeAtomToString(QXcbConnection *connection, xcb_atom_t a); |
24 | static bool mimeDataForAtom(QXcbConnection *connection, xcb_atom_t a, QMimeData *mimeData, QByteArray *data, |
25 | xcb_atom_t *atomFormat, int *dataFormat); |
26 | static QVariant mimeConvertToFormat(QXcbConnection *connection, xcb_atom_t a, const QByteArray &data, const QString &format, |
27 | QMetaType requestedType, bool hasUtf8); |
28 | static xcb_atom_t mimeAtomForFormat(QXcbConnection *connection, const QString &format, QMetaType requestedType, |
29 | const QList<xcb_atom_t> &atoms, bool *hasUtf8); |
30 | }; |
31 | |
32 | QT_END_NAMESPACE |
33 | |
34 | #endif // QXCBMIME_H |
35 | |