DBus-1-TQt 1.0
|
#include <tqdbusobjectpath.h>
Public Member Functions | |
TQT_DBusObjectPath () | |
TQT_DBusObjectPath (const TQT_DBusObjectPath &other) | |
TQT_DBusObjectPath (const TQString &other) | |
TQT_DBusObjectPath (const TQT_DBusObjectPath &parentNode, const TQString &nodeName) | |
bool | isValid () const |
TQT_DBusObjectPath | parentNode () const |
Static Public Member Functions | |
static int | validate (const TQString &path) |
Class for representing D-Bus object paths.
This data type is necessary to correctly represent object paths in the context of D-Bus messages, since normal strings have a different D-Bus signature than object paths.
Definition at line 38 of file tqdbusobjectpath.h.
TQT_DBusObjectPath::TQT_DBusObjectPath | ( | ) |
Creates an empty and invalid object path.
Definition at line 26 of file tqdbusobjectpath.cpp.
TQT_DBusObjectPath::TQT_DBusObjectPath | ( | const TQT_DBusObjectPath & | other | ) |
Creates copy of the given other
object path.
other | the object path to copy |
Definition at line 30 of file tqdbusobjectpath.cpp.
TQT_DBusObjectPath::TQT_DBusObjectPath | ( | const TQString & | other | ) |
Creates copy of the given other
object path.
other | the object path to copy |
Definition at line 34 of file tqdbusobjectpath.cpp.
TQT_DBusObjectPath::TQT_DBusObjectPath | ( | const TQT_DBusObjectPath & | parentNode, |
const TQString & | nodeName | ||
) |
Creates an object path for an object as a child of the parent node.
This is basically like specifying a directory and a file name to create the file's full path.
Example:
parentNode | the object path to create the child on |
nodeName | the name of the child node |
Definition at line 38 of file tqdbusobjectpath.cpp.
References parentNode().
bool TQT_DBusObjectPath::isValid | ( | ) | const |
Returns whether the current content is considered a valid object path.
true
if the object's content describe a valid object path, otherwise false
Definition at line 48 of file tqdbusobjectpath.cpp.
References validate().
TQT_DBusObjectPath TQT_DBusObjectPath::parentNode | ( | ) | const |
Returns the object path of this path's parent node.
This is basically like getting the directory of an file path
Definition at line 53 of file tqdbusobjectpath.cpp.
References TQT_DBusObjectPath().
|
static |
Checks the given string for validity as a D-Bus object path.
See section Object paths for information on object path formatting.
path | the string to check |
-1
if the object path is valid, otherwise the index of the first violating characterDefinition at line 73 of file tqdbusobjectpath.cpp.