| 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 QWAYLANDPLATFORMSERVICES_H |
| 5 | #define QWAYLANDPLATFORMSERVICES_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtCore/QObject> |
| 19 | |
| 20 | #include <QtGui/private/qgenericunixservices_p.h> |
| 21 | |
| 22 | #include <QtWaylandClient/private/qwayland-qt-windowmanager.h> |
| 23 | #include <QtWaylandClient/qtwaylandclientglobal.h> |
| 24 | |
| 25 | QT_BEGIN_NAMESPACE |
| 26 | |
| 27 | namespace QtWaylandClient { |
| 28 | |
| 29 | class QWaylandDisplay; |
| 30 | |
| 31 | class Q_WAYLANDCLIENT_EXPORT QWaylandPlatformServices : public QGenericUnixServices |
| 32 | { |
| 33 | public: |
| 34 | explicit QWaylandPlatformServices(QWaylandDisplay *waylandDisplay); |
| 35 | |
| 36 | bool openUrl(const QUrl &url) override; |
| 37 | bool openDocument(const QUrl &url) override; |
| 38 | QString portalWindowIdentifier(QWindow *window) override; |
| 39 | |
| 40 | private: |
| 41 | QWaylandDisplay *m_display; |
| 42 | }; |
| 43 | |
| 44 | QT_END_NAMESPACE |
| 45 | |
| 46 | } // namespace QtWaylandClient |
| 47 | |
| 48 | #endif // QWAYLANDPLATFORMSERVICES_H |
| 49 | |