mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
Issue #15 Methods to generate a DBus object path from a CIdentifier
This commit is contained in:
@@ -76,6 +76,12 @@ namespace BlackMisc
|
||||
//! UUID string
|
||||
QString toUuidString() const;
|
||||
|
||||
//! Produces a DBus object path from the identifier.
|
||||
QString toDBusObjectPath(const QString &root = {}) const;
|
||||
|
||||
//! Reconstruct an identifier from a DBus object path.
|
||||
CIdentifier fromDBusObjectPath(const QString &path, const QString &root = {});
|
||||
|
||||
//! Name
|
||||
const QString &getName() const { return m_name; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user