Website updated.
[irwi] / src / settingsdlg.h
index 0f08d80..09cda7a 100644 (file)
@@ -3,6 +3,9 @@
 
 #include <QDialog>
 #include <QSettings>
+#include <QNetworkConfigurationManager>
+
+#include "remote.h"
 
 class QWidget;
 class QHBoxLayout;
@@ -17,33 +20,38 @@ class SettingsDlg : public QDialog
 public:
     SettingsDlg(QWidget *parent = 0);
     ~SettingsDlg();
+    void showEvent(class QShowEvent *);
 
 private slots:
     void showAdvSettingsDlg();
     void showSelectRemoteDlg();
     void showAboutDlg();
-    void changeRemote();
+    void setRemote(Remote);
     void updateRemoteInfo();
     void rateUpClicked();
     void rateDownClicked();
+    void onNetworkStatusUpdate();
 
 private:
     void enableRateBtns(bool enable = true);
+    void processRatingSent();
+    void setBusy(bool busy = true);
 
 private:
-    QSettings settings;
-
-    QVBoxLayout *layout;
-    QHBoxLayout *btnLayout;
-    QHBoxLayout *remoteNameLayout;
-    QPushButton *advSettingsBtn;
-    QPushButton *selectRemoteBtn;
-    QPushButton *rateUpBtn;
-    QPushButton *rateDownBtn;
-    QPushButton *aboutBtn;
-    QLabel *remoteNameLabel;
-    QLabel *ratingLabel;
-    Remote *remote;
+    bool m_busy;
+    Remote m_remote;
+
+    QVBoxLayout *m_layout;
+    QHBoxLayout *m_btnLayout;
+    QHBoxLayout *m_remoteNameLayout;
+    QPushButton *m_advSettingsBtn;
+    QPushButton *m_selectRemoteBtn;
+    QPushButton *m_rateUpBtn;
+    QPushButton *m_rateDownBtn;
+    QPushButton *m_aboutBtn;
+    QLabel *m_remoteNameLabel;
+    QLabel *m_ratingLabel;
+    QTM_PREPEND_NAMESPACE(QNetworkConfigurationManager) *m_netConfMan;
 };
 
 #endif