#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include #include QTM_USE_NAMESPACE namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: enum ScreenOrientation { ScreenOrientationLockPortrait, ScreenOrientationLockLandscape, ScreenOrientationAuto }; explicit MainWindow(QWidget *parent = 0); virtual ~MainWindow(); // Note that this will only have an effect on Symbian and Fremantle. void setOrientation(ScreenOrientation orientation); void showExpanded(); public slots: void setMagnetometerValue( void ); private: Ui::MainWindow *ui; void setupGeneral(void); //Magnetometer QMagnetometer *mag_sensor; QMagnetometerReading *mag_reading; }; #endif // MAINWINDOW_H