78c72f6cb40baae786b76e458565c5013c6419d3
[irwi] / src / settingsdlg.h
1 #ifndef SETTINGSDLG_H
2 #define SETTINGSDLG_H
3
4 #include <QDialog>
5 #include <QSettings>
6 #include <QNetworkConfigurationManager>
7
8 #include "remote.h"
9
10 class QWidget;
11 class QHBoxLayout;
12 class QVBoxLayout;
13 class QPushButton;
14 class QLabel;
15 class Remote;
16
17 class SettingsDlg : public QDialog
18 {
19     Q_OBJECT
20 public:
21     SettingsDlg(QWidget *parent = 0);
22     ~SettingsDlg();
23
24 private slots:
25     void showAdvSettingsDlg();
26     void showSelectRemoteDlg();
27     void showAboutDlg();
28     void setRemote(Remote);
29     void updateRemoteInfo();
30     void rateUpClicked();
31     void rateDownClicked();
32     void onNetworkStatusUpdate();
33
34 private:
35     void enableRateBtns(bool enable = true);
36     void processRatingSent();
37     void setBusy(bool busy = true);
38
39 private:
40     Remote m_remote;
41
42     QVBoxLayout *m_layout;
43     QHBoxLayout *m_btnLayout;
44     QHBoxLayout *m_remoteNameLayout;
45     QPushButton *m_advSettingsBtn;
46     QPushButton *m_selectRemoteBtn;
47     QPushButton *m_rateUpBtn;
48     QPushButton *m_rateDownBtn;
49     QPushButton *m_aboutBtn;
50     QLabel *m_remoteNameLabel;
51     QLabel *m_ratingLabel;
52     QTM_PREPEND_NAMESPACE(QNetworkConfigurationManager) *m_netConfMan;
53 };
54
55 #endif
56