Diffstat (limited to 'core/launcher/mediummountgui.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/launcher/mediummountgui.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/core/launcher/mediummountgui.h b/core/launcher/mediummountgui.h index 2e04f94..8292c3a 100644 --- a/core/launcher/mediummountgui.h +++ b/core/launcher/mediummountgui.h | |||
@@ -8,19 +8,20 @@ class QHBoxLayout; | |||
8 | class QGridLayout; | 8 | class QGridLayout; |
9 | class QCheckBox; | 9 | class QCheckBox; |
10 | class QGroupBox; | 10 | class QGroupBox; |
11 | class QLabel; | 11 | class QLabel; |
12 | class QLineEdit; | 12 | class QLineEdit; |
13 | class QPushButton; | 13 | class QPushButton; |
14 | class Config; | ||
14 | 15 | ||
15 | class MediumMountGui : public QDialog | 16 | class MediumMountGui : public QDialog |
16 | { | 17 | { |
17 | Q_OBJECT | 18 | Q_OBJECT |
18 | 19 | ||
19 | public: | 20 | public: |
20 | MediumMountGui( const QString &path = "tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE ,WFlags fl = 0 ); | 21 | MediumMountGui( Config *cfg, const QString &path = "tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE ,WFlags fl = 0 ); |
21 | ~MediumMountGui(); | 22 | ~MediumMountGui(); |
22 | 23 | ||
23 | protected: | 24 | protected: |
24 | QPushButton* quit; | 25 | QPushButton* quit; |
25 | QPushButton* quit_2; | 26 | QPushButton* quit_2; |
26 | QLabel* DirSelectText_2; | 27 | QLabel* DirSelectText_2; |
@@ -35,12 +36,13 @@ protected: | |||
35 | QCheckBox* CheckBoxText; | 36 | QCheckBox* CheckBoxText; |
36 | QCheckBox* CheckBoxVideo; | 37 | QCheckBox* CheckBoxVideo; |
37 | QCheckBox* CheckBoxAll; | 38 | QCheckBox* CheckBoxAll; |
38 | QCheckBox* CheckBoxLink; | 39 | QCheckBox* CheckBoxLink; |
39 | QCheckBox* AskBox; | 40 | QCheckBox* AskBox; |
40 | 41 | ||
42 | |||
41 | public: | 43 | public: |
42 | bool check(); | 44 | bool check(); |
43 | QStringList mimeTypes(); | 45 | QStringList mimeTypes(); |
44 | QStringList dirs(); | 46 | QStringList dirs(); |
45 | private: | 47 | private: |
46 | void startGui(); | 48 | void startGui(); |
@@ -51,18 +53,19 @@ private slots: | |||
51 | void yesPressed(); | 53 | void yesPressed(); |
52 | void noPressed(); | 54 | void noPressed(); |
53 | void deactivateOthers(); | 55 | void deactivateOthers(); |
54 | private: | 56 | private: |
55 | QString mediumPath; | 57 | QString mediumPath; |
56 | 58 | ||
57 | bool checkagain; | 59 | bool checkagain:1; |
58 | bool checkmimeaudio; | 60 | bool checkmimeaudio:1; |
59 | bool checkmimeimage; | 61 | bool checkmimeimage:1; |
60 | bool checkmimetext; | 62 | bool checkmimetext:1; |
61 | bool checkmimevideo; | 63 | bool checkmimevideo:1; |
62 | bool checkmimeall; | 64 | bool checkmimeall:1; |
63 | QString limittodirs; | 65 | QString limittodirs; |
64 | QStringList mimeTypeList; | 66 | QStringList mimeTypeList; |
67 | Config *m_cfg; | ||
65 | 68 | ||
66 | }; | 69 | }; |
67 | 70 | ||
68 | #endif | 71 | #endif |