turn app into a control panel applet
[bootcreen] / src / 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 createFile(QString filename, int index);
30     bool random;
31     QString hildonWelcome;
32     QString settingsPath;
33     QString videosDir;
34     QString settingsDir;
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     QPushButton *save;
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     void saveConfs();
53     void setPendingChanges(QListWidgetItem* item);
54 };
55
56 #endif // BOOTSCREEN_H