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;
QPushButton *aboutBtn;
QLabel *remoteNameLabel;
QLabel *ratingLabel;
+ Remote *remote;
};
#endif