CRemConStatusApiController Class Reference

class CRemConStatusApiController : public CRemConInterfaceBase

A controller which sends Status API commands.

Inherits from

Public Member Functions
~CRemConStatusApiController()
IMPORT_C CRemConStatusApiController *NewL(CRemConInterfaceSelector &, MRemConStatusApiControllerObserver &)
IMPORT_C voidSubunitInfo(TRequestStatus &, TUint &)
IMPORT_C voidUnitInfo(TRequestStatus &, TUint &)
Private Member Functions
CRemConStatusApiController(CRemConInterfaceSelector &, MRemConStatusApiControllerObserver &)
TAny *GetInterfaceIf(TUid)
voidMrcibNewMessage(TUint, const TDesC8 &)
voidPanic(TStatusApiPanic)
voidReadCommandDataToInt(const TDesC8 &, TInt, TInt, TInt &)
voidSetSubunitInfoResponseData(const TDesC8 &, TInt &, TInt &, TPtrC8 &)
voidSetUnitInfoResponseData(const TDesC8 &, TInt &, TInt &, 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 Member Enumerations
enumTStatusApiPanic { EStatusApiCommandDataSectionTooLong }
Private Attributes
MRemConStatusApiControllerObserver &iObserver
RBuf8 iOutData

Constructor & Destructor Documentation

CRemConStatusApiController(CRemConInterfaceSelector &, MRemConStatusApiControllerObserver &)

CRemConStatusApiController(CRemConInterfaceSelector &aInterfaceSelector,
MRemConStatusApiControllerObserver &aObserver
)[private]

Constructs this interface.

Parameters

CRemConInterfaceSelector & aInterfaceSelectorAn interface selector for use with this interface.
MRemConStatusApiControllerObserver & aObserverAn observer to be notified of responses to commands issued to this interface.

~CRemConStatusApiController()

IMPORT_C~CRemConStatusApiController()

Destructor.

Member Functions Documentation

GetInterfaceIf(TUid)

TAny *GetInterfaceIf(TUidaUid)[private, virtual]

Gets a pointer to a specific interface version.

Parameters

TUid aUid

MrcibNewMessage(TUint, const TDesC8 &)

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

New message from RemCon.

Parameters

TUint aOperationId
const TDesC8 & aData

NewL(CRemConInterfaceSelector &, MRemConStatusApiControllerObserver &)

IMPORT_C CRemConStatusApiController *NewL(CRemConInterfaceSelector &aInterfaceSelector,
MRemConStatusApiControllerObserver &aObserver
)[static]

Creates new Status Api Controller.

Parameters

CRemConInterfaceSelector & aInterfaceSelectorAn interface selector for use with this interface.
MRemConStatusApiControllerObserver & aObserverAn observer to be notified of responses to commands issued to this interface.

Panic(TStatusApiPanic)

voidPanic(TStatusApiPanicaPanic)[private, static]

Utility Status Converter panic function.

Parameters

TStatusApiPanic aPanicThe panic number.

ReadCommandDataToInt(const TDesC8 &, TInt, TInt, TInt &)

voidReadCommandDataToInt(const TDesC8 &aCommandData,
TIntaOffset,
TIntaLength,
TInt &aValue
)[private]

Reads command data from the buffer to an int.

Parameters

const TDesC8 & aCommandDataThe buffer from which to read the data.
TInt aOffsetThe offset within aCommandData read from.
TInt aLengthThe length of data to read. This must not be more than 4.
TInt & aValueOn return, the value of the specified data section.

SetSubunitInfoResponseData(const TDesC8 &, TInt &, TInt &, TPtrC8 &)

voidSetSubunitInfoResponseData(const TDesC8 &aCommandData,
TInt &aPage,
TInt &aExtension,
TPtrC8 &aPageData
)[private]

Parses command data from the buffer.

Parameters

const TDesC8 & aCommandDataThe buffer from which to read the data.
TInt & aPageOn return, the page
TInt & aExtensionOn return, the extension
TPtrC8 & aPageDataOn return, the page data

SetUnitInfoResponseData(const TDesC8 &, TInt &, TInt &, TInt &, TInt &)

voidSetUnitInfoResponseData(const TDesC8 &aCommandData,
TInt &aVendorId,
TInt &aUnit,
TInt &aUnitType,
TInt &aExtendedUnitType
)[private]

Parses command data from the buffer.

Parameters

const TDesC8 & aCommandDataThe buffer from which to read the data.
TInt & aVendorIdOn return, the vendor id
TInt & aUnitOn return, the unit
TInt & aUnitTypeOn return, the unit type
TInt & aExtendedUnitTypeOn return, the extended unit type

SubunitInfo(TRequestStatus &, TUint &)

IMPORT_C voidSubunitInfo(TRequestStatus &aStatus,
TUint &aNumRemotes
)

Issue SubUnitInfo command. Only one command per controller session can be outstanding at any one time.

Parameters

TRequestStatus & aStatusStatus to be completed with the result of issuing this command.
TUint & aNumRemotesOn completion, the number of remotes this command was issued to.

UnitInfo(TRequestStatus &, TUint &)

IMPORT_C voidUnitInfo(TRequestStatus &aStatus,
TUint &aNumRemotes
)

Issue UnitInfo command. Only one command per controller session can be outstanding at any one time.

Parameters

TRequestStatus & aStatusStatus to be completed with the result of issuing this command.
TUint & aNumRemotesOn completion, the number of remotes this command was issued to.

Member Enumerations Documentation

Enum TStatusApiPanic

Enumerators

EStatusApiCommandDataSectionTooLong

Member Data Documentation

MRemConStatusApiControllerObserver & iObserver

MRemConStatusApiControllerObserver &iObserver[private]

RBuf8 iOutData

RBuf8 iOutData[private]