summaryrefslogtreecommitdiffstats
path: root/src/gui/platform/unix/qdesktopunixservices_p.h
blob: 903bd6e65106a54f5fdfded69917a5679b6da8f0 (plain)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
// Copyright (C) 2020 The Qt Company Ltd.// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only#ifndef QDESKTOPUNIXSERVICES_H#define QDESKTOPUNIXSERVICES_H//// W A R N I N G// -------------//// This file is not part of the Qt API. It exists purely as an// implementation detail. This header file may change from version to// version without notice, or even be removed.//// We mean it.//#include <qpa/qplatformservices.h>#include <QtCore/qpointer.h>#include <QtCore/QString>#include <QtCore/private/qglobal_p.h> QT_BEGIN_NAMESPACE class QDBusPendingCallWatcher;class QWindow;class Q_GUI_EXPORT QDesktopUnixServices :public QPlatformServices {public:QDesktopUnixServices();~QDesktopUnixServices(); QByteArray desktopEnvironment()const override;boolhasCapability(Capability capability)const override;boolopenUrl(const QUrl &url) override;boolopenDocument(const QUrl &url) override; QPlatformServiceColorPicker *colorPicker(QWindow *parent =nullptr) override;voidsetApplicationBadge(qint64 number);virtual QString portalWindowIdentifier(QWindow *window);virtualvoidregisterDBusMenuForWindow(QWindow *window,const QString &service,const QString &path);virtualvoidunregisterDBusMenuForWindow(QWindow *window);private: QString m_webBrowser; QString m_documentLauncher;#if QT_CONFIG(dbus) QPointer<QDBusPendingCallWatcher> m_watcher =nullptr;#endifbool m_hasScreenshotPortalWithColorPicking =false;}; QT_END_NAMESPACE #endif// QDESKTOPUNIXSERVICES_H
close