Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:Remote Control Extension Symbian API

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Keywords: Remote Control Extension API
Created: User:Technical writer 1 (13 Jun 2008)
Last edited: lpvalente (04 Oct 2012)

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

The Remote Control Extension API provides a way for S60 clients to receive comments related to call handling from remote targets and to send responses to commands from remote targets.

Header files

 #include <remconcallhandlingtarget.h>
 #include <remconinterfaceselector.h>
 #include <remconextensionapi.h>
 #include <remconcallhandlingtargetobserver.h>

Link against

 LIBRARY remconinterfacebase.lib 
LIBRARY RemConExtensionApi.lib

Example code

1) Derive your class from MRemConCallHandlingTargetObserver and implement the methods defined in it.

2) To start listening to the events from the remote target, it is necessary to connect to the Remote Control Server. The steps involved in this are:

  • Create the interface selector.
  • Create the call handling target.
  • Open the session to Remcon.
 iInterfaceSelector = CRemConInterfaceSelector::NewL();
iTarget = CRemConCallHandlingTarget::NewL( *iInterfaceSelector, *this );

3) After this, you will receive the notifications for various call operations in the functions defined in the MRemConCallHandlingTargetObserver.

* From MRemConCallHandlingTargetObserver

void CCallHandlingExEngine::AnswerCall()
//Handle answering call here

4) Once you get the event, you can handle the event there. If you wish to send a response, you can do so using the target that was created.

//operationID is define in the"TRemConExtCallHandlingApiOperationId" enum
//defined in "RemConExtensionApi.h"
This page was last modified on 4 October 2012, at 14:18.
60 page views in the last 30 days.