Changed media player to initialize in boot.
[jspeed] / src / mainwindow.h
1 /*
2  * This file is part of jSpeed.
3  *
4  * jSpeed is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * jSpeed is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with jSpeed.  If not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18
19 #ifndef MAINWINDOW_H
20 #define MAINWINDOW_H
21
22 #include <QtGui/QMainWindow>
23
24 class MainWindowStack;
25 class MainMenu;
26 class ThemeLoader;
27 class WidgetScreen;
28
29 class MainWindow : public QMainWindow
30 {
31     Q_OBJECT
32
33 public:
34     MainWindow();
35     ~MainWindow();
36
37 signals:
38     void quit();
39
40 private slots:
41     void loadServices();
42     void minimize();
43     void openMenu();
44     void keepBacklightOn();
45     bool loadTheme();
46
47 private:
48     void addScreens();
49     void startGps();
50     void startBacklight();
51     MainWindowStack* stack_;
52     MainMenu* menu_;
53     ThemeLoader* themeLoader_;
54     WidgetScreen* mainScreen_;
55
56 };
57
58 #endif