/
common.h
31 lines (27 loc) · 874 Bytes
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
# powerdwarf <https://github.com/rodlie/powerdwarf>
# Copyright (c) 2018, Ole-André Rodlie <ole.andre.rodlie@gmail.com> All rights reserved.
#
# Available under the 3-clause BSD license
# See the LICENSE file for full details
*/
#ifndef COMMON_H
#define COMMON_H
#include <QVariant>
class Common
{
public:
static void savePowerSettings(QString type, QVariant value);
static QVariant loadPowerSettings(QString type);
static bool validPowerSettings(QString type);
static void setIconTheme();
static QString confFile();
static QString confDir();
static bool kernelCanResume();
static QString backlightDevice();
static bool canAdjustBacklight(QString device);
static int backlightMax(QString device);
static int backlightValue(QString device);
static bool adjustBacklight(QString device, int value);
};
#endif // COMMON_H