summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/mediummountgui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp
index f375236..eb2308e 100644
--- a/core/launcher/mediummountgui.cpp
+++ b/core/launcher/mediummountgui.cpp
@@ -1,67 +1,67 @@
1 1
2#include "mediummountgui.h" 2#include "mediummountgui.h"
3 3
4#include <qvariant.h> 4#include <qvariant.h>
5#include <qcheckbox.h> 5#include <qcheckbox.h>
6#include <qgroupbox.h> 6#include <qgroupbox.h>
7#include <qlabel.h> 7#include <qlabel.h>
8#include <qlineedit.h> 8#include <qlineedit.h>
9#include <qpushbutton.h> 9#include <qpushbutton.h>
10#include <qlayout.h> 10#include <qlayout.h>
11#include <qtooltip.h> 11#include <qtooltip.h>
12#include <qwhatsthis.h> 12#include <qwhatsthis.h>
13#include <qimage.h> 13#include <qimage.h>
14#include <qpixmap.h> 14#include <qpixmap.h>
15 15
16#include <qpe/resource.h> 16#include <qpe/resource.h>
17#include <qpe/config.h> 17#include <qpe/config.h>
18 18
19#include <opie/oconfig.h> 19#include <qpe/config.h>
20 20
21 21
22#include <qapplication.h> 22#include <qapplication.h>
23 23
24 24
25MediumMountGui::MediumMountGui( Config *cfg, const QString &path ,QWidget* parent, const char* name, bool , WFlags ) 25MediumMountGui::MediumMountGui( Config *cfg, const QString &path ,QWidget* parent, const char* name, bool , WFlags )
26 : QDialog( parent, name, true ) { 26 : QDialog( parent, name, true ) {
27 27
28 m_cfg = cfg; 28 m_cfg = cfg;
29 QWidget *d = QApplication::desktop(); 29 QWidget *d = QApplication::desktop();
30 int w=d->width(); 30 int w=d->width();
31 int h=d->height(); 31 int h=d->height();
32 resize( w , h ); 32 resize( w , h );
33 setCaption( tr( "Medium inserted" ) ); 33 setCaption( tr( "Medium inserted" ) );
34 34
35 mediumPath = path; 35 mediumPath = path;
36 readConfig(); 36 readConfig();
37 startGui(); 37 startGui();
38} 38}
39 39
40void MediumMountGui::readConfig(){ 40void MediumMountGui::readConfig(){
41 41
42 //OConfig cfg (mediumPath +"/.opiestorage.cf"); 42 //OConfig cfg (mediumPath +"/.opiestorage.cf");
43 m_cfg->setGroup("main"); 43 m_cfg->setGroup("main");
44 checkagain = m_cfg->readBoolEntry("check", false); 44 checkagain = m_cfg->readBoolEntry("check", false);
45 45
46 m_cfg->setGroup("mimetypes"); 46 m_cfg->setGroup("mimetypes");
47 checkmimeaudio = m_cfg->readBoolEntry("audio", true ); 47 checkmimeaudio = m_cfg->readBoolEntry("audio", true );
48 checkmimeimage = m_cfg->readBoolEntry("image", true ); 48 checkmimeimage = m_cfg->readBoolEntry("image", true );
49 checkmimetext = m_cfg->readBoolEntry("text" , true ); 49 checkmimetext = m_cfg->readBoolEntry("text" , true );
50 checkmimevideo = m_cfg->readBoolEntry("video", true ); 50 checkmimevideo = m_cfg->readBoolEntry("video", true );
51 checkmimeall = m_cfg->readBoolEntry("all" , false); 51 checkmimeall = m_cfg->readBoolEntry("all" , false);
52 52
53 m_cfg->setGroup("dirs"); 53 m_cfg->setGroup("dirs");
54 limittodirs = m_cfg->readEntry("dirs", ""); 54 limittodirs = m_cfg->readEntry("dirs", "");
55} 55}
56 56
57bool MediumMountGui::check() { 57bool MediumMountGui::check() {
58 return !checkagain; 58 return !checkagain;
59} 59}
60 60
61QStringList MediumMountGui::dirs() { 61QStringList MediumMountGui::dirs() {
62 QStringList list = QStringList::split(",", limittodirs ); 62 QStringList list = QStringList::split(",", limittodirs );
63 return list; 63 return list;
64} 64}
65 65
66void MediumMountGui::writeConfig(bool autocheck) { 66void MediumMountGui::writeConfig(bool autocheck) {
67 67