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
QDBusObjectPath Class Reference

\inmodule QtDBus More...

#include <qdbusextratypes.h>

+ Collaboration diagram for QDBusObjectPath:

Public Member Functions

 QDBusObjectPath () noexcept
 Constructs a new object path.
 
 QDBusObjectPath (const char *path)
 Constructs a new object path from the given path.
 
 QDBusObjectPath (QLatin1StringView path)
 Constructs a new object path from the Latin-1 string viewed by path.
 
 QDBusObjectPath (const QString &path)
 Constructs a new object path from the given path.
 
 QDBusObjectPath (QString &&p)
 
void swap (QDBusObjectPath &other) noexcept
 Swaps this QDBusObjectPath instance with other.
 
void setPath (const QString &path)
 Assigns the value of the given path to this object path.
 
QString path () const
 Returns this object path.
 
 operator QVariant () const
 

Detailed Description

\inmodule QtDBus

Since
4.2

The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-Bus typesystem.

See also
{The Qt D-Bus Type System}

Definition at line 18 of file qdbusextratypes.h.

Constructor & Destructor Documentation

◆ QDBusObjectPath() [1/5]

QDBusObjectPath::QDBusObjectPath ( )
inlinenoexcept

Constructs a new object path.

Definition at line 22 of file qdbusextratypes.h.

◆ QDBusObjectPath() [2/5]

QDBusObjectPath::QDBusObjectPath ( const char * path)
inlineexplicit

Constructs a new object path from the given path.

See also
setPath()

Definition at line 45 of file qdbusextratypes.h.

◆ QDBusObjectPath() [3/5]

QDBusObjectPath::QDBusObjectPath ( QLatin1StringView path)
inlineexplicit

Constructs a new object path from the Latin-1 string viewed by path.

Definition at line 49 of file qdbusextratypes.h.

◆ QDBusObjectPath() [4/5]

QDBusObjectPath::QDBusObjectPath ( const QString & path)
inlineexplicit

Constructs a new object path from the given path.

Definition at line 53 of file qdbusextratypes.h.

◆ QDBusObjectPath() [5/5]

QDBusObjectPath::QDBusObjectPath ( QString && p)
inlineexplicit

Definition at line 29 of file qdbusextratypes.h.

Member Function Documentation

◆ operator QVariant()

QDBusObjectPath::operator QVariant ( ) const
Since
5.14

Implicit cast to QVariant. Equivalent to calling QVariant::fromValue() with this object as argument.

Definition at line 152 of file qdbusextratypes.cpp.

References QVariant::fromValue().

+ Here is the call graph for this function:

◆ path()

QString QDBusObjectPath::path ( ) const
inline

Returns this object path.

See also
setPath()

Definition at line 35 of file qdbusextratypes.h.

Referenced by getPrimaryDevice(), operator!=(), operator<(), operator==(), and qHash().

+ Here is the caller graph for this function:

◆ setPath()

void QDBusObjectPath::setPath ( const QString & path)
inline

Assigns the value of the given path to this object path.

See also
path()

Definition at line 57 of file qdbusextratypes.h.

◆ swap()

void QDBusObjectPath::swap ( QDBusObjectPath & other)
inlinenoexcept

Swaps this QDBusObjectPath instance with other.

Definition at line 31 of file qdbusextratypes.h.

References other().

+ Here is the call graph for this function:

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