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
10QT_BEGIN_NAMESPACE
11
12
13#ifndef QT_NO_DESKTOPSERVICES
14
15class QUrl;
16class QObject;
17
18class Q_GUI_EXPORT QDesktopServices
19{
20public:
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
28QT_END_NAMESPACE
29
30#endif // QDESKTOPSERVICES_H
31
32

source code of qtbase/src/gui/util/qdesktopservices.h