mainwindow: update environment variable http_proxy to qt_http_proxy
[apps/thermostat-demo.git] / awayscreen.h
1 #ifndef AWAYSCREEN_H
2 #define AWAYSCREEN_H
4 #include <qglobal.h>
6 #include <QtGui>
8 #if QT_VERSION >= 0x050000
10 #include <QSpinBox>
11 #include <QLabel>
12 #include <QLineEdit>
14 #endif
16 class GlobalSettings;
18 class AwayScreen : public QWidget
19 {
20     Q_OBJECT
21 public:
22     explicit AwayScreen(QWidget *parent = 0);
23     
24     void setCurrentTempPtr(int* currentTempPointer);
25 signals:
26     
27 public slots:
28     void updateCurrentTemp();
29     void updateUnit();
31 private:
32     QLabel *awayLabel;
33     QLabel *ecoLabel;
34     QLabel *currentTempLabel;
35     QSpinBox *upperBound;
36     QSpinBox *lowerBound;
38     int m_upperBound;
39     int m_lowerBound;
41     int *m_currentTemp;
43     GlobalSettings* m_globalSettings;
44 };
46 #endif // AWAYSCREEN_H