Archived:Remote Control Extension Symbian API
Archived: 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
Article
Keywords: Remote Control Extension API
Created: User:Technical writer 1
(13 Jun 2008)
Last edited: lpvalente
(04 Oct 2012)
Note: :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"


(no comments yet)