×
Namespaces

Variants
Actions
Revision as of 17:18, 4 October 2012 by lpvalente (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:Remote Control Extension Symbian API

From Nokia Developer 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
Compatibility
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Article
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 );
iInterfaceSelector->OpenTargetL();

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.

 iTarget->SendResponse(iRequestStatus,operationID,KErrNone);
//operationID is define in the"TRemConExtCallHandlingApiOperationId" enum
//defined in "RemConExtensionApi.h"
This page was last modified on 4 October 2012, at 17:18.
50 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.

×