1 | // Copyright (C) 2020 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 QDESKTOPSERVICES_H |
5 | #define QDESKTOPSERVICES_H |
6 | |
7 | #include <QtGui/qtguiglobal.h> |
8 | #include <QtCore/qstring.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | |
13 | #ifndef QT_NO_DESKTOPSERVICES |
14 | |
15 | class QUrl; |
16 | class QObject; |
17 | |
18 | class Q_GUI_EXPORT QDesktopServices |
19 | { |
20 | public: |
21 | static bool openUrl(const QUrl &url); |
22 | static void setUrlHandler(const QString &scheme, QObject *receiver, const char *method); |
23 | static void unsetUrlHandler(const QString &scheme); |
24 | }; |
25 | |
26 | #endif // QT_NO_DESKTOPSERVICES |
27 | |
28 | QT_END_NAMESPACE |
29 | |
30 | #endif // QDESKTOPSERVICES_H |
31 | |
32 | |