4 #include <QtCore/QSettings>
6 #include <QtGui/QMainWindow>
7 #include <QtGui/QMenuBar>
9 #include <QtSensors/QAccelerometer>
12 #include <QtDBus/QtDBus>
15 // Neccessary for Qt Mobility API usage
18 #include "ameterwidget.h"
20 class MainWindow : public QMainWindow
24 enum ScreenOrientation {
25 ScreenOrientationLockPortrait,
26 ScreenOrientationLockLandscape,
30 explicit MainWindow(QWidget *parent = 0);
31 virtual ~MainWindow();
33 // Note that this will only have an effect on Symbian and Fremantle.
34 void setOrientation(ScreenOrientation orientation);
42 void screenChange(const QDBusMessage &message);
46 QAccelerometer *accelerometer;
47 AMeterWidget *awidget;
49 QDBusInterface *dBusInterface;
53 #endif // MAINWINDOW_H