This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-app/nymea-app/platformhelper.cpp
2019-09-12 00:34:50 +02:00

58 lines
991 B
C++

#include "platformhelper.h"
PlatformHelper::PlatformHelper(QObject *parent) : QObject(parent)
{
}
bool PlatformHelper::canControlScreen() const
{
return false;
}
int PlatformHelper::screenTimeout() const
{
return 0;
}
void PlatformHelper::setScreenTimeout(int screenTimeout)
{
Q_UNUSED(screenTimeout)
}
int PlatformHelper::screenBrightness() const
{
return 0;
}
void PlatformHelper::setScreenBrightness(int percent)
{
Q_UNUSED(percent)
}
QColor PlatformHelper::topPanelColor() const
{
return m_topPanelColor;
}
void PlatformHelper::setTopPanelColor(const QColor &color)
{
if (m_topPanelColor != color) {
m_topPanelColor = color;
emit topPanelColorChanged();
}
}
QColor PlatformHelper::bottomPanelColor() const
{
return m_bottomPanelColor;
}
void PlatformHelper::setBottomPanelColor(const QColor &color)
{
if (m_bottomPanelColor != color) {
m_bottomPanelColor = color;
emit bottomPanelColorChanged();
}
}