39 const TQCString& nodeName)
40 : TQCString(static_cast<const TQCString&>(parentNode))
42 if (parentNode.length() != 1) append(
"/");
56 int index = findRev(
'/');
60 if (index == 0)
return left(1);
67 if (path.isEmpty())
return 0;
69 if (path[0] !=
'/')
return 0;
73 uint len = path.length();
76 if (path[len - 1] ==
'/' && len > 1)
return (len - 1);
Class for representing D-Bus object paths.
TQT_DBusObjectPath parentNode() const
Returns the object path of this path's parent node.
static int validate(const TQCString &path)
Checks the given string for validity as a D-Bus object path.
TQT_DBusObjectPath()
Creates an empty and invalid object path.
bool isValid() const
Returns whether the current content is considered a valid object path.