Complete rewrite. Does not work yet.
[irwi] / src / settingsdlg.h
index e6cf6db..a8e0079 100644 (file)
@@ -2,24 +2,42 @@
 #define SETTINGSDLG_H
 
 #include <QDialog>
-#include <QString>
 
+class QWidget;
 class QHBoxLayout;
-class QListWidget;
+class QVBoxLayout;
+class QPushButton;
+class QLabel;
+class IEngine;
 
 class SettingsDlg : public QDialog
 {
     Q_OBJECT
 public:
-    SettingsDlg(QWidget *parent = 0);
+    SettingsDlg(QWidget *parent, IEngine *engine);
     ~SettingsDlg();
 
-    QString& getRemoteName();
+public slots:
+    void updateRemoteName();
+
+private slots:
+    void showAdvSettingsDlg();
+    void showSelectRemoteDlg();
+    void showAboutDlg();
+    void setRating(int);
 
 private:
-    QHBoxLayout *layout;
-    QString remoteName;
-    QListWidget *alphabetList;
+    IEngine *engine;
+    QVBoxLayout *layout;
+    QHBoxLayout *btnLayout;
+    QHBoxLayout *remoteNameLayout;
+    QPushButton *advSettingsBtn;
+    QPushButton *selectRemoteBtn;
+    QPushButton *rateUpBtn;
+    QPushButton *rateDownBtn;
+    QPushButton *aboutBtn;
+    QLabel *remoteNameLabel;
+    QLabel *ratingLabel;
 };
 
 #endif