phonebookui/pbkcommonui/inc/cntviewnavigator.h
changeset 59 a642906a277a
parent 40 b46a585f6909
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
    48     void next( const int& aId, QFlags<Hb::ViewSwitchFlag> &flags );
    48     void next( const int& aId, QFlags<Hb::ViewSwitchFlag> &flags );
    49     
    49     
    50     /*!
    50     /*!
    51      * Back view returns the previous view
    51      * Back view returns the previous view
    52      */
    52      */
    53     const int& back( QFlags<Hb::ViewSwitchFlag> &flags );
    53     const int& back( QFlags<Hb::ViewSwitchFlag> &flags, bool toRoot );
    54     
    54     
    55     /*!
    55     /*!
    56      * Add exceptions to next/back mechanism. Function will use the aBack argument
    56      * Add exceptions to next/back mechanism. Function will use the aBack argument
    57      * for previous view when aCurrent is the active view.
    57      * for previous view when aCurrent is the active view.
    58      */
    58      */
    63      * Add special view switching effects for some of the views. 
    63      * Add special view switching effects for some of the views. 
    64      */
    64      */
    65     void addEffect( const int& aCurrent, const int& aBack );
    65     void addEffect( const int& aCurrent, const int& aBack );
    66     void removeEffect( const int& aCurrent );
    66     void removeEffect( const int& aCurrent );
    67     
    67     
       
    68     /*!
       
    69      * Set a view as a root view.
       
    70      */
       
    71     void addRoot( const int& aCurrent );
       
    72     
    68 private:
    73 private:
    69     QStack<int> iViewStack;
    74     QStack<int> iViewStack;
    70     QMap< int, int > iExceptions;
    75     QMap< int, int > iExceptions;
    71     QMap< int, int > iEffects;
    76     QMap< int, int > iEffects;
       
    77     QList<int> iRoots;
    72     int iTop;
    78     int iTop;
    73 };
    79 };
    74 #endif /* CNTVIEWNAVIGATOR_H_ */
    80 #endif /* CNTVIEWNAVIGATOR_H_ */