summaryrefslogtreecommitdiff
path: root/core/launcher/mediummountgui.h
blob: 2e04f947f939b9645ad45cb7d80e0d04d043013c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef MEDIUMMOUNTGUI_H
#define MEDIUMMOUNTGUI_H

#include <qvariant.h>
#include <qdialog.h>
class QVBoxLayout; 
class QHBoxLayout; 
class QGridLayout; 
class QCheckBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;

class MediumMountGui : public QDialog
{ 
    Q_OBJECT

public:
    MediumMountGui( const QString &path = "tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE    ,WFlags fl = 0 );
    ~MediumMountGui();

protected:    
    QPushButton* quit;
    QPushButton* quit_2;
    QLabel* DirSelectText_2;
    QLineEdit* LineEdit1;
    QPushButton* PushButton3;
    QLabel* DirSelectText;
    QLabel* Text_2;
    QLabel* Text;
    QGroupBox* GroupBox1;
    QCheckBox* CheckBoxAudio;
    QCheckBox* CheckBoxImage;
    QCheckBox* CheckBoxText;
    QCheckBox* CheckBoxVideo;
    QCheckBox* CheckBoxAll;
    QCheckBox* CheckBoxLink;
    QCheckBox* AskBox;

public:
    bool check();
    QStringList mimeTypes();
    QStringList dirs();
private:
    void startGui();
    void readConfig();
    void writeConfig(bool checkagain);	

private slots:
    void yesPressed();
    void noPressed();
    void deactivateOthers();
 private:
    QString mediumPath;

    bool checkagain; 
    bool checkmimeaudio;
    bool checkmimeimage;
    bool checkmimetext;
    bool checkmimevideo;
    bool checkmimeall;
    QString limittodirs;
    QStringList mimeTypeList;

};

#endif