Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOhosPlatformServices Class Reference

#include <qohosplatformservices.h>

Inheritance diagram for QOhosPlatformServices:
Collaboration diagram for QOhosPlatformServices:

Public Member Functions

 QOhosPlatformServices ()
bool hasCapability (Capability capability) const override
bool openUrl (const QUrl &url) override
bool openDocument (const QUrl &url) override
QByteArray desktopEnvironment () const override
 QPlatformServices::desktopEnvironment returns the active desktop environment.
QPlatformServiceColorPickercolorPicker (QWindow *parent) override
Public Member Functions inherited from QPlatformServices
 QPlatformServices ()
virtual ~QPlatformServices ()

Static Public Member Functions

static std::string mapPathToOhosUriInJsThread (const std::string &path)
static std::string mapOhosFileUriToPathInJsThread (const std::string &ohosFileUri)

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 12 of file qohosplatformservices.h.

Constructor & Destructor Documentation

◆ QOhosPlatformServices()

QOhosPlatformServices::QOhosPlatformServices ( )
default

Member Function Documentation

◆ colorPicker()

QPlatformServiceColorPicker * QOhosPlatformServices::colorPicker ( QWindow * parent)
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 136 of file qohosplatformservices.cpp.

◆ desktopEnvironment()

QByteArray QOhosPlatformServices::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 207 of file qohosplatformservices.cpp.

◆ hasCapability()

bool QOhosPlatformServices::hasCapability ( Capability capability) const
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 142 of file qohosplatformservices.cpp.

◆ mapOhosFileUriToPathInJsThread()

std::string QOhosPlatformServices::mapOhosFileUriToPathInJsThread ( const std::string & ohosFileUri)
static

Definition at line 217 of file qohosplatformservices.cpp.

Referenced by QT_BEGIN_NAMESPACE::startOhosFilePicker().

Here is the caller graph for this function:

◆ mapPathToOhosUriInJsThread()

std::string QOhosPlatformServices::mapPathToOhosUriInJsThread ( const std::string & path)
static

Definition at line 212 of file qohosplatformservices.cpp.

◆ openDocument()

bool QOhosPlatformServices::openDocument ( const QUrl & url)
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 202 of file qohosplatformservices.cpp.

◆ openUrl()

bool QOhosPlatformServices::openUrl ( const QUrl & url)
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 152 of file qohosplatformservices.cpp.


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