1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*
- * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description: Part of Qt NFC Setting sample application.
- */
- // checksum 0x9a77 version 0x30001
- /*
- This file was generated by the Mobile Qt Application wizard of Qt Creator.
- MainWindow is a convenience class containing mobile device specific code
- such as screen orientation handling.
- It is recommended not to modify this file, since newer versions of Qt Creator
- may offer an updated version of it.
- */
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QtGui/QMainWindow>
- namespace Ui {
- class MainWindow;
- }
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- enum ScreenOrientation {
- ScreenOrientationLockPortrait,
- ScreenOrientationLockLandscape,
- ScreenOrientationAuto
- };
- explicit MainWindow(QWidget *parent = 0);
- virtual ~MainWindow();
- void setOrientation(ScreenOrientation orientation);
- void showExpanded();
- private:
- Ui::MainWindow *ui;
- };
- #endif // MAINWINDOW_H
|