Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgenericunixservices_p.h
Go to the documentation of this file.
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 QGENERICUNIXDESKTOPSERVICES_H
5#define QGENERICUNIXDESKTOPSERVICES_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 <qpa/qplatformservices.h>
19#include <QtCore/QString>
20#include <QtCore/private/qglobal_p.h>
21
23
24class QWindow;
25
26class Q_GUI_EXPORT QGenericUnixServices : public QPlatformServices
27{
28public:
30
31 QByteArray desktopEnvironment() const override;
32
33 bool hasCapability(Capability capability) const override;
34 bool openUrl(const QUrl &url) override;
35 bool openDocument(const QUrl &url) override;
36 QPlatformServiceColorPicker *colorPicker(QWindow *parent = nullptr) override;
37
38 void setApplicationBadge(qint64 number);
39 virtual QString portalWindowIdentifier(QWindow *window);
40
41private:
42 QString m_webBrowser;
43 QString m_documentLauncher;
44 bool m_hasScreenshotPortalWithColorPicking = false;
45};
46
48
49#endif // QGENERICUNIXDESKTOPSERVICES_H
\inmodule QtCore
Definition qbytearray.h:57
The QPlatformServices provides the backend for desktop-related functionality.
Capability
Capabilities are used to determine a specific platform service's availability.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
long long qint64
Definition qtypes.h:60
QUrl url("example.com")
[constructor-url-reference]
aWidget window() -> setWindowTitle("New Window Title")
[2]