--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/videocollection/tsrc/stubs/inc/hbmainwindow.h Thu Apr 01 23:22:15 2010 +0300
@@ -0,0 +1,117 @@
+/*
+* Copyright (c) 2009 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: stub hbmainwindow
+*
+*/
+
+#ifndef HBMAINWINDOW_H
+#define HBMAINWINDOW_H
+
+#include <QObject>
+#include "hbwidget.h"
+#include "hbaction.h"
+
+class HbView;
+
+class HbMainWindow : public QObject
+{
+ Q_OBJECT
+
+public:
+
+ /**
+ * constructor
+ */
+ HbMainWindow(QWidget *parent = 0, Hb::WindowFlags windowFlags = Hb::WindowFlagNone) :
+ mSoftKeyAction(0),
+ mOrientation(Qt::Vertical)
+ {
+ Q_UNUSED(parent);
+ Q_UNUSED(windowFlags);
+ }
+
+ /**
+ * destructor
+ */
+ ~HbMainWindow(){};
+
+ /**
+ * dummy
+ */
+ void addSoftKeyAction(Hb::SoftKeyId type, HbAction *action)
+ {
+ Q_UNUSED(type);
+ mSoftKeyAction = action;
+ }
+
+ void removeSoftKeyAction(Hb::SoftKeyId type, HbAction *action)
+ {
+ Q_UNUSED(type);
+ if(mSoftKeyAction == action)
+ {
+ mSoftKeyAction = 0;
+ }
+ }
+
+
+ /**
+ * returns mSoftKeyAction
+ */
+ HbAction* softKeyAction(Hb::SoftKeyId type)
+ {
+ Q_UNUSED(type);
+ return mSoftKeyAction;
+ }
+
+ HbView *addView(QGraphicsWidget *widget = 0);
+
+ void removeView(QGraphicsWidget *widget);
+
+ QList<HbView *> views() const;
+
+ HbView *currentView() const;
+
+ Qt::Orientation orientation() const
+ {
+ return mOrientation;
+ }
+
+ void setOrientation(Qt::Orientation orientation, bool animate = true)
+ {
+ Q_UNUSED(animate);
+ mOrientation = orientation;
+ }
+
+ void unsetOrientation(bool animate = true)
+ {
+ Q_UNUSED(animate);
+ mOrientation = Qt::Vertical;
+ }
+
+ /**
+ * value to return from softKeyAction
+ */
+ HbAction *mSoftKeyAction;
+
+ /**
+ * views
+ */
+ QList<HbView *> mViews;
+
+ /**
+ * orientation
+ */
+ Qt::Orientation mOrientation;
+};
+#endif