]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/thermostat-demo.git/blob - awayscreen.h
thermostat-demo: Add license information
[apps/thermostat-demo.git] / awayscreen.h
1 #ifndef AWAYSCREEN_H
2 #define AWAYSCREEN_H
4 #include <QtGui>
6 class GlobalSettings;
8 class AwayScreen : public QWidget
9 {
10     Q_OBJECT
11 public:
12     explicit AwayScreen(QWidget *parent = 0);
13     
14     void setCurrentTempPtr(int* currentTempPointer);
15 signals:
16     
17 public slots:
18     void updateCurrentTemp();
19     void updateUnit();
21 private:
22     QLabel *awayLabel;
23     QLabel *ecoLabel;
24     QLabel *currentTempLabel;
25     QSpinBox *upperBound;
26     QSpinBox *lowerBound;
28     int m_upperBound;
29     int m_lowerBound;
31     int *m_currentTemp;
33     GlobalSettings* m_globalSettings;
34 };
36 #endif // AWAYSCREEN_H