Progress indicator is now visible right after SettingsDlg is opened
[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     void showEvent(class QShowEvent *);
24
25 private slots:
26     void showAdvSettingsDlg();
27     void showSelectRemoteDlg();
28     void showAboutDlg();
29     void setRemote(Remote);
30     void updateRemoteInfo();
31     void rateUpClicked();
32     void rateDownClicked();
33     void onNetworkStatusUpdate();
34
35 private:
36     void enableRateBtns(bool enable = true);
37     void processRatingSent();
38     void setBusy(bool busy = true);
39
40 private:
41     bool m_busy;
42     Remote m_remote;
43
44     QVBoxLayout *m_layout;
45     QHBoxLayout *m_btnLayout;
46     QHBoxLayout *m_remoteNameLayout;
47     QPushButton *m_advSettingsBtn;
48     QPushButton *m_selectRemoteBtn;
49     QPushButton *m_rateUpBtn;
50     QPushButton *m_rateDownBtn;
51     QPushButton *m_aboutBtn;
52     QLabel *m_remoteNameLabel;
53     QLabel *m_ratingLabel;
54     QTM_PREPEND_NAMESPACE(QNetworkConfigurationManager) *m_netConfMan;
55 };
56
57 #endif
58