diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-4B885E13-AC1E-5208-9F07-E6219E214626.dita --- a/Symbian3/PDK/Source/GUID-4B885E13-AC1E-5208-9F07-E6219E214626.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-4B885E13-AC1E-5208-9F07-E6219E214626.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,86 +1,86 @@ - - - - - -Call -Forward Status TutorialThis tutorial describes how to get the call forward status information -with the telephony API for applications. - - -

The call forward information is only available on the GSM and -the WCDMA networks.

- - -create a new instance of CTelephony - - -call CTelephony::GetCallForwardingStatus() to -get the call forward status information -pass a CTelephony::TCallForwardingCondition object - - -you can cancel the asynchronous request with a CTelephony::EGetCallForwardingStatusCancel enumeration. - - -Call forward -status example #include <e32base.h> -#include <Etel3rdParty.h> - -class CClientApp : public CActive - { - -private: - CTelephony* iTelephony; - CTelephony::TCallForwardingSupplServicesV1 iCallForwardingSupplServicesV1; - CTelephony::TCallForwardingSupplServicesV1Pckg iCallForwardingSupplServicesV1Pckg; - -public: - CClientApp(CTelephony* aTelephony); - void SomeFunction(); - -private: - /* - These are the pure virtual methods from CActive that - MUST be implemented by all active objects - */ - void RunL(); - void DoCancel(); - }; - -CClientApp::CClientApp(CTelephony* aTelephony) - : CActive(EPriorityStandard), - iTelephony(aTelephony), - iCallForwardingSupplServicesV1Pckg(iCallForwardingSupplServicesV1) - { - //default constructor - } - -void CClientApp::SomeFunction() - { - CTelephony::TCallForwardingCondition condition = CTelephony::ECallForwardingNoReply; - iTelephony->GetCallForwardingStatus(iStatus, condition, iCallForwardingSupplServicesV1Pckg); - SetActive(); - } - -void CClientApp::RunL() - { - if(iStatus==KErrNone) - { - if( iCallForwardingSupplServicesV1.iCallForwarding == CTelephony::ENotActive ) - {} // The call forwarding condition is inactive; - // If the phone user does not answer a call then the call is _not_ forwarded - } - } - -void CClientApp::DoCancel() - { - iTelephony->CancelAsync(CTelephony::EGetCallForwardingStatusCancel); - } + + + + + +Call +Forward Status TutorialThis tutorial describes how to get the call forward status information +with the telephony API for applications. + + +

The call forward information is only available on the GSM and +the WCDMA networks.

+ + +create a new instance of CTelephony + + +call CTelephony::GetCallForwardingStatus() to +get the call forward status information +pass a CTelephony::TCallForwardingCondition object + + +you can cancel the asynchronous request with a CTelephony::EGetCallForwardingStatusCancel enumeration. + + +Call forward +status example #include <e32base.h> +#include <Etel3rdParty.h> + +class CClientApp : public CActive + { + +private: + CTelephony* iTelephony; + CTelephony::TCallForwardingSupplServicesV1 iCallForwardingSupplServicesV1; + CTelephony::TCallForwardingSupplServicesV1Pckg iCallForwardingSupplServicesV1Pckg; + +public: + CClientApp(CTelephony* aTelephony); + void SomeFunction(); + +private: + /* + These are the pure virtual methods from CActive that + MUST be implemented by all active objects + */ + void RunL(); + void DoCancel(); + }; + +CClientApp::CClientApp(CTelephony* aTelephony) + : CActive(EPriorityStandard), + iTelephony(aTelephony), + iCallForwardingSupplServicesV1Pckg(iCallForwardingSupplServicesV1) + { + //default constructor + } + +void CClientApp::SomeFunction() + { + CTelephony::TCallForwardingCondition condition = CTelephony::ECallForwardingNoReply; + iTelephony->GetCallForwardingStatus(iStatus, condition, iCallForwardingSupplServicesV1Pckg); + SetActive(); + } + +void CClientApp::RunL() + { + if(iStatus==KErrNone) + { + if( iCallForwardingSupplServicesV1.iCallForwarding == CTelephony::ENotActive ) + {} // The call forwarding condition is inactive; + // If the phone user does not answer a call then the call is _not_ forwarded + } + } + +void CClientApp::DoCancel() + { + iTelephony->CancelAsync(CTelephony::EGetCallForwardingStatusCancel); + }
\ No newline at end of file