SettingsDlg implementation
[irwi] / src / settingsdlg.h
index a8e0079..25fbab9 100644 (file)
@@ -8,26 +8,28 @@ class QHBoxLayout;
 class QVBoxLayout;
 class QPushButton;
 class QLabel;
-class IEngine;
+class Remote;
 
 class SettingsDlg : public QDialog
 {
     Q_OBJECT
 public:
-    SettingsDlg(QWidget *parent, IEngine *engine);
+    SettingsDlg(QWidget *parent = 0);
     ~SettingsDlg();
 
-public slots:
-    void updateRemoteName();
-
 private slots:
     void showAdvSettingsDlg();
     void showSelectRemoteDlg();
     void showAboutDlg();
-    void setRating(int);
+    void changeRemote(const QString &name);
+    void updateRemoteInfo();
+    void rateUpClicked();
+    void rateDownClicked();
+
+private:
+    void enableRateBtns(bool enable = true);
 
 private:
-    IEngine *engine;
     QVBoxLayout *layout;
     QHBoxLayout *btnLayout;
     QHBoxLayout *remoteNameLayout;
@@ -38,6 +40,7 @@ private:
     QPushButton *aboutBtn;
     QLabel *remoteNameLabel;
     QLabel *ratingLabel;
+    Remote *remote;
 };
 
 #endif