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 14:52, 24 June 2008.

PS Keys for Call Status & Indicators API

From Forum Nokia Wiki

Note!
This API is not part of the public SDK. It can be found in the SDK API Plug-in.


PS Keys for Call Status & Indicators API provide keys to check the Telephony Call Status like Dialling, Answering, Ringing, Hold state etc, and Telephony Call Type like Data call, Voice Call, Fax etc.

Use cases

They can be used to know the call type and status of ongoing call.

Example code

The following are the Uid & UInt values provided:

//Telephony call handling PS Uid. 
const TUid KPSUidTelephonyCallHandling = {0x101F8787};
//State of ongoing call(s). 
const TUint32 KTelephonyCallState = 0x00000004;
//Type of ongoing call. 
const TUint32 KTelephonyCallType = 0x00000005;

The above said can be achieved by passing KPSUidTelephonyCallHandling(Telephony call handling PS Uid) and KTelephonyCallState or KTelephonyCallType to Get() method of RProperty which is the User side interface to Publish & Subscribe, as shown in the example below.

The RProperty type of KTelephonyCallState & KTelephonyCallType property is EInt.

void CCallStatusAppUi::GetTelephonyStateAndType()
{
      TBuf<25> printInfo;
      TInt aVal;  
      RProperty iRP;
      // Call Status
      iRP.Get(KPSUidTelephonyCallHandling,KTelephonyCallState,aVal);
      printInfo.AppendNum(aVal);
      CEikonEnv::InfoWinL(_L("Phone Status:"),printInfo);
 
      printInfo.Zero();
 
      // Call Type      
      iRP.Get(KPSUidTelephonyCallHandling,KTelephonyCallType,aVal);
      printInfo.AppendNum(aVal);
      CEikonEnv::InfoWinL(_L("Phone Type:"),printInfo);
}

The enumerations are as follows :

enum TPSTelephonyCallState : EPSTelephonyCallStateUninitialized, EPSTelephonyCallStateNone, EPSTelephonyCallStateAlerting, EPSTelephonyCallStateRinging, EPSTelephonyCallStateDialling, EPSTelephonyCallStateAnswering, EPSTelephonyCallStateDisconnecting, EPSTelephonyCallStateConnected, EPSTelephonyCallStateHold

enum TPSTelephonyCallType : EPSTelephonyCallTypeUninitialized, EPSTelephonyCallTypeNone, EPSTelephonyCallTypeCSVoice, EPSTelephonyCallTypeFax, EPSTelephonyCallTypeData, EPSTelephonyCallTypeHSCSD, EPSTelephonyCallTypeH324Multimedia, EPSTelephonyCallTypeVoIP

Example project

Example_Application

Related Discussions
Thread Thread Starter Forum Replies Last Post
KeyLock vilbrandt General Symbian C++ 4 2004-11-04 08:01
7210 and its keys alexandra_bustamante Mobile Java General 3 2004-07-22 12:12
RunL not scheduled with RecvOneOrMore cjayain Symbian Networking & Messaging 6 2007-08-10 16:19
To secure the Tag Data prashbn Near Field Communication 12 2008-03-12 04:10
N73-ME DRM: Restoring Activation keys chie cosay Digital Rights Management & Content Downloading 0 2006-12-19 10:26
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX