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
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
 \memberswap{object path}
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

Friends

Q_DBUS_EXPORT friend QDebug operator<< (QDebug dbg, const QDBusObjectPath &path)

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 19 of file qdbusextratypes.h.

Constructor & Destructor Documentation

◆ QDBusObjectPath() [1/5]

QDBusObjectPath::QDBusObjectPath ( )
inlinenoexcept

Constructs a new object path.

Definition at line 23 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 49 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 53 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 57 of file qdbusextratypes.h.

◆ QDBusObjectPath() [5/5]

QDBusObjectPath::QDBusObjectPath ( QString && p)
inlineexplicit

Definition at line 30 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 164 of file qdbusextratypes.cpp.

◆ path()

QString QDBusObjectPath::path ( ) const
inline

Returns this object path.

See also
setPath()

Definition at line 36 of file qdbusextratypes.h.

◆ 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 61 of file qdbusextratypes.h.

◆ swap()

void QDBusObjectPath::swap ( QDBusObjectPath & other)
inlinenoexcept

\memberswap{object path}

Definition at line 32 of file qdbusextratypes.h.

◆ operator<<

Q_DBUS_EXPORT friend QDebug operator<< ( QDebug dbg,
const QDBusObjectPath & path )
friend
Since
6.8 Writes the contents of path to dbg.

Definition at line 22 of file qdbusextratypes.cpp.


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