CRemConPocTarget Class Reference

class CRemConPocTarget : public CRemConInterfaceBase

Part of Remote Control Extension Api. This class receives PoC related operations from accessories.

RemConExtensionApi.dll
Since
Series 60 3.0

Inherits from

Public Member Functions
~CRemConPocTarget()
IMPORT_C voidAPOCButtonDownResponse(TRequestStatus &, TInt)
IMPORT_C voidAPOCButtonUpResponse(TRequestStatus &, TInt)
IMPORT_C voidGetCommandSourceInfo(TRemConExtCmdSource &)
IMPORT_C CRemConPocTarget *NewL(CRemConInterfaceSelector &, MRemConPocTargetObserver &)
Private Member Functions
CRemConPocTarget(CRemConInterfaceSelector &, MRemConPocTargetObserver &)
TAny *GetInterfaceIf(TUid)
voidMrcibNewMessage(TUint, const TDesC8 &, TRemConMessageSubType, const TRemConAddress &)
voidSendResponse(TRequestStatus &, TInt, TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CRemConInterfaceBase::BaseConstructL()
CRemConInterfaceBase::BaseConstructL(RRemConInterfaceFeatures &)
CRemConInterfaceBase::BaseConstructL(RRemConInterfaceFeatures &,TBool)
CRemConInterfaceBase::Bulk()const
CRemConInterfaceBase::CRemConInterfaceBase(TUid,TUint,CRemConInterfaceSelector &,TRemConClientType)
CRemConInterfaceBase::Cancel()
CRemConInterfaceBase::InterfaceSelector()
CRemConInterfaceBase::InterfaceUid()const
CRemConInterfaceBase::MaxLength()const
CRemConInterfaceBase::Target(TRemConClientType)
CRemConInterfaceBase::Type()const
CRemConInterfaceBase::~CRemConInterfaceBase()
Private Attributes
TUint iNumRemotes
MRemConPocTargetObserver &iObserver
TBuf8< KRemConExtParamMaxLength >iOutData
TUint32 iSourceUID

Constructor & Destructor Documentation

CRemConPocTarget(CRemConInterfaceSelector &, MRemConPocTargetObserver &)

CRemConPocTarget(CRemConInterfaceSelector &aInterfaceSelector,
MRemConPocTargetObserver &aObserver
)[private]

Constructor.

Parameters

CRemConInterfaceSelector & aInterfaceSelectorThe interface selector.
MRemConPocTargetObserver & aObserverThe observer of this interface.

~CRemConPocTarget()

IMPORT_C~CRemConPocTarget()[virtual]

Destructor.

Member Functions Documentation

APOCButtonDownResponse(TRequestStatus &, TInt)

IMPORT_C voidAPOCButtonDownResponse(TRequestStatus &aStatus,
TIntaError
)
Called by client to send a response to remote target's operation after client has processed operation.
Since
Series 60 3.0

Parameters

TRequestStatus & aStatusIndicates the completion status of a request made
TInt aErrorAn error code

APOCButtonUpResponse(TRequestStatus &, TInt)

IMPORT_C voidAPOCButtonUpResponse(TRequestStatus &aStatus,
TIntaError
)
Called by client to send a response to remote target's operation after client has processed operation.
Since
Series 60 3.0

Parameters

TRequestStatus & aStatusIndicates the completion status of a request made
TInt aErrorAn error code

GetCommandSourceInfo(TRemConExtCmdSource &)

IMPORT_C voidGetCommandSourceInfo(TRemConExtCmdSource &aSource)

Method to get the bearer source detail for the last command received

Since
TB 9.2

Parameters

TRemConExtCmdSource & aSourcereturns the bearer source as TRemConExtCmdSource

GetInterfaceIf(TUid)

TAny *GetInterfaceIf(TUidaUid)[private, virtual]

Called by the interface selector to get a pointer to an object which implements the interface API with UID aUid. This is a mechanism for allowing future change to the interface API without breaking BC in existing (non-updated) interfaces.

Parameters

TUid aUid

MrcibNewMessage(TUint, const TDesC8 &, TRemConMessageSubType, const TRemConAddress &)

voidMrcibNewMessage(TUintaOperationId,
const TDesC8 &aData,
TRemConMessageSubTypeaMessageSubType,
const TRemConAddress &aRemoteAddr
)[private]

Parameters

TUint aOperationId
const TDesC8 & aData
TRemConMessageSubType aMessageSubType
const TRemConAddress & aRemoteAddr

NewL(CRemConInterfaceSelector &, MRemConPocTargetObserver &)

IMPORT_C CRemConPocTarget *NewL(CRemConInterfaceSelector &aInterfaceSelector,
MRemConPocTargetObserver &aObserver
)[static]

Two-phased constructor.

Parameters

CRemConInterfaceSelector & aInterfaceSelectorThe interface selector.
MRemConPocTargetObserver & aObserverThe observer of this interface.

SendResponse(TRequestStatus &, TInt, TInt)

voidSendResponse(TRequestStatus &aStatus,
TIntaOperationId,
TIntaError
)[private]

Method that sends all reponses.

Parameters

TRequestStatus & aStatus
TInt aOperationId
TInt aError

Member Data Documentation

TUint iNumRemotes

TUint iNumRemotes[private]

MRemConPocTargetObserver & iObserver

MRemConPocTargetObserver &iObserver[private]

TBuf8< KRemConExtParamMaxLength > iOutData

TBuf8< KRemConExtParamMaxLength >iOutData[private]

TUint32 iSourceUID

TUint32 iSourceUID[private]