02e635cac4b3fc9eae5f2748058e9d64189ba036
[apps/thermostat-demo.git] / settingscreen.h
1 #ifndef SETTINGSCREEN_H
2 #define SETTINGSCREEN_H
4 #include <QtGui>
6 class GlobalSettings;
7 class QKeyboardLineEdit;
9 class SettingScreen : public QWidget
10 {
11     Q_OBJECT
12 public:
13     explicit SettingScreen(QWidget *parent = 0);
15     void setLicenseString(QString licenseString);
16     
17 signals:
18     void valueChanged();
19     void cityChanged();
20     
21 public slots:
22     void setTempFormatF();
23     void setTempFormatC();
25     void setTimeFormat12h();
26     void setTimeFormat24h();
28     void commitChanges();
29     void fillSettingValues();
31     void launchWifiConfigure();
32     void wifiConfigureFinished(int, QProcess::ExitStatus);
34 protected:
35     void showEvent(QShowEvent *);
37 private:
38     QComboBox *cityBox;
39     QLabel *licenseStringLabel;
41     QPushButton *FButton;
42     QPushButton *CButton;
44     QPushButton *Button12h;
45     QPushButton *Button24h;
47     QPushButton *configureWifiButton;
49     QKeyboardLineEdit* m_proxyHostLineEdit;
50     QKeyboardLineEdit* m_proxyPortLineEdit;
51     QKeyboardLineEdit* m_remoteListenPortLineEdit;
53     GlobalSettings* m_globalSettings;
55     QWidget* buildNetworkSettingsWidget();
56     QWidget* buildGeneralSettingsWidget();
57     QWidget* buildFormatSettingsWidget();
59     QProcess m_wifiConfigureProcess;
60     
61 };
63 #endif // SETTINGSCREEN_H