mainwindow.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
  3. * All rights reserved.
  4. * This component and the accompanying materials are made available
  5. * under the terms of "Eclipse Public License v1.0"
  6. * which accompanies this distribution, and is available
  7. * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. *
  9. * Initial Contributors:
  10. * Nokia Corporation - initial contribution.
  11. *
  12. * Contributors:
  13. *
  14. * Description: Part of Qt NFC Setting sample application.
  15. */
  16. // checksum 0x9a77 version 0x30001
  17. /*
  18. This file was generated by the Mobile Qt Application wizard of Qt Creator.
  19. MainWindow is a convenience class containing mobile device specific code
  20. such as screen orientation handling.
  21. It is recommended not to modify this file, since newer versions of Qt Creator
  22. may offer an updated version of it.
  23. */
  24. #ifndef MAINWINDOW_H
  25. #define MAINWINDOW_H
  26. #include <QtGui/QMainWindow>
  27. namespace Ui {
  28. class MainWindow;
  29. }
  30. class MainWindow : public QMainWindow
  31. {
  32. Q_OBJECT
  33. public:
  34. enum ScreenOrientation {
  35. ScreenOrientationLockPortrait,
  36. ScreenOrientationLockLandscape,
  37. ScreenOrientationAuto
  38. };
  39. explicit MainWindow(QWidget *parent = 0);
  40. virtual ~MainWindow();
  41. void setOrientation(ScreenOrientation orientation);
  42. void showExpanded();
  43. private:
  44. Ui::MainWindow *ui;
  45. };
  46. #endif // MAINWINDOW_H