phoneuis/easydialing/inc/easydialingplugin.h
branchRCL_3
changeset 25 91c2fb4b78df
parent 19 544e34b3255a
child 34 b68fcd923911
equal deleted inserted replaced
19:544e34b3255a 25:91c2fb4b78df
    83                            public MCCAObserver,
    83                            public MCCAObserver,
    84                            public MEasyDialingCenrepListenerObserver,
    84                            public MEasyDialingCenrepListenerObserver,
    85                            public MContactDataManagerObserver,
    85                            public MContactDataManagerObserver,
    86                            public MEDContactorObserver,
    86                            public MEDContactorObserver,
    87                            public MEikListBoxObserver,
    87                            public MEikListBoxObserver,
    88                            public MAknInputBlockCancelHandler
    88                            public MAknInputBlockCancelHandler,
       
    89                            public MCoeForegroundObserver
    89 {
    90 {
    90 public:
    91 public:
    91 
    92 
    92     /**
    93     /**
    93     * Static constructor. 
    94     * Static constructor. 
   272     /**
   273     /**
   273     * From MAknInputBlockCancelHandler.
   274     * From MAknInputBlockCancelHandler.
   274     */
   275     */
   275     void AknInputBlockCancel();
   276     void AknInputBlockCancel();
   276 
   277 
       
   278     /**
       
   279     * From MCoeForegroundObserver.
       
   280     */
       
   281     void HandleGainingForeground();
       
   282     
       
   283     /**
       
   284     * From MCoeForegroundObserver.
       
   285     */
       
   286     void HandleLosingForeground();
   277 
   287 
   278 private:
   288 private:
   279 
   289 
   280     /**
   290     /**
   281     * Constructor.
   291     * Constructor.
   372         ECallCurrentContact,
   382         ECallCurrentContact,
   373         EVideoCallCurrentContact,
   383         EVideoCallCurrentContact,
   374         ESendMessageCurrentContact,
   384         ESendMessageCurrentContact,
   375         ELaunchCurrentContact,
   385         ELaunchCurrentContact,
   376         ELaunchSearch,
   386         ELaunchSearch,
   377         EInitializePcs
   387         EInitializePcs,
       
   388         ESimulateKeyEvent
   378         };
   389         };
       
   390     
       
   391     /**
       
   392      * Simulates a key event asynchronously
       
   393      */
       
   394     void AsyncSimulateKeyEvent( const TKeyEvent& aKeyEvent );
   379     
   395     
   380     /**
   396     /**
   381      * Initiates asynchronous callback to launch action and sets
   397      * Initiates asynchronous callback to launch action and sets
   382      * input blocker active. 
   398      * input blocker active. 
   383      */
   399      */
   384     void AsyncActionLaunchL( const TEasyDialingAction aAction );
   400     void AsyncActionLaunchL( TEasyDialingAction aAction );
   385        
   401     
   386     /**
   402     /**
   387      * Callback for CAsyncCallBack. Launches action set in iActionToBeLaunched
   403      * Callback for CAsyncCallBack. Launches action set in iActionToBeLaunched
   388      * and stops input block when launch is done.
   404      * and stops input block when launch is done.
   389      */
   405      */
   390     static TInt AsyncCallBackToLaunchAction( TAny* aPtr );
   406     static TInt AsyncCallBackToLaunchAction( TAny* aPtr );
   411     
   427     
   412     /**
   428     /**
   413      * Makes contact listbox invisible. Effect is used if feasible.
   429      * Makes contact listbox invisible. Effect is used if feasible.
   414      */  
   430      */  
   415     void HideContactListBoxWithEffect();
   431     void HideContactListBoxWithEffect();
       
   432     
       
   433     /**
       
   434      * Checks if listbox effect can be triggered. Eg checks if 
       
   435      * app is in the foreground.
       
   436      */  
       
   437     TBool CanListBoxEffectBeUsed() const;
   416 
   438 
   417 
   439 
   418 private:
   440 private:
   419 
   441 
   420     /** Textual version of current search string. */
   442     /** Textual version of current search string. */
   492     /** Used to launch action asynchronously. Owned.*/
   514     /** Used to launch action asynchronously. Owned.*/
   493     CAsyncCallBack* iAsyncCallBack;
   515     CAsyncCallBack* iAsyncCallBack;
   494     
   516     
   495     /** Action to be launched next asynchronously. */
   517     /** Action to be launched next asynchronously. */
   496     TEasyDialingAction iActionToBeLaunched;
   518     TEasyDialingAction iActionToBeLaunched;
       
   519     
       
   520     /** Key event to be simulated asynchronously. */
       
   521     TKeyEvent iKeyEventToSimulate;
       
   522     
       
   523     /** Is virtual keyboard currently open or not.*/
       
   524     TBool iVirtualKeyboardOpen;
       
   525     
   497 };
   526 };
   498 
   527 
   499 
   528 
   500 #endif //__CEASYDIALINGPLUGIN_H__
   529 #endif //__CEASYDIALINGPLUGIN_H__
   501 
   530