videocollection/tsrc/stubs/inc/hbmainwindow.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 58 d2b028fd1f7d
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
    33     /**
    33     /**
    34      * constructor
    34      * constructor
    35      */
    35      */
    36     HbMainWindow(QWidget *parent = 0, Hb::WindowFlags windowFlags = Hb::WindowFlagNone) :
    36     HbMainWindow(QWidget *parent = 0, Hb::WindowFlags windowFlags = Hb::WindowFlagNone) :
    37     mSoftKeyAction(0),
    37     mSoftKeyAction(0),
    38     mOrientation(Qt::Vertical)
    38     mOrientation(Qt::Vertical),
       
    39     mOrientationSet(false),
       
    40     mCurrentView(0)
    39     {
    41     {
    40         Q_UNUSED(parent);
    42         Q_UNUSED(parent);
    41         Q_UNUSED(windowFlags);
    43         Q_UNUSED(windowFlags);
    42     }
    44     }
    43     
    45     
    44     /**
    46     /**
    45      * destructor
    47      * destructor
    46      */
    48      */
    47     ~HbMainWindow(){};
    49     ~HbMainWindow() {};
    48     
    50     
    49     /**
    51     /**
    50      * dummy
    52      * dummy
    51      */
    53      */
    52     void addSoftKeyAction(Hb::SoftKeyId type, HbAction *action)
    54     void addSoftKeyAction(Hb::SoftKeyId type, HbAction *action)
    80     
    82     
    81     QList<HbView *> views() const;
    83     QList<HbView *> views() const;
    82     
    84     
    83     HbView *currentView() const;
    85     HbView *currentView() const;
    84     
    86     
       
    87     void setCurrentView(HbView *view);
       
    88     
    85     Qt::Orientation orientation() const
    89     Qt::Orientation orientation() const
    86     {
    90     {
    87         return mOrientation;
    91         return mOrientation;
    88     }
    92     }
    89     
    93     
    90     void setOrientation(Qt::Orientation orientation, bool animate = true)
    94     void setOrientation(Qt::Orientation orientation, bool animate = true)
    91     {
    95     {
    92         Q_UNUSED(animate);
    96         Q_UNUSED(animate);
    93         mOrientation = orientation;
    97         mOrientation = orientation;
       
    98         mOrientationSet = true;
    94     }
    99     }
    95     
   100     
    96     void unsetOrientation(bool animate = true)
   101     void unsetOrientation(bool animate = true)
    97     {
   102     {
    98         Q_UNUSED(animate);
   103         Q_UNUSED(animate);
    99         mOrientation = Qt::Vertical;
   104         mOrientation = Qt::Vertical;
       
   105         mOrientationSet = false;
   100     }
   106     }
   101 
   107     
   102 signals:
   108 signals:
   103 
   109 
       
   110     void aboutToChangeOrientation();
   104     void orientationChanged(Qt::Orientation orientation);
   111     void orientationChanged(Qt::Orientation orientation);
   105     
   112     
   106 public:
   113 public:
   107     
   114     
   108     /**
   115     /**
   117     
   124     
   118     /**
   125     /**
   119      * orientation
   126      * orientation
   120      */
   127      */
   121     Qt::Orientation mOrientation;
   128     Qt::Orientation mOrientation;
       
   129     
       
   130     /**
       
   131      * orientation set
       
   132      */
       
   133     bool mOrientationSet;
       
   134     
       
   135     HbView *mCurrentView;
       
   136     
   122 };
   137 };
   123 #endif
   138 #endif