summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -55,6 +55,10 @@ bool MediumMountGui::check() {
return checkagain;
}
+QStringList MediumMountGui::dirs() {
+ QStringList list = QStringList::split(",", limittodirs );
+ return list;
+}
void MediumMountGui::writeConfig() {
@@ -69,7 +73,22 @@ void MediumMountGui::writeConfig() {
cfg.writeEntry("video",CheckBoxVideo->isChecked() );
cfg.setGroup("dirs");
- cfg.writeEntry("dirs", "/");
+ cfg.writeEntry("dirs", "/");
+
+
+ if (checkmimeaudio) {
+ mimeTypeList += ("audio//*");
+ }
+ if (checkmimetext) {
+ mimeTypeList += ("text//*");
+ }
+ if (checkmimeaudio) {
+ mimeTypeList += ("video//*");
+ }
+ if (checkmimeaudio) {
+ mimeTypeList += ("image//*");
+ }
+
}
void MediumMountGui::startGui() {
@@ -157,6 +176,11 @@ void MediumMountGui::yesPressed() {
// and do something
}
+
+QStringList MediumMountGui::mimeTypes(){
+ return mimeTypeList;
+}
+
void MediumMountGui::noPressed() {
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
@@ -38,7 +38,8 @@ protected:
public:
bool check();
-
+ QStringList mimeTypes();
+ QStringList dirs();
private:
void startGui();
void readConfig();
@@ -56,7 +57,7 @@ private:
bool checkmimetext;
bool checkmimevideo;
QString limittodirs;
-
+QStringList mimeTypeList;
};