examples/QtQuick/statusnotificationqmlexample/qmlapplicationviewer/qmlapplicationviewer.h

00001 /*
00002 * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
00003 * All rights reserved.
00004 * This software, including documentation is protected by copyright controlled
00005 * by Nokia Corporation. Copying, including reproducing, storing, adapting or
00006 * translating, any or all of this material can only be done in accordance
00007 * with the Nokia Symbian License version 1.0 (or any subsequent update) or 
00008 * any other license terms expressly agreed between you and Nokia.
00009 * This material contains Nokia's confidential information which
00010 * may not be disclosed to others without the prior written consent of Nokia.
00011 *
00012 * Initial Contributors:
00013 * Nokia Corporation - initial contribution.
00014 *
00015 * Contributors:
00016 *
00017 * Description:
00018 *
00019 */
00020 // checksum 0x5a59 version 0x3000a
00021 /*
00022   This file was generated by the Qt Quick Application wizard of Qt Creator.
00023   QmlApplicationViewer is a convenience class containing mobile device specific
00024   code such as screen orientation handling. Also QML paths and debugging are
00025   handled here.
00026   It is recommended not to modify this file, since newer versions of Qt Creator
00027   may offer an updated version of it.
00028 */
00029 
00030 #ifndef QMLAPPLICATIONVIEWER_H
00031 #define QMLAPPLICATIONVIEWER_H
00032 
00033 #include <QtDeclarative/QDeclarativeView>
00034 
00035 class QmlApplicationViewer : public QDeclarativeView
00036 {
00037     Q_OBJECT
00038 
00039 public:
00040     enum ScreenOrientation {
00041         ScreenOrientationLockPortrait,
00042         ScreenOrientationLockLandscape,
00043         ScreenOrientationAuto
00044     };
00045 
00046     explicit QmlApplicationViewer(QWidget *parent = 0);
00047     virtual ~QmlApplicationViewer();
00048 
00049     void setMainQmlFile(const QString &file);
00050     void addImportPath(const QString &path);
00051     void setOrientation(ScreenOrientation orientation);
00052     void showExpanded();
00053 
00054 private:
00055     class QmlApplicationViewerPrivate *m_d;
00056 };
00057 
00058 #endif // QMLAPPLICATIONVIEWER_H

Generated by  doxygen 1.6.2