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