X-Git-Url: http://git.maemo.org/git/?p=jspeed;a=blobdiff_plain;f=src%2Forientation.h;h=5848f22663d0ad7959839b3bfd006d20efcda516;hp=193f687f5633f95733b4004331783dc56949999c;hb=36d7905fbbcc49571fef5b7769707441f344d179;hpb=5cc39ab8c690baf4e2b189ec189890834e63badc diff --git a/src/orientation.h b/src/orientation.h index 193f687..5848f22 100644 --- a/src/orientation.h +++ b/src/orientation.h @@ -29,8 +29,10 @@ class Orientation : public QtMobility::QOrientationSensor public: enum OrientationName {LANDSCAPE = 0x01, PORTRAIT = 0x02}; + enum OrientationType {TYPE_AUTO, TYPE_LANDSCAPE, TYPE_PORTRAIT}; Orientation(QMainWindow* window); void setSupportedOrientations(int orientations); + void setOrientationType(OrientationType type); public slots: void update(); @@ -40,11 +42,13 @@ signals: private slots: void onReadingChanged(); + void handleManualOrientation(); private: QtMobility::QOrientationReading::Orientation current_; int orientations_; QMainWindow* window_; + OrientationType type_; }; #endif