Minor fixes
[qtrapids] / src / client / PreferencesDialog.h
index c368ea0..c2aa812 100644 (file)
 
 class QAbstractButton;
 class QLineEdit;
+class QSpinBox;
 class QDialogButtonBox;
 
+class QtRapidsServer;
+
+
 /**
        @author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
 */
 class PreferencesDialog : public QDialog
 {
-       
+
        Q_OBJECT
-               
-       public:
-    PreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
-
-    ~PreferencesDialog();
-
-       private slots:
-               void on_browseDirButtonClicked();
-               void on_buttonClicked(QAbstractButton* button);
-               void on_downloadDirectorySelected(const QString& directory);
-               
-       private:
-               QLineEdit *dirLineEdit_;
-               QDialogButtonBox *dialogButtons_;
-               QSettings settings_;
-               
-               // Private functions:
-               void WriteSettings();
-               void ReadSettings();
+
+public:
+       PreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0, QtRapidsServer *server = 0);
+
+       ~PreferencesDialog();
+
+private slots:
+       void on_browseDirButtonClicked();
+       void on_buttonClicked(QAbstractButton* button);
+       void on_downloadDirectorySelected(QString directory);
+
+private:
+       QLineEdit *dirLineEdit_;
+       QDialogButtonBox *dialogButtons_;
+       QSpinBox *uploadRateSpinBox_, *downloadRateSpinBox_;
+       
+       QtRapidsServer *server_;
+
+       QSettings settings_;
+
+private:
+       // Private functions:
+       void WriteSettings();
+       void ReadSettings();
 };
 
 #endif