Diffstat (limited to 'core/launcher/mediummountgui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/mediummountgui.cpp | 26 |
1 files changed, 25 insertions, 1 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 @@ -54,8 +54,12 @@ void MediumMountGui::readConfig(){ bool MediumMountGui::check() { return checkagain; } +QStringList MediumMountGui::dirs() { + QStringList list = QStringList::split(",", limittodirs ); + return list; +} void MediumMountGui::writeConfig() { OConfig cfg (mediumPath +"/.opiestorage.cf"); @@ -68,9 +72,24 @@ void MediumMountGui::writeConfig() { cfg.writeEntry("text",CheckBoxImage->isChecked() ); 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() { @@ -156,8 +175,13 @@ void MediumMountGui::yesPressed() { writeConfig(); // and do something } + +QStringList MediumMountGui::mimeTypes(){ + return mimeTypeList; +} + void MediumMountGui::noPressed() { close(); } |