#define SETTINGSDLG_H
#include <QDialog>
-#include <QString>
+#include <QSettings>
+#include "remote.h"
+
+class QWidget;
class QHBoxLayout;
-class QListWidget;
-class QListWidgetItem;
-class QSettings;
-class QNetworkAccessManager;
-class QNetworkReply;
+class QVBoxLayout;
+class QPushButton;
+class QLabel;
+class Remote;
class SettingsDlg : public QDialog
{
~SettingsDlg();
private slots:
- void alphabetItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
- void mfgItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
- void modelItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
- void mfgListDownloadFinished(QNetworkReply *reply);
+ void showAdvSettingsDlg();
+ void showSelectRemoteDlg();
+ void showAboutDlg();
+ void setRemote(Remote);
+ void setRemote(const QString &name);
+ void updateRemoteInfo();
+ void rateUpClicked();
+ void rateDownClicked();
+
+private:
+ void enableRateBtns(bool enable = true);
+ void processRemoteChange();
+ void processRatingSent();
+ void setBusy(bool busy = true);
private:
- QHBoxLayout *layout;
- QListWidget *alphabetList;
- QListWidget *mfgList;
- QListWidget *modelList;
- QSettings *settings;
- QNetworkAccessManager *netAM;
+ 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;
};
#endif