cc73b04b9214034e7a733b67c311e95b2ae1775b
[vlp.git] / src / kernel / options.h
1 #ifndef _VLP_KERNEL_OPTIONS_H
2 #define _VLP_KERNEL_OPTIONS_H
3
4 #include <QtGui/QDialog>
5
6 #include "ui/optionsdialog.h"
7
8 namespace loglan {
9 namespace vlp {
10
11 /**
12  * Options Dialog class
13  */
14 class OptionsDialog : public QDialog, private Ui::OptionsDialog {
15         Q_OBJECT
16 public:
17         OptionsDialog(QString configFilePath, QWidget * parent = 0);
18         ~OptionsDialog();
19
20         void saveConfig(QString fname);
21         void saveConfig(const char * fname);
22
23 private:
24         QString homeDir;
25
26         void loadConfig(const char * fname);
27
28 private slots:
29         void on_addConnectionButton_clicked();
30         void on_delConnectionButton_clicked();
31 };
32
33 }
34 }
35
36 #endif /* _VLP_KERNEL_OPTIONS_H */