videocollection/tsrc/stubs/inc/hbmainwindow.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 58 d2b028fd1f7d
--- a/videocollection/tsrc/stubs/inc/hbmainwindow.h	Thu Apr 01 23:32:44 2010 +0300
+++ b/videocollection/tsrc/stubs/inc/hbmainwindow.h	Fri Apr 16 18:13:14 2010 +0300
@@ -35,7 +35,9 @@
      */
     HbMainWindow(QWidget *parent = 0, Hb::WindowFlags windowFlags = Hb::WindowFlagNone) :
     mSoftKeyAction(0),
-    mOrientation(Qt::Vertical)
+    mOrientation(Qt::Vertical),
+    mOrientationSet(false),
+    mCurrentView(0)
     {
         Q_UNUSED(parent);
         Q_UNUSED(windowFlags);
@@ -44,7 +46,7 @@
     /**
      * destructor
      */
-    ~HbMainWindow(){};
+    ~HbMainWindow() {};
     
     /**
      * dummy
@@ -82,6 +84,8 @@
     
     HbView *currentView() const;
     
+    void setCurrentView(HbView *view);
+    
     Qt::Orientation orientation() const
     {
         return mOrientation;
@@ -91,16 +95,19 @@
     {
         Q_UNUSED(animate);
         mOrientation = orientation;
+        mOrientationSet = true;
     }
     
     void unsetOrientation(bool animate = true)
     {
         Q_UNUSED(animate);
         mOrientation = Qt::Vertical;
+        mOrientationSet = false;
     }
-
+    
 signals:
 
+    void aboutToChangeOrientation();
     void orientationChanged(Qt::Orientation orientation);
     
 public:
@@ -119,5 +126,13 @@
      * orientation
      */
     Qt::Orientation mOrientation;
+    
+    /**
+     * orientation set
+     */
+    bool mOrientationSet;
+    
+    HbView *mCurrentView;
+    
 };
 #endif