Unity 8
|
#include <plugins/Unity/Platform/platform.h>
Inherits QObject.
Public Member Functions | |
Platform (QObject *parent=nullptr) | |
QString | chassis () const |
bool | isPC () const |
Properties | |
QString | chassis |
bool | isPC |
The Platform class.
Wrapper around platform detection support (org.freedesktop.hostname1)
Definition at line 27 of file platform.h.
|
read |
The chassis property
Supported values include: "laptop", "computer", "handset" or "tablet" For full list see: http://www.freedesktop.org/wiki/Software/systemd/hostnamed/
Definition at line 36 of file platform.h.
|
read |
Whether the machine is an ordinary PC (desktop, laptop or server)
Definition at line 40 of file platform.h.