×
Namespaces

Variants
Actions

How to Mute a Ringing tone in 3rd edition Devices?

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: eswar_illuri (23 May 2007)
Last edited: hamishwillee (31 Jul 2012)

When a call arrives, its ringing tone can be muted with Phone Client Extension API, part of the API extension plug-in package for S60 3rd Edition.

3rd party Telephony API (CTelephony) can be used for observing incoming call events.

Required Capabilities:WriteDeviceData

Header File

    #include <RPhCltServer.h>   // link against PhoneClient.lib
 
#include <PhCltExt.h> // link against PhoneClientExt.lib
 
...
 
RPhCltServer iPhoneClientServer;
 
RLibrary iLibrary;
 
CPhCltCommandHandler* iPhCommandHandler;

Source File

 _LIT(KPhoneCltExDllName, "PhoneClientExt.dll");
 
User::LeaveIfError( iPhoneClientServer.Connect() );
 
User::LeaveIfError( iLibrary.Load(KPhoneCltExDllName) );
 
TInt res = iLibrary.Lookup(1)();
 
CPhCltExtFactory* phCltExtFactory = reinterpret_cast<CPhCltExtFactory*>( res );
 
iPhCommandHandler = phCltExtFactory->CPhCltCommandHandlerLD();
 
User::LeaveIfError( iPhCommandHandler->Open(iPhoneClientServer) );
 
// Mute an ongoing ringing tone. This should be done inside an active object
 
// (a class derived from CActive)
 
iPhCommandHandler->MuteRingingTone( iStatus );
 
SetActive();
This page was last modified on 31 July 2012, at 10:34.
15 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×