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