taskswitcher/taskswitcherui/taskswitcherapp/inc/tsappui.h
branchRCL_3
changeset 9 f966699dea19
parent 4 4d54b72983ae
child 16 9674c1a575e9
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    42                          public MTsCenrepChangeObserver,
    42                          public MTsCenrepChangeObserver,
    43                          public MGfxTransEffectObserver
    43                          public MGfxTransEffectObserver
    44     {
    44     {
    45 
    45 
    46 public:
    46 public:
       
    47     enum {
       
    48     //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
       
    49     //TODO make maping to NGA transition id
       
    50     //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
       
    51     ENoneTransition = 0,
       
    52     EForegroundTransition = 3,
       
    53     EBackgroundTransition = 4,
       
    54     EActivationTransition = 5
       
    55     
       
    56     };
    47     /**
    57     /**
    48      * Perform the second phase construction of a CTsAppUi object
    58      * Perform the second phase construction of a CTsAppUi object
    49      * this needs to be public due to the way the framework constructs the AppUi
    59      * this needs to be public due to the way the framework constructs the AppUi
    50      */
    60      */
    51     void ConstructL();
    61     void ConstructL();
    77      */
    87      */
    78     void TransitionFinished(const CCoeControl* aControl, TUint aAction);
    88     void TransitionFinished(const CCoeControl* aControl, TUint aAction);
    79     
    89     
    80     void MoveAppToForeground( TUint aTransitionType );
    90     void MoveAppToForeground( TUint aTransitionType );
    81     void MoveAppToBackground( TUint aTransitionType );
    91     void MoveAppToBackground( TUint aTransitionType );
       
    92     
       
    93     /**
       
    94      * Functions for showing/hiding popups.
       
    95      */
       
    96     void RequestPopUpL();
       
    97     void DisablePopUpL();
    82     
    98     
    83 public:
    99 public:
    84     /**
   100     /**
    85      * From MTsCenrepChangeObserver
   101      * From MTsCenrepChangeObserver
    86      */
   102      */
   137     CTsAppView* iAppView;
   153     CTsAppView* iAppView;
   138     
   154     
   139     // Listener for app key long press P&S, owned
   155     // Listener for app key long press P&S, owned
   140     CTsPropertyListener* iPropListener;
   156     CTsPropertyListener* iPropListener;
   141     
   157     
       
   158     // Listener for orientation layout changes
       
   159     CTsPropertyListener* iLayoutListener;
       
   160     
   142     // Tells if Taskswitcher is in foreground or in background
   161     // Tells if Taskswitcher is in foreground or in background
   143     TBool iForeground;
   162     TBool iForeground;
   144     
   163     
   145     // Application arch task which refers to our own app
   164     // Application arch task which refers to our own app
   146     TApaTask iApplicationTask;
   165     TApaTask iApplicationTask;
   157     
   176     
   158     /**
   177     /**
   159      * Cenrep listener for the tfxserver enabled/disabled key.
   178      * Cenrep listener for the tfxserver enabled/disabled key.
   160      */    
   179      */    
   161     CTsCenrepListener* iThemeEffectsEnabledWatcher;
   180     CTsCenrepListener* iThemeEffectsEnabledWatcher;
       
   181     
       
   182     // Owned window for showing controls
       
   183     RWindowGroup iWg;
       
   184     
       
   185     // Monitors popup mode
       
   186     TBool iIsPopUpShown;
       
   187     
   162     };
   188     };
   163 
   189 
   164 #endif // TSAPPUI_H
   190 #endif // TSAPPUI_H