Loading...
Searching...
No Matches
platform.h
/*
* Copyright (C) 2015 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLATFORM_H
#define PLATFORM_H
#include <QDBusInterface>
class Platform: public QObject
{
Q_OBJECT
Q_PROPERTY(QString chassis READ chassis CONSTANT)
Q_PROPERTY(bool isPC READ isPC CONSTANT)
Q_PROPERTY(bool isMultiSession READ isMultiSession CONSTANT)
public:
Platform(QObject *parent = nullptr);
~Platform() = default;
QString chassis() const;
bool isPC() const;
bool isMultiSession() const;
private Q_SLOTS:
void init();
private:
QString m_chassis;
bool m_isPC;
bool m_isMultiSession;
};
#endif // PLATFORM_H
Platform::isPC
bool isPC
Definition platform.h:40
Platform::isMultiSession
bool isMultiSession
Definition platform.h:44
Platform::chassis
QString chassis
Definition platform.h:36