taskswitcher/taskswitcherui/taskswitcherapp/inc/tsappui.h
branchRCL_3
changeset 34 d05a55b217df
parent 30 b8fae6b8a148
child 47 7be2816dbabd
equal deleted inserted replaced
30:b8fae6b8a148 34:d05a55b217df
    49     //TODO make maping to NGA transition id
    49     //TODO make maping to NGA transition id
    50     //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    50     //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    51     ENoneTransition = 0,
    51     ENoneTransition = 0,
    52     EForegroundTransition = 3,
    52     EForegroundTransition = 3,
    53     EBackgroundTransition = 4,
    53     EBackgroundTransition = 4,
    54     EActivationTransition = 5
    54     EActivationTransition = 5,
       
    55     EActivationAppShowTransition = 1507,
    55     
    56     
    56     };
    57     };
    57     /**
    58     /**
    58      * Perform the second phase construction of a CTsAppUi object
    59      * Perform the second phase construction of a CTsAppUi object
    59      * this needs to be public due to the way the framework constructs the AppUi
    60      * this needs to be public due to the way the framework constructs the AppUi
    78     TBool EffectsEnabled() const;
    79     TBool EffectsEnabled() const;
    79     
    80     
    80     /**
    81     /**
    81      * Function start transition  
    82      * Function start transition  
    82      */
    83      */
    83     void StartTransion( TUint aTransitionType );
    84     void StartTransion( TUint aTransitionType,
       
    85             TUid aNextAppUid = TUid::Null(),
       
    86             TInt aWgId = 0 );
    84     
    87     
    85     /**
    88     /**
    86      * from MGfxTransEffectObserver
    89      * from MGfxTransEffectObserver
    87      */
    90      */
    88     void TransitionFinished(const CCoeControl* aControl, TUint aAction);
    91     void TransitionFinished(const CCoeControl* aControl, TUint aAction);
    89     
    92     
    90     void MoveAppToForeground( TUint aTransitionType );
    93     void MoveAppToForeground( TUint aTransitionType );
    91     void MoveAppToBackground( TUint aTransitionType );
    94     void MoveAppToBackground( TUint aTransitionType,
       
    95             TUid aAppUid = TUid::Null(),
       
    96             TInt aWgId = 0 );
    92     
    97     
    93     /**
    98     /**
    94      * Functions for showing/hiding popups.
    99      * Functions for showing/hiding popups.
    95      */
   100      */
    96     void RequestPopUpL();
   101     void RequestPopUpL();
   115 
   120 
   116     // From CEikAppUi
   121     // From CEikAppUi
   117     void HandleResourceChangeL( TInt aType );
   122     void HandleResourceChangeL( TInt aType );
   118     void HandleForegroundEventL( TBool aForeground );
   123     void HandleForegroundEventL( TBool aForeground );
   119     void HandleCommandL( TInt aCommand );
   124     void HandleCommandL( TInt aCommand );
       
   125     void HandleWsEventL(const TWsEvent& aEvent,
       
   126             CCoeControl* aDestination);
   120     
   127     
   121     void StartTransition( TUint aTranstionId,
   128     void StartTransition( TUint aTranstionId,
   122                           TBool aVisibility,
   129                           TBool aVisibility,
   123                           TBool aLayers, 
   130                           TBool aLayers, 
   124                           TUint aSubCom );
   131                           TUint aSubCom );
       
   132     
       
   133     void StartAppActivateTransition( TUid aNextAppUid, TInt aWgId );
   125 
   134 
   126 private: // New functions
   135 private: // New functions
   127     
   136     
   128     /**
   137     /**
   129      * Called from HandleForegroundEventL if the app came to foreground.
   138      * Called from HandleForegroundEventL if the app came to foreground.
   147      * Sends request for close some 
   156      * Sends request for close some 
   148      * other apps to free memory for 
   157      * other apps to free memory for 
   149      * task switcher app
   158      * task switcher app
   150      */
   159      */
   151     void FreeMemoryRequest();
   160     void FreeMemoryRequest();
       
   161     
       
   162     /**
       
   163      * Returns id of window group lying beneath task
       
   164      * switcher window group. 
       
   165      * In case of embeded app it returns top paren window group.
       
   166      * 
       
   167      * @param  aIgnoreParentChild  if set to ETrue, parent/child relationship
       
   168      *                             will be ignored when deteriminig window
       
   169      *                             group id
       
   170      */
       
   171     TInt WgIdOfUnderlyingApp( TBool aIgnoreParentChild );
   152 
   172 
   153     static TInt GoToBackgroundTimerCallback( TAny* aParam );
   173     static TInt GoToBackgroundTimerCallback( TAny* aParam );
       
   174     
       
   175     /*
       
   176      * Returns id of top parent window group for embeded window group.
       
   177      * @param aChildWg embeded window group id
       
   178      * @return top parent window group id or 0 in case od standlalone 
       
   179      */
       
   180     TInt GetTopParentWg( TInt aChildWg);
       
   181 
       
   182     /*
       
   183      * Returns id of parent window group for embeded window group.
       
   184      * @param aChildWg embeded window group id
       
   185      * @return parent window group id or 0 in case od standlalone 
       
   186      */
       
   187     TInt GetParentWg( TInt aChildWg );
   154 
   188 
   155 private:
   189 private:
   156 
   190 
   157     // Taskswitcher application view, owned
   191     // Taskswitcher application view, owned
   158     CTsAppView* iAppView;
   192     CTsAppView* iAppView;
   189     
   223     
   190     // For starting in background
   224     // For starting in background
   191     TBool iUiStarted;
   225     TBool iUiStarted;
   192     TBool iDisableAppKeyHandling;
   226     TBool iDisableAppKeyHandling;
   193     
   227     
       
   228     TInt iUnderAppWgId;
       
   229     
   194     };
   230     };
   195 
   231 
   196 #endif // TSAPPUI_H
   232 #endif // TSAPPUI_H