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();
private slots:
void onReadingChanged();
+ void handleManualOrientation();
private:
QtMobility::QOrientationReading::Orientation current_;
int orientations_;
QMainWindow* window_;
+ OrientationType type_;
};
#endif