Issue #15 Methods to generate a DBus object path from a CIdentifier

This commit is contained in:
Mat Sutcliffe
2019-02-26 01:51:18 +00:00
parent 6aa9f0cc25
commit 8de217fbab
3 changed files with 59 additions and 3 deletions

View File

@@ -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; }