Web page updated.
[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 class Orientation;
29
30 class MainWindow : public QMainWindow
31 {
32     Q_OBJECT
33
34 public:
35     MainWindow();
36     ~MainWindow();
37
38 signals:
39     void quit();
40
41 private slots:
42     void loadServices();
43     void minimize();
44     void openMenu();
45     void keepBacklightOn();
46     bool loadTheme();
47
48 private:
49     void addScreens();
50     void startGps();
51     void startBacklight();
52     MainWindowStack* stack_;
53     MainMenu* menu_;
54     ThemeLoader* themeLoader_;
55     WidgetScreen* mainScreen_;
56     Orientation* orientation_;
57
58 };
59
60 #endif