Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QGenericUnixServices Class Reference

#include <qgenericunixservices_p.h>

+ Inheritance diagram for QGenericUnixServices:
+ Collaboration diagram for QGenericUnixServices:

Public Member Functions

 QGenericUnixServices ()
 
QByteArray desktopEnvironment () const override
 QPlatformServices::desktopEnvironment returns the active desktop environment.
 
bool hasCapability (Capability capability) const override
 
bool openUrl (const QUrl &url) override
 
bool openDocument (const QUrl &url) override
 
QPlatformServiceColorPickercolorPicker (QWindow *parent=nullptr) override
 
void setApplicationBadge (qint64 number)
 
virtual QString portalWindowIdentifier (QWindow *window)
 
- Public Member Functions inherited from QPlatformServices
 QPlatformServices ()
 
virtual ~QPlatformServices ()
 
virtual bool openUrl (const QUrl &url)
 
virtual bool openDocument (const QUrl &url)
 
virtual QByteArray desktopEnvironment () const
 QPlatformServices::desktopEnvironment returns the active desktop environment.
 
virtual bool hasCapability (Capability capability) const
 
virtual QPlatformServiceColorPickercolorPicker (QWindow *parent=nullptr)
 

Additional Inherited Members

- Public Types inherited from QPlatformServices
enum  Capability { ColorPicking }
 Capabilities are used to determine a specific platform service's availability. More...
 

Detailed Description

Definition at line 26 of file qgenericunixservices_p.h.

Constructor & Destructor Documentation

◆ QGenericUnixServices()

QGenericUnixServices::QGenericUnixServices ( )
default

Member Function Documentation

◆ colorPicker()

QPlatformServiceColorPicker * QGenericUnixServices::colorPicker ( QWindow parent = nullptr)
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 547 of file qgenericunixservices.cpp.

References parent, and Q_UNUSED.

◆ desktopEnvironment()

QByteArray QGenericUnixServices::desktopEnvironment ( ) const
overridevirtual

QPlatformServices::desktopEnvironment returns the active desktop environment.

On Unix this function returns the uppercase desktop environment name, such as KDE, GNOME, UNITY, XFCE, LXDE etc. or UNKNOWN if none was detected. The primary way to detect the desktop environment is the environment variable XDG_CURRENT_DESKTOP.

Reimplemented from QPlatformServices.

Definition at line 528 of file qgenericunixservices.cpp.

References QByteArrayLiteral.

◆ hasCapability()

bool QGenericUnixServices::hasCapability ( Capability  capability) const
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 561 of file qgenericunixservices.cpp.

References QPlatformServices::ColorPicking.

◆ openDocument()

bool QGenericUnixServices::openDocument ( const QUrl url)
overridevirtual

Reimplemented from QPlatformServices.

Reimplemented in QtWaylandClient::QWaylandWindowManagerIntegration.

Definition at line 540 of file qgenericunixservices.cpp.

References Q_UNUSED, qWarning, and url.

Referenced by QtWaylandClient::QWaylandWindowManagerIntegration::openDocument().

+ Here is the caller graph for this function:

◆ openUrl()

bool QGenericUnixServices::openUrl ( const QUrl url)
overridevirtual

Reimplemented from QPlatformServices.

Reimplemented in QtWaylandClient::QWaylandWindowManagerIntegration.

Definition at line 533 of file qgenericunixservices.cpp.

References Q_UNUSED, qWarning, and url.

Referenced by QtWaylandClient::QWaylandWindowManagerIntegration::openUrl().

+ Here is the caller graph for this function:

◆ portalWindowIdentifier()

QString QGenericUnixServices::portalWindowIdentifier ( QWindow window)
virtual

Reimplemented in QXcbUnixServices, and QtWaylandClient::QWaylandWindowManagerIntegration.

Definition at line 555 of file qgenericunixservices.cpp.

References Q_UNUSED, and window().

Referenced by QGtk3Dialog::show().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setApplicationBadge()

void QGenericUnixServices::setApplicationBadge ( qint64  number)

Definition at line 570 of file qgenericunixservices.cpp.

References QDBusMessage::createSignal(), number, Q_UNUSED, qBound(), qGuiApp, QStringLiteral, qWarning, QDBusConnection::send(), QDBusConnection::sessionBus(), and signal.

Referenced by QXcbIntegration::setApplicationBadge().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: