phoneapp/phoneuivoipextension/inc/cphonecustomizationvoip.h
changeset 21 92ab7f8d0eab
parent 0 5f000ab63145
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
    18 
    18 
    19 #ifndef C_CPHONECUSTOMIZATIONVOIP_H
    19 #ifndef C_CPHONECUSTOMIZATIONVOIP_H
    20 #define C_CPHONECUSTOMIZATIONVOIP_H
    20 #define C_CPHONECUSTOMIZATIONVOIP_H
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <SettingsInternalCRKeys.h>
    23 #include <settingsinternalcrkeys.h>
    24 #include <telmenuextension.h>
    24 #include <telmenuextension.h>
    25 #include <spdefinitions.h>
    25 #include <spdefinitions.h>
    26 #include "mphonecustomization.h"
    26 #include "mphonecustomization.h"
    27 #include "mphonebuttoncustomization.h"
    27 #include "mphonebuttoncustomization.h"
    28 
    28 
    35 class CPhoneStateUtilsVoip;
    35 class CPhoneStateUtilsVoip;
    36 class CPhoneUnattendedTransferCmdHandler;
    36 class CPhoneUnattendedTransferCmdHandler;
    37 class CPhoneNewCallCmdHandler;
    37 class CPhoneNewCallCmdHandler;
    38 class CEikMenuPaneItem;
    38 class CEikMenuPaneItem;
    39 class CCoeEnv;
    39 class CCoeEnv;
    40 class CPhoneVccHandler;
    40 // <-- QT PHONE START -->
       
    41 //class CPhoneVccHandler;
       
    42 // <-- QT PHONE END -->
    41 class CPhoneCallForwardQueryHandler;
    43 class CPhoneCallForwardQueryHandler;
    42 
    44 
    43 // CONSTANTS
    45 // CONSTANTS
    44 
    46 
    45 const TInt KMaxVoIPServiceName = 100;
    47 const TInt KMaxVoIPServiceName = 100;
    75         * @return an instance of class CPhoneCustomizationVoip
    77         * @return an instance of class CPhoneCustomizationVoip
    76         */
    78         */
    77         static CPhoneCustomizationVoip* NewL( 
    79         static CPhoneCustomizationVoip* NewL( 
    78             MPhoneStateMachine& aStateMachine,
    80             MPhoneStateMachine& aStateMachine,
    79             MPhoneViewCommandHandle& aViewCommandHandle );
    81             MPhoneViewCommandHandle& aViewCommandHandle );
    80     	
    82         
    81 // from base class MPhoneCustomization  
    83 // from base class MPhoneCustomization  
    82     	
    84         
    83         /**
    85         /**
    84         * From MPhoneCustomization.
    86         * From MPhoneCustomization.
    85         * Customizes menu bar.
    87         * Customizes menu bar.
    86         * @param    aResourceId     Menu bar resource identifier.
    88         * @param    aResourceId     Menu bar resource identifier.
    87         * @param    aMenuBar        Menu bar.
    89         * @param    aMenuBar        Menu bar.
   167         * @param aNumber   Number/Address 
   169         * @param aNumber   Number/Address 
   168         */
   170         */
   169         void HandleDialL( const TDesC& aNumber );
   171         void HandleDialL( const TDesC& aNumber );
   170 
   172 
   171 // from base class MPhoneButtonCustomization
   173 // from base class MPhoneButtonCustomization
   172         
   174 // <-- QT PHONE START -->         
   173         /**
   175         /**
   174         * From MPhoneButtonCustomization.
   176         * From MPhoneButtonCustomization.
   175         * Customizes touch pane buttons.
   177         * Customizes touch pane buttons.
   176         * @param aTouchPane Interface to add and dimm
   178         * @param aTouchPane Interface to add and dimm
   177         *                   bubble touch pane buttons.
   179         *                   bubble touch pane buttons.
   178         */
   180         */
   179         void CustomizeTouchPaneButtons(
   181         void CustomizeTouchPaneButtons(
   180                         MBubbleTouchPaneInterface& aTouchPane );
   182                         /*MBubbleTouchPaneInterface& aTouchPane*/ );
   181         
   183 // <-- QT PHONE END -->         
   182     protected:
   184     protected:
   183 
   185 
   184         CPhoneCustomizationVoip( 
   186         CPhoneCustomizationVoip( 
   185             MPhoneStateMachine& aStateMachine,
   187             MPhoneStateMachine& aStateMachine,
   186             MPhoneViewCommandHandle& aViewCommandHandle );
   188             MPhoneViewCommandHandle& aViewCommandHandle );
   203         * Get the service provider name
   205         * Get the service provider name
   204         * @param aServiceId The service, whose name is requested
   206         * @param aServiceId The service, whose name is requested
   205         * @param aServiceName On return, contains the service name
   207         * @param aServiceName On return, contains the service name
   206         */
   208         */
   207         void GetVoipServiceNameL( TServiceId aServiceId, TDes& aServiceName ) const;
   209         void GetVoipServiceNameL( TServiceId aServiceId, TDes& aServiceName ) const;
   208     	
   210         
   209         /**
   211         /**
   210     	* Modifies menu when there is active call.
   212         * Modifies menu when there is active call.
   211     	* @param aResourceId Menu resource id.
   213         * @param aResourceId Menu resource id.
   212     	* @param aMenuPane Menu pane
   214         * @param aMenuPane Menu pane
   213     	*/
   215         */
   214         void ModifyInCallMenuL( TInt aResourceId, CEikMenuPane& aMenuPane );
   216         void ModifyInCallMenuL( TInt aResourceId, CEikMenuPane& aMenuPane );
   215         
   217         
   216         /**
   218         /**
   217     	 * Modifies menu when there is dialer/number entry shown.
   219          * Modifies menu when there is dialer/number entry shown.
   218     	 * 
   220          * 
   219     	 * @param   aResourceId     Menu pane resource identifier.
   221          * @param   aResourceId     Menu pane resource identifier.
   220          * @param   aMenuPane       Menu pane.
   222          * @param   aMenuPane       Menu pane.
   221     	 */
   223          */
   222         void ModifyNumberAcquisitionMenuL( 
   224         void ModifyNumberAcquisitionMenuL( 
   223             TInt aResourceId, CEikMenuPane& aMenuPane );
   225             TInt aResourceId, CEikMenuPane& aMenuPane );
   224         
   226         
   225         /**
   227         /**
   226          * Inserts "Internet call" menu item to the given menu pane.
   228          * Inserts "Internet call" menu item to the given menu pane.
   238          * @param   aMenuPane       Menu pane. 
   240          * @param   aMenuPane       Menu pane. 
   239          */
   241          */
   240         void InsertTextInputModeChangeMenuItemL( CEikMenuPane& aMenuPane );
   242         void InsertTextInputModeChangeMenuItemL( CEikMenuPane& aMenuPane );
   241         
   243         
   242         /**
   244         /**
   243     	* Resolves active calls from phoneengine.
   245         * Resolves active calls from phoneengine.
   244     	* @param aArray Active call array.
   246         * @param aArray Active call array.
   245     	*/
   247         */
   246         void GetActiveCallArrayL( 
   248         void GetActiveCallArrayL( 
   247                 RArray<CTelMenuExtension::TCallInfo>& aArray );
   249                 RArray<CTelMenuExtension::TCallInfo>& aArray );
   248         
   250         
   249         /**
   251         /**
   250     	* Resolves most active call.
   252         * Resolves most active call.
   251     	* This is used to determine which plug-in customizes menu pane 
   253         * This is used to determine which plug-in customizes menu pane 
   252     	* and handles command.
   254         * and handles command.
   253     	* @param aArray Active call array.
   255         * @param aArray Active call array.
   254     	*/
   256         */
   255         TInt ResolveMostActiveCallL( 
   257         TInt ResolveMostActiveCallL( 
   256                 const RArray<CTelMenuExtension::TCallInfo>& aArray );
   258                 const RArray<CTelMenuExtension::TCallInfo>& aArray );
   257 
   259 
   258         /**
   260         /**
   259          * Returns service id for activest call
   261          * Returns service id for activest call
   281         * @param    aFeature A feature to be checked.
   283         * @param    aFeature A feature to be checked.
   282         * @return   ETrue if feature supported.
   284         * @return   ETrue if feature supported.
   283         */  
   285         */  
   284         TBool CheckFeatureSupportByCallTypeL( 
   286         TBool CheckFeatureSupportByCallTypeL( 
   285                 TFeature aFeature );
   287                 TFeature aFeature );
   286         
   288 
       
   289 // <-- QT PHONE START -->         
   287         /**
   290         /**
   288         * Customizes touch pane buttons by extension.
   291         * Customizes touch pane buttons by extension.
   289         * @leave KErrNotFound if extension not found.
   292         * @leave KErrNotFound if extension not found.
   290         * @param aTouchPane Interface to add and dimm
   293         * @param aTouchPane Interface to add and dimm
   291         *                   bubble touch pane buttons.
   294         *                   bubble touch pane buttons.
   292         */
   295         */
   293         void CustomizeTouchPaneUsingExtensionL(
   296         /*void CustomizeTouchPaneUsingExtensionL(
   294                         MBubbleTouchPaneInterface& aTouchPane );
   297                         MBubbleTouchPaneInterface& aTouchPane );*/
   295         
   298 // <-- QT PHONE END --> 
       
   299 
   296         /**
   300         /**
   297         * Shows "Enabling %U service" wait note 
   301         * Shows "Enabling %U service" wait note 
   298         */
   302         */
   299         void LaunchEnablingServiceNoteL();
   303         void LaunchEnablingServiceNoteL();
   300          
   304          
   365         * @return  Phone number
   369         * @return  Phone number
   366         */
   370         */
   367         HBufC* PhoneNumberFromEntryLC() const;
   371         HBufC* PhoneNumberFromEntryLC() const;
   368         
   372         
   369     private: // Data
   373     private: // Data
   370 		        
   374                 
   371         /** 
   375         /** 
   372          * Control environment.
   376          * Control environment.
   373          */
   377          */
   374         CCoeEnv& iCoeEnv;
   378         CCoeEnv& iCoeEnv;
   375         
   379         
   405         CPhoneNewCallCmdHandler* iNewCallCmdHandler;
   409         CPhoneNewCallCmdHandler* iNewCallCmdHandler;
   406         
   410         
   407         /**
   411         /**
   408          * Pointer to VCC handler
   412          * Pointer to VCC handler
   409          */
   413          */
   410         CPhoneVccHandler* iVccHandler; 
   414         // <-- QT PHONE START -->
       
   415         //CPhoneVccHandler* iVccHandler;
       
   416         // <-- QT PHONE END -->
   411 
   417 
   412         /**
   418         /**
   413          * Call forward handler.
   419          * Call forward handler.
   414          */
   420          */
   415         CPhoneCallForwardQueryHandler* iCallForwardHandler;
   421         CPhoneCallForwardQueryHandler* iCallForwardHandler;
   416 		
   422         
   417     };
   423     };
   418 
   424 
   419 #endif // C_CPHONECUSTOMIZATIONVOIP_H
   425 #endif // C_CPHONECUSTOMIZATIONVOIP_H
   420 
   426 
   421 // End of File
   427 // End of File