X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=pirpreferencesform.h;fp=pirpreferencesform.h;h=322bbf428c5d2a904b10226e4a013892deb8ce61;hb=04d45dab5c6b32e9214fa21b7ade432da95c8a98;hp=b3089ea95679751a629a156a570bad43af318103;hpb=7176298055beaf1a9ad8f9fd1099f93df3461265;p=pierogi diff --git a/pirpreferencesform.h b/pirpreferencesform.h index b3089ea..322bbf4 100644 --- a/pirpreferencesform.h +++ b/pirpreferencesform.h @@ -4,6 +4,7 @@ #include class MainWindow; +class PIRKeysetManager; namespace Ui { class PIRPreferencesForm; @@ -14,16 +15,35 @@ class PIRPreferencesForm : public QWidget Q_OBJECT public: - explicit PIRPreferencesForm(QWidget *parent = 0); + PIRPreferencesForm( + QWidget *parent, + const PIRKeysetManager *keysetManager); + ~PIRPreferencesForm(); + + unsigned int getDefaultKeyset() + { + return defaultKeyset; + } + + bool defaultControlsVolume() + { + return useDefaultForVolume; + } private slots: + void on_setDefaultButton_clicked(); + void on_clearDefaultButton_clicked(); + void on_useDefaultCheckBox_stateChanged(int arg1); void on_altMainCheckBox_stateChanged(int arg1); private: Ui::PIRPreferencesForm *ui; MainWindow *mainWindow; + + unsigned int defaultKeyset; + bool useDefaultForVolume; }; #endif // PIRPREFERENCESFORM_H