summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-03-22 15:34:21 (UTC)
committer harlekin <harlekin>2002-03-22 15:34:21 (UTC)
commit3e2720971a92079e56f61ad257ef6c2df2a2b0b4 (patch) (unidiff)
tree4aba55be8c0c8b1fad2efd1bd362e1a1f68715a2
parenta25901e13435a44576229bbda344aedf138863b0 (diff)
downloadopie-3e2720971a92079e56f61ad257ef6c2df2a2b0b4.zip
opie-3e2720971a92079e56f61ad257ef6c2df2a2b0b4.tar.gz
opie-3e2720971a92079e56f61ad257ef6c2df2a2b0b4.tar.bz2
more stuff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/mediummountgui.cpp26
-rw-r--r--core/launcher/mediummountgui.h5
2 files changed, 28 insertions, 3 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp
index 2454efa..8307eb6 100644
--- a/core/launcher/mediummountgui.cpp
+++ b/core/launcher/mediummountgui.cpp
@@ -56,4 +56,8 @@ bool MediumMountGui::check() {
56} 56}
57 57
58QStringList MediumMountGui::dirs() {
59 QStringList list = QStringList::split(",", limittodirs );
60 return list;
61}
58 62
59void MediumMountGui::writeConfig() { 63void MediumMountGui::writeConfig() {
@@ -70,5 +74,20 @@ void MediumMountGui::writeConfig() {
70 74
71 cfg.setGroup("dirs"); 75 cfg.setGroup("dirs");
72 cfg.writeEntry("dirs", "/"); 76 cfg.writeEntry("dirs", "/");
77
78
79 if (checkmimeaudio) {
80 mimeTypeList += ("audio//*");
81 }
82 if (checkmimetext) {
83 mimeTypeList += ("text//*");
84 }
85 if (checkmimeaudio) {
86 mimeTypeList += ("video//*");
87 }
88 if (checkmimeaudio) {
89 mimeTypeList += ("image//*");
90 }
91
73} 92}
74 93
@@ -158,4 +177,9 @@ void MediumMountGui::yesPressed() {
158} 177}
159 178
179
180QStringList MediumMountGui::mimeTypes(){
181 return mimeTypeList;
182}
183
160void MediumMountGui::noPressed() { 184void MediumMountGui::noPressed() {
161 close(); 185 close();
diff --git a/core/launcher/mediummountgui.h b/core/launcher/mediummountgui.h
index 700a922..a7f3701 100644
--- a/core/launcher/mediummountgui.h
+++ b/core/launcher/mediummountgui.h
@@ -39,5 +39,6 @@ protected:
39public: 39public:
40 bool check(); 40 bool check();
41 41 QStringList mimeTypes();
42 QStringList dirs();
42private: 43private:
43 void startGui(); 44 void startGui();
@@ -57,5 +58,5 @@ private:
57 bool checkmimevideo; 58 bool checkmimevideo;
58QString limittodirs; 59QString limittodirs;
59 60QStringList mimeTypeList;
60 61
61}; 62};