19 #include <QDBusConnection>
21 Platform::Platform(QObject *parent)
23 , m_iface(
"org.freedesktop.hostname1",
"/org/freedesktop/hostname1",
"org.freedesktop.hostname1",
24 QDBusConnection::systemBus(), this)
26 QMetaObject::invokeMethod(
this,
"init");
31 m_chassis = m_iface.property(
"Chassis").toString();
32 m_isPC = (m_chassis ==
"desktop" || m_chassis ==
"laptop" || m_chassis ==
"server");