Unity 8
Platform Class Reference

The Platform class. More...

#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
 

Detailed Description

The Platform class.

Wrapper around platform detection support (org.freedesktop.hostname1)

Definition at line 27 of file platform.h.

Property Documentation

QString Platform::chassis
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.

bool Platform::isPC
read

Whether the machine is an ordinary PC (desktop, laptop or server)

Definition at line 40 of file platform.h.


The documentation for this class was generated from the following files: