diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-9C5A86D2-E602-55AE-B54B-8511E70CD23D.dita --- a/Symbian3/PDK/Source/GUID-9C5A86D2-E602-55AE-B54B-8511E70CD23D.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-9C5A86D2-E602-55AE-B54B-8511E70CD23D.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,59 +1,59 @@ - - - - - -Send Dual Tone Multi Frequency (DTMF) Tutorial This tutorial describes how to send DTMF tones with the telephony API for applications. create a new instance of CTelephony use CTelephony::SendDTMFTones() to transmit a sequence of DTMF tones across the currently active call The sequence of tones is a TDesC string. It contains one or more occurrences of the numbers 0 to 9, * and #. pass the enumeration CTelephony::ESendDTMFTonesCancel to cancel the asynchronous request. Send DTMF example

This example sends the string 123456789:

#include <e32base.h> -#include <Etel3rdParty.h> - -_LIT(KTheTones, "123456789"); - -class CClientApp : public CActive - { - -private: - CTelephony* iTelephony; - -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) - { - //default constructor - } - -void CClientApp::SomeFunction() - { - iTelephony->SendDTMFTones(iStatus, KTheTones); - SetActive(); - } - -void CClientApp::RunL() - { - if(iStatus==KErrNone) - {} // The tones were sent successfully; - } - -void CClientApp::DoCancel() - { - iTelephony->CancelAsync(CTelephony::ESendDTMFTonesCancel); - } + + + + + +Send Dual Tone Multi Frequency (DTMF) Tutorial This tutorial describes how to send DTMF tones with the telephony API for applications. create a new instance of CTelephony use CTelephony::SendDTMFTones() to transmit a sequence of DTMF tones across the currently active call The sequence of tones is a TDesC string. It contains one or more occurrences of the numbers 0 to 9, * and #. pass the enumeration CTelephony::ESendDTMFTonesCancel to cancel the asynchronous request. Send DTMF example

This example sends the string 123456789:

#include <e32base.h> +#include <Etel3rdParty.h> + +_LIT(KTheTones, "123456789"); + +class CClientApp : public CActive + { + +private: + CTelephony* iTelephony; + +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) + { + //default constructor + } + +void CClientApp::SomeFunction() + { + iTelephony->SendDTMFTones(iStatus, KTheTones); + SetActive(); + } + +void CClientApp::RunL() + { + if(iStatus==KErrNone) + {} // The tones were sent successfully; + } + +void CClientApp::DoCancel() + { + iTelephony->CancelAsync(CTelephony::ESendDTMFTonesCancel); + }
\ No newline at end of file