MRemConCoreApiTargetObserver Class Reference

#include <remconcoreapitargetobserver.h>

Link against: remconcoreapi.lib

class MRemConCoreApiTargetObserver

Detailed Description

Clients must implement this interface in order to instantiate objects of type CRemConCoreApiTarget. This interface passes incoming commands from RemCon to the client. In order to minimise the number of virtual functions the client has to implement, (a) they aren't pure, and (b) most commands are presented via 'Command' with an operation ID. Commands which are associated with command-specific data come instead through specific methods, e.g. 'Play', which comes with a play speed. Incoming commands are given to client via the MRemConCoreApiTargetObserver mixin. Having received a command, the client is obliged to send a response. A client can only have one send outstanding at any time. If commands come in quickly, the client is responsible for queueing its responses to them. Note that each command delivered to a target involves memory allocated in the server s heap, which is only released on client closure or when a response is sent.

Member Function Documentation

MrccatoCommand ( TRemConCoreApiOperationId, TRemConCoreApiButtonAction )

IMPORT_C voidMrccatoCommand(TRemConCoreApiOperationIdaOperationId,
TRemConCoreApiButtonActionaButtonAct
)[virtual]

A command has been received.

ParameterDescription
aOperationIdThe operation ID of the command.
aButtonActThe button action associated with the command.

MrccatoPlay ( TRemConCoreApiPlaybackSpeed, TRemConCoreApiButtonAction )

IMPORT_C voidMrccatoPlay(TRemConCoreApiPlaybackSpeedaSpeed,
TRemConCoreApiButtonActionaButtonAct
)[virtual]

A 'play' command has been received.

ParameterDescription
aSpeedThe playback speed.
aButtonActThe button action associated with the command.

MrccatoSelectAudioInputFunction ( TUint8, TRemConCoreApiButtonAction )

IMPORT_C voidMrccatoSelectAudioInputFunction(TUint8aAudioInputSignalNumber,
TRemConCoreApiButtonActionaButtonAct
)[virtual]

A 'select audio input function' has been received.

ParameterDescription
aAudioInputSignalNumberThe audio input.
aButtonActThe button action associated with the command.

MrccatoSelectAvInputFunction ( TUint8, TRemConCoreApiButtonAction )

IMPORT_C voidMrccatoSelectAvInputFunction(TUint8aAvInputSignalNumber,
TRemConCoreApiButtonActionaButtonAct
)[virtual]

A 'select AV input function' has been received.

ParameterDescription
aAvInputSignalNumberThe AV input.
aButtonActThe button action associated with the command.

MrccatoSelectDiskFunction ( TUint, TRemConCoreApiButtonAction )

IMPORT_C voidMrccatoSelectDiskFunction(TUintaDisk,
TRemConCoreApiButtonActionaButtonAct
)[virtual]

A 'select disk function' has been received.

ParameterDescription
aDiskThe disk.
aButtonActThe button action associated with the command.

MrccatoTuneFunction ( TBool, TUint, TUint, TRemConCoreApiButtonAction )

IMPORT_C voidMrccatoTuneFunction(TBoolaTwoPart,
TUintaMajorChannel,
TUintaMinorChannel,
TRemConCoreApiButtonActionaButtonAct
)[virtual]

A 'tune function' command has been received.

ParameterDescription
aTwoPartIf EFalse, only aMajorChannel is to be used. Otherwise, both aMajorChannel and aMinorChannel are to be used.
aMajorChannelThe major channel number.
aMinorChannelThe minor channel number.
aButtonActThe button action associated with the command.