williamr@2: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: /** williamr@2: @file williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: #ifndef REMCONCOREAPITARGET_H williamr@2: #define REMCONCOREAPITARGET_H williamr@2: williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: williamr@2: class MRemConCoreApiTargetObserver; williamr@2: class CRemConInterfaceSelector; williamr@2: williamr@2: /** williamr@2: Client-instantiable type supporting sending Core API responses. williamr@2: */ williamr@2: NONSHARABLE_CLASS(CRemConCoreApiTarget) : public CRemConInterfaceBase, williamr@2: public MRemConInterfaceIf williamr@2: { williamr@2: public: williamr@2: /** williamr@2: Factory function. williamr@2: @param aInterfaceSelector The interface selector. The client must have williamr@2: created one of these first. williamr@2: @param aObserver The observer of this interface. williamr@2: @return A new CRemConCoreApiTarget, owned by the interface selector. williamr@2: */ williamr@2: IMPORT_C static CRemConCoreApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector, williamr@2: MRemConCoreApiTargetObserver& aObserver); williamr@4: /** williamr@4: Factory function. williamr@4: @param aInterfaceSelector The interface selector. The client must have williamr@4: created one of these first. williamr@4: @param aObserver The observer of this interface. williamr@4: @param aFeatureSupported The Array is used to stote features supportd by the client williamr@4: williamr@4: @return A new CRemConCoreApiTarget, owned by the interface selector. williamr@4: */ williamr@4: IMPORT_C static CRemConCoreApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector, williamr@4: MRemConCoreApiTargetObserver& aObserver,const RArray& aFeatureSupported); williamr@2: williamr@2: /** Destructor */ williamr@2: IMPORT_C ~CRemConCoreApiTarget(); williamr@2: williamr@2: public: williamr@2: /** Send a 'select' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void SelectResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'up' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void UpResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'down' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void DownResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'left' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void LeftResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'right' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void RightResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'right up' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void RightUpResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'right down' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void RightDownResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'left up' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void LeftUpResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'left down' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void LeftDownResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'root menu' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void RootMenuResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'setup menu' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void SetupMenuResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'contents menu' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void ContentsMenuResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'favorite menu' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void FavoriteMenuResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'exit' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void ExitResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '0' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _0Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '1' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _1Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '2' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _2Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '3' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _3Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '4'response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _4Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '5' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _5Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '6' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _6Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '7' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _7Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '8' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _8Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a '9' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void _9Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'dot' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void DotResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'enter' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void EnterResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'clear' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void ClearResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'channel up' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void ChannelUpResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'channel down' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void ChannelDownResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'previous channel' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void PreviousChannelResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'sound select' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void SoundSelectResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'input select' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void InputSelectResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'display information' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void DisplayInformationResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'help' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void HelpResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'page up' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void PageUpResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'page down' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void PageDownResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'power' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void PowerResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'volume up' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void VolumeUpResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'volume down' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void VolumeDownResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'mute' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void MuteResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a play response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void PlayResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a stop response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void StopResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'pause' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void PauseResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'record' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void RecordResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'rewind' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void RewindResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'fast forward' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void FastForwardResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'eject' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void EjectResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'forward' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void ForwardResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'backward' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void BackwardResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'angle' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void AngleResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'subpicture' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void SubpictureResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'pause play function' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void PausePlayFunctionResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'restore volume function' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void RestoreVolumeFunctionResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'tune function' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void TuneFunctionResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'select disk function' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void SelectDiskFunctionResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'select AV input function' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void SelectAvInputFunctionResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a 'select audio input function' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void SelectAudioInputFunctionResponse(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'F1' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void F1Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'F2' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void F2Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'F3' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void F3Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'F4' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void F4Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send an 'F5' response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void F5Response(TRequestStatus& aStatus, TInt aError); williamr@2: williamr@2: /** Send a response. williamr@2: Only one response per target session can be outstanding at any one time. williamr@2: This function may be used to send a response when it is undesirable to use the williamr@2: 'specific' response-sending methods (PlayResponse, StopResponse etc). williamr@2: @param aStatus Used by RemCon to indicate completion of the send request. williamr@2: @param aOperationId The operation ID of the command we are sending a response to. williamr@2: @param aError The response error. williamr@2: */ williamr@2: IMPORT_C void SendResponse(TRequestStatus& aStatus, TRemConCoreApiOperationId aOperationId, TInt aError); williamr@2: williamr@2: private: williamr@2: /** williamr@2: Constructor. williamr@2: @param aInterfaceSelector The interface selector. williamr@2: @param aObserver The observer of this interface. williamr@2: */ williamr@2: CRemConCoreApiTarget(CRemConInterfaceSelector& aInterfaceSelector, williamr@2: MRemConCoreApiTargetObserver& aObserver); williamr@4: void ConstructL(const RArray& aFeaturesSupported); williamr@2: williamr@2: private: // utility williamr@2: /** williamr@2: Utility to send a response. williamr@2: @param aStatus TRequestStatus for the send operation. williamr@2: @param aOperationId The operation ID. williamr@2: */ williamr@2: void SendGenericResponse(TRequestStatus& aStatus, williamr@2: TRemConCoreApiOperationId aOperationId, williamr@2: TInt aError); williamr@2: williamr@2: private: // from CRemConInterfaceBase williamr@2: TAny* GetInterfaceIf(TUid aUid); williamr@2: williamr@2: private: // from MRemConInterfaceIf williamr@2: void MrcibNewMessage(TUint aOperationId, const TDesC8& aData); williamr@2: williamr@2: private: // utility williamr@2: void HandlePlay(const TDesC8& aData, TRemConCoreApiButtonAction aButton); williamr@2: void HandleTuneFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); williamr@2: void HandleSelectDiskFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); williamr@2: void HandleSelectAvInputFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); williamr@2: void HandleSelectAudioInputFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); williamr@4: private : williamr@4: void RemConCoreSetFeatures(TBool* aFeatureSupported); williamr@2: williamr@2: private: // unowned williamr@2: MRemConCoreApiTargetObserver& iObserver; williamr@2: williamr@2: private: // owned williamr@2: TBuf8 iRspData; williamr@2: TUint iNumRemotes; williamr@2: TFixedArray iOutstandingOperations; williamr@2: }; williamr@2: williamr@2: #endif // REMCONCOREAPITARGET_H