summaryrefslogtreecommitdiff
path: root/core/launcher/mediummountgui.h
blob: 9802b29887dcb641b65b6971b229428af98826fc (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
#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* AskBox;

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

private slots:
    void yesPressed();
    void noPressed();

private:
    QString mediumPath;

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

};

#endif