phoneuis/easydialing/inc/easydialingplugin.h
branchRCL_3
changeset 81 c26cc2a7c548
parent 62 5266b1f337bd
equal deleted inserted replaced
73:e30d4a1b8bad 81:c26cc2a7c548
    56 
    56 
    57 // FORWARD DECLARATIONS
    57 // FORWARD DECLARATIONS
    58 
    58 
    59 class CPSRequestHandler;
    59 class CPSRequestHandler;
    60 class CPsQuery;
    60 class CPsQuery;
       
    61 class CVPbkContactStoreUriArray;
       
    62 class CVPbkContactManager;
    61 class CEasyDialingListBox;
    63 class CEasyDialingListBox;
    62 class MVPbkContactLink;
    64 class MVPbkContactLink;
    63 class CEasyDialingCenrepListener;
    65 class CEasyDialingCenrepListener;
    64 class CEasyDialingContactDataManager;
    66 class CEasyDialingContactDataManager;
    65 class CEDContactorService;
    67 class CEDContactorService;
    92     
    94     
    93     /**
    95     /**
    94     * Destructor. 
    96     * Destructor. 
    95     */
    97     */
    96     virtual ~CEasyDialingPlugin();
    98     virtual ~CEasyDialingPlugin();
    97     
    99 
    98 public: // from CCoeControl 
   100 public: // from CCoeControl 
    99 
   101 
   100     /**
   102     /**
   101     * From CCoeControl.
   103     * From CCoeControl.
   102     */
   104     */
   114     
   116     
   115     /**
   117     /**
   116     * From CCoeControl
   118     * From CCoeControl
   117     */
   119     */
   118     void MakeVisible( TBool aVisible );
   120     void MakeVisible( TBool aVisible );
   119     
   121  
   120     /**
   122     /**
   121     * From CCoeControl
   123     * From CCoeControl
   122     */
   124     */
   123     void HandleResourceChange( TInt aType );
   125     void HandleResourceChange( TInt aType );
   124 
   126 
   209      * Tells if extension is currently enabled from settings.
   211      * Tells if extension is currently enabled from settings.
   210      * @return  ETrue if extension is enabled, EFalse otherwise.
   212      * @return  ETrue if extension is enabled, EFalse otherwise.
   211      */
   213      */
   212     TBool IsEnabled() const;
   214     TBool IsEnabled() const;
   213 
   215 
   214     /**
       
   215      * Tells if extension is currently enabled from settings.
       
   216      * @return  ETrue if extension is enabled, EFalse otherwise.
       
   217      */
       
   218     void SetKeyboardMode( TKeyboardMode aMode );
       
   219     
       
   220 public:
   216 public:
   221 
   217 
   222     /**
   218     /**
   223     * From MEasyDialingCenrepListenerObserver.
   219     * From MEasyDialingCenrepListenerObserver.
   224     */
   220     */
   226     
   222     
   227     /**
   223     /**
   228     * From MEasyDialingCenrepListenerObserver.
   224     * From MEasyDialingCenrepListenerObserver.
   229     */
   225     */
   230     void EasyDialingContactThumbnailsSettingsChanged( TInt aThumbnailSettingValue );
   226     void EasyDialingContactThumbnailsSettingsChanged( TInt aThumbnailSettingValue );
   231     
   227         
   232     /**
   228     /**
   233     * From MContactDataManagerObserver.
   229     * From MContactDataManagerObserver.
   234     */
   230     */
   235     void AllContactDataLoaded();
   231     void AllContactDataLoaded();
   236     
   232     
   243     * From MContactDataManagerObserver.
   239     * From MContactDataManagerObserver.
   244     */
   240     */
   245     void FavouritesChanged();
   241     void FavouritesChanged();
   246     
   242     
   247     /**
   243     /**
   248     * From MContactDataManagerObserver.
       
   249     */
       
   250     void StoreConfigurationChanged();
       
   251     
       
   252     /**
       
   253     * From MEDContactorObserver.
   244     * From MEDContactorObserver.
   254     */
   245     */
   255     void InformContactorEvent( MEDContactorObserver::TEvent aEvent );
   246     void InformContactorEvent( MEDContactorObserver::TEvent aEvent );
   256     
   247     
   257     /**
   248     /**
   285     * Second phase constructor.
   276     * Second phase constructor.
   286     */
   277     */
   287     void ConstructL ();
   278     void ConstructL ();
   288     
   279     
   289     void InitPredictiveContactSearchL();
   280     void InitPredictiveContactSearchL();
   290     
       
   291     void SetupPcsSettingsL();
       
   292     
   281     
   293     void SetSortOrderL( CEasyDialingContactDataManager::TNameOrder aNameOrder );
   282     void SetSortOrderL( CEasyDialingContactDataManager::TNameOrder aNameOrder );
   294     
   283     
   295     /**
   284     /**
   296     * From MPsResultsObserver.
   285     * From MPsResultsObserver.
   455     TBool iNewSearchNeeded;
   444     TBool iNewSearchNeeded;
   456     
   445     
   457     /** Array of used data stores. Owned. */
   446     /** Array of used data stores. Owned. */
   458     RPointerArray<TDesC> iContactDataStores;
   447     RPointerArray<TDesC> iContactDataStores;
   459     
   448     
       
   449     /** Contact store array. Owned. */
       
   450     CVPbkContactStoreUriArray* iContactStoreUriArray;
       
   451     
       
   452     /** Contact manager handle. Owned. */
       
   453     CVPbkContactManager* iContactManager;
       
   454 	
   460     /** Search result field index for first name field. */
   455     /** Search result field index for first name field. */
   461     TInt iFirstNamePCSIndex;
   456     TInt iFirstNamePCSIndex;
   462     
   457     
   463     /** Search result field index for last name field. */
   458     /** Search result field index for last name field. */
   464     TInt iLastNamePCSIndex;
   459     TInt iLastNamePCSIndex;
   520     /** Key event to be simulated asynchronously. */
   515     /** Key event to be simulated asynchronously. */
   521     TKeyEvent iKeyEventToSimulate;
   516     TKeyEvent iKeyEventToSimulate;
   522     
   517     
   523     /** Is virtual keyboard currently open or not.*/
   518     /** Is virtual keyboard currently open or not.*/
   524     TBool iVirtualKeyboardOpen;
   519     TBool iVirtualKeyboardOpen;
   525     
   520 
   526     /** First line of info text shown when number entry is empty. Owned. */
   521     /** First line of info text shown when number entry is empty. Owned. */
   527     HBufC* iInfoLabelTextLine1;
   522     HBufC* iInfoLabelTextLine1;
   528     
   523     
   529     /** Second line of info text shown when number entry is empty. Owned. */
   524     /** Second line of info text shown when number entry is empty. Owned. */
   530     HBufC* iInfoLabelTextLine2;
   525     HBufC* iInfoLabelTextLine2;
   533     CEikLabel* iInfoLabelLine1;
   528     CEikLabel* iInfoLabelLine1;
   534     
   529     
   535     /** Label for showing second line of info text when number entry is empty. Owned. */
   530     /** Label for showing second line of info text when number entry is empty. Owned. */
   536     CEikLabel* iInfoLabelLine2;
   531     CEikLabel* iInfoLabelLine2;
   537     
   532     
   538     /** Keyboard mode to be used in matching. */
   533     /** 'Flag' if contact have been long tapped, so ECE launcher opens. Long tap contact = True, default = False */
   539     TKeyboardMode iKeyboardMode;
       
   540 	
       
   541 	/** 'Flag' if contact have been long tapped, so ECE launcher opens. Long tap contact = True, default = False */
       
   542     TBool iLongTapped;
   534     TBool iLongTapped;
       
   535 
   543 };
   536 };
   544 
   537 
   545 
   538 
   546 #endif //__CEASYDIALINGPLUGIN_H__
   539 #endif //__CEASYDIALINGPLUGIN_H__
   547 
   540