20215c0cb350336859c3d65a1c7e796fd4478ca0
[bootcreen] / bootscreen.h
1 #include <QtGui>
2 #include <QMainWindow>
3
4 #ifndef BOOTSCREEN_H
5 #define BOOTSCREEN_H
6
7
8 struct bootConfFile {
9     QFileInfo name;
10     QFileInfo confFile;
11 };
12
13 class BootScreen : public QMainWindow
14 {
15      Q_OBJECT
16
17 public:
18     BootScreen(QWidget *parent = 0);
19     virtual ~BootScreen();
20
21 protected:
22     void closeEvent(QCloseEvent *event);
23
24 private:
25     void checkSettings();
26     void createList();
27     void writeSettings();
28     void restoreSettings();
29     void writeFiles();
30     void createFile(QString filename, int index);
31     bool random;
32     QString hildonWelcome;
33     QString settingsPath;
34     QString videosDir;
35     QString settingsDir;
36     QFile settingsFile;
37     QActionGroup *filterGroup;
38     QAction *mRandom;
39     QAction *mMultiple;
40     QHash <QString, QString> mediaFiles;
41     QListWidget *list;
42     QPushButton *up;
43     QPushButton *down;
44
45 private slots:
46     void addVideo();
47     void removeVideos();
48     void disableSelection(bool state);
49     void selectMultiple(bool state);
50     void moveUp();
51     void moveDown();
52 };
53
54 #endif // BOOTSCREEN_H