Lomiri
Loading...
Searching...
No Matches
Platform Class Reference

The Platform class. More...

#include <plugins/Lomiri/Platform/platform.h>

Inherits QObject.

Public Member Functions

 Platform (QObject *parent=nullptr)
 
QString chassis () const
 
bool isPC () const
 
bool isMultiSession () const
 

Properties

QString chassis
 
bool isPC
 
bool isMultiSession
 

Detailed Description

The Platform class.

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

Definition at line 27 of file platform.h.

Constructor & Destructor Documentation

◆ Platform()

Platform::Platform ( QObject *  parent = nullptr)

Definition at line 23 of file platform.cpp.

24 : QObject(parent), m_isPC(true), m_isMultiSession(true)
25{
26 QMetaObject::invokeMethod(this, "init");
27}

Member Function Documentation

◆ chassis()

QString Platform::chassis ( ) const

Definition at line 53 of file platform.cpp.

54{
55 return m_chassis;
56}

◆ isMultiSession()

bool Platform::isMultiSession ( ) const

Definition at line 63 of file platform.cpp.

64{
65 return m_isMultiSession;
66}

◆ isPC()

bool Platform::isPC ( ) const

Definition at line 58 of file platform.cpp.

59{
60 return m_isPC;
61}

Property Documentation

◆ chassis

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.

◆ isMultiSession

bool Platform::isMultiSession
read

Whether the system is capable of running multiple (graphical) sessions

Definition at line 44 of file platform.h.

◆ isPC

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: