QDBusObjectPath Class
The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-Bus typesystem. More…
| Header | #include <QDBusObjectPath> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::DBus) |
| Module | Nt D-Bus C++ Classes |
List of all members, including inherited members
Public Functions
| QDBusObjectPath() | |
| QDBusObjectPath(const char *path) | |
| QDBusObjectPath(QLatin1StringView path) | |
| QDBusObjectPath(const QString &path) | |
| QString | path() const |
| void | setPath(const QString &path) |
| void | swap(QDBusObjectPath &other) |
Detailed Description
An object path names an object in a connection, such as /org/example/Clock. A QString is sent as a D-Bus string; wrap it in a QDBusObjectPath to send it as a path.
See also QDBusSignature and QDBusVariant.
Differences from Qt
There is no QDebug stream operator.
Member Function Documentation
QDBusObjectPath::QDBusObjectPath()
Constructs an empty object path, which is not a valid path on the bus.
QDBusObjectPath::QDBusObjectPath(const char *path)
Constructs an object path from path. An invalid path prints a warning and gives an empty one.
QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)
This is an overloaded function.
Constructs an object path from path.
QDBusObjectPath::QDBusObjectPath(const QString &path)
This is an overloaded function.
Constructs an object path from path.
QString QDBusObjectPath::path() const
Returns this path as a QString.
void QDBusObjectPath::setPath(const QString &path)
Sets this object path to path. An invalid path prints a warning and gives an empty one.
void QDBusObjectPath::swap(QDBusObjectPath &other)
Swaps this path with other.