summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/mediummountgui.cpp24
-rw-r--r--core/launcher/mediummountgui.h5
2 files changed, 27 insertions, 2 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
@@ -57,2 +57,6 @@ bool MediumMountGui::check() {
+QStringList MediumMountGui::dirs() {
+ QStringList list = QStringList::split(",", limittodirs );
+ return list;
+}
@@ -72,2 +76,17 @@ void MediumMountGui::writeConfig() {
cfg.writeEntry("dirs", "/");
+
+
+ if (checkmimeaudio) {
+ mimeTypeList += ("audio//*");
+ }
+ if (checkmimetext) {
+ mimeTypeList += ("text//*");
+ }
+ if (checkmimeaudio) {
+ mimeTypeList += ("video//*");
+ }
+ if (checkmimeaudio) {
+ mimeTypeList += ("image//*");
+ }
+
}
@@ -159,2 +178,7 @@ void MediumMountGui::yesPressed() {
+
+QStringList MediumMountGui::mimeTypes(){
+ return mimeTypeList;
+}
+
void MediumMountGui::noPressed() {
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
@@ -40,3 +40,4 @@ public:
bool check();
-
+ QStringList mimeTypes();
+ QStringList dirs();
private:
@@ -58,3 +59,3 @@ private:
QString limittodirs;
-
+QStringList mimeTypeList;