Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:15, 24 August 2007.

TSS000659 - How to mute a ringing tone on S60 3rd Edition devices

From Forum Nokia Wiki


Subject:

How to mute a ringing tone on S60 3rd Edition devices

TSS000659

 

Platform(s): Device(s), SW version(s):
S60 3rd Edition,
S60 3rd Edition, FP1
 

Category:

Symbian C++

Subcategory:

Networking, Telephony

Description:

Description:
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.
Extensions plug-in package for S60 3rd Edition SDK for Symbian OS, for C++, MR
Extensions plug-in package for S60 3rd Edition SDK for Symbian OS, for C++, supporting FP1
Solution:
The below code shows how to load the PhoneClientExt DLL and how to construct and use a command handler (CPhCltCommandHandler) to mute a ringing tone.
Required capability: 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();

See also:
How to mute/unmute the microphone on S60 3rd Edition devices

Creation date:

May 21, 2007

Last modified:

-
Related Discussions
Thread Thread Starter Forum Replies Last Post
nokia 6020 comms through IrDA or USB cable? simrobe Mobile Java General 4 2006-08-24 15:13
Has anyone done sudoku? JOM Python 6 2008-08-01 13:17
S60 Signing and Certification Nokia Ron Symbian Signing, Certification and Security 52 2007-11-15 09:40
J2ME Video Streaming bangus Mobile Java Media (Graphics & Sounds) 31 2008-08-14 23:37
create a file 3rd edition; urgent! asmobease Symbian Tools & SDKs 10 2006-09-29 11:13
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZTechnicalSolutionQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX