v0.1.1 release
[qbat.git] / common.h
blob980d0d43864bb52069b6635fb5bed436d5d36651
1 //
2 // C++ Interface: common
3 //
4 // Author: Oliver Groß <z.o.gross@gmx.de>, (C) 2008
5 //
6 // Copyright: See COPYING file that comes with this distribution
7 //
8 #ifndef QBAT_COMMON_H
9 #define QBAT_COMMON_H
11 #include <string>
12 #include <QColor>
13 #include "constants.h"
15 namespace qbat {
16 struct Settings {
17 quint16 pollingRate;
18 bool mergeBatterys;
19 bool handleCritical;
20 quint8 criticalCapacity;
21 bool executeCommand;
22 QString criticalCommand;
23 QRgb colors[UI_COUNT_COLORS];
24 /* QRgb textColor;
25 QRgb mainEmptyColor;
26 QRgb mainChargedColor;
27 QRgb poleColor;
28 QRgb textFullColor;
29 QRgb mainFullColor;
30 QRgb poleFullColor;*/
33 std::string readStringSysFile(const char * fileName);
34 int readIntSysFile(const char * fileName);
35 int toStatusInt(std::string status);
38 #endif