Use constants.h to store app's constants. Created a setup dialog.
[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 <QtGui/QMainWindow>
14
15 namespace Ui {
16     class MainWindow;
17 }
18
19 class MainWindow : public QMainWindow
20 {
21     Q_OBJECT
22 public:
23     enum ScreenOrientation {
24         ScreenOrientationLockPortrait,
25         ScreenOrientationLockLandscape,
26         ScreenOrientationAuto
27     };
28
29     explicit MainWindow(QWidget *parent = 0);
30     virtual ~MainWindow();
31
32     void setOrientation(ScreenOrientation orientation);
33     void showExpanded();
34
35 private slots:
36     void on_actionSetup_triggered();
37
38 private:
39     Ui::MainWindow *ui;
40 };
41
42 #endif // MAINWINDOW_H