emailuis/emailui/inc/FreestyleEmailUiContactHandler.h
branchRCL_3
changeset 73 c8382f7b54ef
parent 64 3533d4323edc
child 80 726fba06891a
equal deleted inserted replaced
70:968773a0b6ef 73:c8382f7b54ef
   257 	 * Results are returned to observer
   257 	 * Results are returned to observer
   258 	 *
   258 	 *
   259 	 * @param aObserver = observer to collect results
   259 	 * @param aObserver = observer to collect results
   260 	 */
   260 	 */
   261 	void GetAddressesFromPhonebookL( MFSEmailUiContactHandlerObserver* aObserver );
   261 	void GetAddressesFromPhonebookL( MFSEmailUiContactHandlerObserver* aObserver );
   262 	
   262 
   263     // <cmail> video call
       
   264     /**
   263     /**
   265      * Enables/disables video call.
   264      * Enables/disables video call.
   266      *
   265      *
   267      * @param aState ETrue for 'enable', EFalse for 'disable'
   266      * @param aState ETrue for 'enable', EFalse for 'disable'
   268      */
   267      */
   269     void SetVideoCall( TBool aState );
   268     void SetVideoCall( TBool aState );
   270     // </cmail>
       
   271 
   269 
   272 // from base class MFSEmailUiClsListsObserver
   270 // from base class MFSEmailUiClsListsObserver
   273 
   271 
   274     void ArrayUpdatedL( const RPointerArray<CFSEmailUiClsItem>& aMatchingItems );	
   272     void ArrayUpdatedL( const RPointerArray<CFSEmailUiClsItem>& aMatchingItems );	
   275     void OperationErrorL( TInt aErrorCode );
   273     void OperationErrorL( TInt aErrorCode );
   276     
   274     
   277 // from base class MVPbkSingleContactOperationObserver
   275 // from base class MVPbkSingleContactOperationObserver
   278 
   276 
   279     void VPbkSingleContactOperationCompleteL(
   277     void VPbkSingleContactOperationCompleteL(
   280     		    MVPbkContactOperationBase& aOperation,
   278         MVPbkContactOperationBase& aOperation, MVPbkStoreContact* aContact );
   281     		    MVPbkStoreContact* aContact );
   279     void VPbkSingleContactOperationComplete(
   282     
   280         MVPbkContactOperationBase& aOperation, MVPbkStoreContact* aContact );
   283     
   281 
   284 	void VPbkSingleContactOperationComplete(
   282     void VPbkSingleContactOperationFailedL(
   285 	    MVPbkContactOperationBase& aOperation,
   283         MVPbkContactOperationBase& aOperation, TInt aError );
   286 	    MVPbkStoreContact* aContact );
   284     void VPbkSingleContactOperationFailed(
   287 	
   285         MVPbkContactOperationBase& aOperation, TInt aError );
   288 	void VPbkSingleContactOperationFailedL(
       
   289 		    MVPbkContactOperationBase& aOperation, TInt aError );
       
   290 	void VPbkSingleContactOperationFailed(
       
   291 	    MVPbkContactOperationBase& aOperation, TInt aError );
       
   292 
   286 
   293 // from base class MVPbkContactStoreListObserver
   287 // from base class MVPbkContactStoreListObserver
   294 
   288 
   295      /**
   289      /**
   296       * From MVPbkContactStoreListObserver  
   290       * From MVPbkContactStoreListObserver  
   344 	void ClearObservers();
   338 	void ClearObservers();
   345       
   339       
   346 // from MCCAObserver      
   340 // from MCCAObserver      
   347     void CCASimpleNotifyL( TNotifyType aType, TInt aReason );
   341     void CCASimpleNotifyL( TNotifyType aType, TInt aReason );
   348       
   342       
       
   343     TUid GetDetailsViewUid();
       
   344     TUid GetDetailsAppUid();
       
   345     TBool WasDetailsClosed();
       
   346     void CloseContactDetailsL();
       
   347     void ReopenContactDetailsL(RWsSession&);
       
   348 
   349 private:
   349 private:
   350     
   350     
   351     CFSEmailUiContactHandler( RFs& aSession );
   351     CFSEmailUiContactHandler( RFs& aSession );
   352     
   352     
   353     void ConstructL( RFs& aSession );
   353     void ConstructL( RFs& aSession );
   354     
   354     
   355 // <cmail> call observer's MFSEmailUiContactHandlerObserver::OperationErrorL( TContactHandlerCmd aCmd, TInt aError ) 
   355 // <cmail> call observer's MFSEmailUiContactHandlerObserver::OperationErrorL( TContactHandlerCmd aCmd, TInt aError ) 
   356     void ObserverOperationErrorL( TContactHandlerCmd aCmd, TInt aErrorCode );
   356     void ObserverOperationErrorL( TContactHandlerCmd aCmd, TInt aErrorCode );
   357     
       
   358 
   357 
   359 private:
   358 private:
   360     
   359 
   361 	TInt SelectBetweenCsAndVoip() const;
   360     TInt SelectBetweenCsAndVoip() const;
   362     void HandleCallL( const RPointerArray<CFSEmailUiClsItem>& aMatchingItems );
   361     void HandleCallL( const RPointerArray<CFSEmailUiClsItem>& aMatchingItems );
   363     
   362 
   364 	void CreateMessageL( const RPointerArray<CFSEmailUiClsItem>& aMatchingItems );
   363     void CreateMessageL( const RPointerArray<CFSEmailUiClsItem>& aMatchingItems );
   365 	void SendMessageL( CAiwGenericParamList& aEventParamList, TInt aServiceType );
   364     void SendMessageL( CAiwGenericParamList& aEventParamList, TInt aServiceType );
   366  	void GetSmsAddressFromPhonebookAndSendL( MVPbkContactLink* aContactLink );
   365     void GetSmsAddressFromPhonebookAndSendL( MVPbkContactLink* aContactLink );
   367 	void GetMmsAddressFromPhonebookAndSendL( MVPbkContactLink* aContactLink, TBool aIsVoiceMessage = EFalse );
   366     void GetMmsAddressFromPhonebookAndSendL( MVPbkContactLink* aContactLink,
   368  
   367         TBool aIsVoiceMessage = EFalse );
       
   368 
       
   369     // Starts retrieving addresses from contact stores.
       
   370     void RetrieveContactsL();
       
   371 
   369     TBool IsRemoteLookupSupported();
   372     TBool IsRemoteLookupSupported();
   370     
   373     
   371     void GetContactFieldsL( RArray<TInt>& aFieldIds, RPointerArray<HBufC>& aNumbers, 
   374     void GetContactFieldsL( RArray<TInt>& aFieldIds, RPointerArray<HBufC>& aNumbers, 
   372     					   MVPbkStoreContact* aContact );
   375     					   MVPbkStoreContact* aContact );
   373     
   376     
   454     TBool iCachingInProgressError;
   457     TBool iCachingInProgressError;
   455     
   458     
   456     // Flag for making video call
   459     // Flag for making video call
   457     TBool iVideoCall;
   460     TBool iVideoCall;
   458 
   461 
       
   462     // flag to check if it was remotely closed (using CloseContactDetailsL method)
       
   463     TBool iContactDetailsClosed;
       
   464     
   459     // connection to CCMA launcher    
   465     // connection to CCMA launcher    
   460     MCCAConnection* iConnection;
   466     MCCAConnection* iConnection;
   461 
   467 
   462     CEikonEnv* iEnv;
   468     CEikonEnv* iEnv;
   463 };
   469 };