You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qterminal-packaging/src/dbusaddressable.cpp

26 lines
477 B

#include "dbusaddressable.h"
#ifdef HAVE_QDBUS
Q_DECLARE_METATYPE(QList<QDBusObjectPath>)
QString DBusAddressable::getDbusPathString()
{
return m_path;
}
QDBusObjectPath DBusAddressable::getDbusPath()
{
return QDBusObjectPath(m_path);
}
#endif
DBusAddressable::DBusAddressable(QString prefix)
{
#ifdef HAVE_QDBUS
QString uuidString = QUuid::createUuid().toString();
m_path = prefix + "/" + uuidString.replace(QRegExp("[\\{\\}\\-]"), "");
#endif
}