5fd22b3d63de9c067fb99cc29b43a22e467db923
[simple-xmbc-rem] / src / mainwindow.h
1 // checksum 0x9a77 version 0x20001
2 /*
3   This file was generated by the Mobile Qt Application wizard of Qt Creator.
4   MainWindow is a convenience class containing mobile device specific code
5   such as screen orientation handling.
6   It is recommended not to modify this file, since newer versions of Qt Creator
7   may offer an updated version of it.
8 */
9
10 #ifndef MAINWINDOW_H
11 #define MAINWINDOW_H
12
13 #include <QMainWindow>
14
15 #ifdef Q_WS_MAEMO_5
16 #include <QSystemScreenSaver>
17 QTM_USE_NAMESPACE
18 #endif
19
20 #include "xbmc.h"
21
22 namespace Ui {
23     class MainWindow;
24 }
25
26 class MainWindow : public QMainWindow
27 {
28     Q_OBJECT
29 public:
30     enum ScreenOrientation {
31         ScreenOrientationLockPortrait,
32         ScreenOrientationLockLandscape,
33         ScreenOrientationAuto
34     };
35
36     explicit MainWindow(QWidget *parent = 0);
37     virtual ~MainWindow();
38
39     void setOrientation(ScreenOrientation orientation);
40     void showExpanded();
41
42 private slots:
43     void on_actionSetup_triggered();
44
45     void on_rightBtn_clicked();
46     void on_leftBtn_clicked();
47     void on_upBtn_clicked();
48     void on_downBtn_clicked();
49     void on_selectButton_clicked();
50
51     void on_playBtn_clicked();
52     void on_stopBtn_clicked();
53
54     void on_muteBtn_clicked();
55     void on_volumeUpBtn_clicked();
56     void on_volumeDownBtn_clicked();
57
58     void on_nextSubtitleBtn_clicked();
59     void on_nextLanguageBtn_clicked();
60
61     void on_showGuiBtn_clicked();
62     void on_contextMenuBtn_clicked();
63     void on_sendEscKeyBtn_clicked();
64
65 private:
66     Ui::MainWindow *m_ui;
67     Xbmc* m_xbmc;
68
69 #ifdef Q_WS_MAEMO_5
70     QSystemScreenSaver* m_screenSaver;
71 #endif
72
73     void setupScreen();
74 };
75
76 #endif // MAINWINDOW_H