orientation.h 653 B

12345678910111213141516171819202122232425262728293031
  1. #include <QtGui/QMainWindow>
  2. #ifndef ORIENTATION_H
  3. #define ORIENTATION_H
  4. class Orientation
  5. {
  6. public:
  7. enum ScreenOrientation {
  8. ScreenOrientationLockPortrait,
  9. ScreenOrientationLockLandscape,
  10. ScreenOrientationAuto
  11. };
  12. enum ShowMode {
  13. ShowModeFullScreen,
  14. ShowModeMaximized,
  15. ShowModeNormal
  16. };
  17. /*explicit Orientation();
  18. virtual ~Orientation();*/
  19. // Note that this will only have an effect on Symbian and Fremantle.
  20. static Qt::WidgetAttribute setOrientation(ScreenOrientation orientation);
  21. static int showMode();
  22. };
  23. #endif // ORIENTATION_H