Initial commit
[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     QFile settingsFile;
36     QActionGroup *filterGroup;
37     QAction *mRandom;
38     QAction *mMultiple;
39     QHash <QString, QString> mediaFiles;
40     QListWidget *list;
41     QPushButton *up;
42     QPushButton *down;
43
44 private slots:
45     void addVideo();
46     void removeVideos();
47     void disableSelection(bool state);
48     void selectMultiple(bool state);
49     void moveUp();
50     void moveDown();
51 };
52
53 #endif // BOOTSCREEN_H