CLbsLogEvent Class Reference

class CLbsLogEvent : public CBase

Base class for the classes representing LBS events to be logged. It provides the common functionality (internalising, externalising, updating this class from another one and creating a copy of this class).

Inherits from

Public Member Functions
~CLbsLogEvent()
CLbsLogEvent *CopyL()
IMPORT_C TUintCostInformation()
IMPORT_C TBoolDirection()
IMPORT_C TUidEventType()
IMPORT_C CLogEvent *ExternalizeL()
IMPORT_C TBoolIsCostInformationAvailable()
IMPORT_C CLbsLogEvent *NewL(const CLogEvent &)
IMPORT_C TPositionInfoBase *PositionInfo()
IMPORT_C TLbsRequestOutcomeRequestOutcome()
IMPORT_C voidSetCostInformation(TUint)
IMPORT_C voidSetDirection(TBool)
IMPORT_C voidSetEventType(TUid)
IMPORT_C voidSetPositionInfo(TPositionInfoBase *)
IMPORT_C voidSetRequestOutcome(TLbsRequestOutcome)
voidUpdateL(const CLbsLogEvent &)
voidUpdateRootEvent(CLogEvent *)
Protected Member Functions
CLbsLogEvent()
voidBaseConstructL()
TPositionInfo *CopyPosInfoToEvent(const TPositionInfoBase *)
TInt DataSize()
voidDoCopyL(CLbsLogEvent *&)
voidDoExternalizeL(RWriteStream &)
voidDoInternalizeL(RReadStream &)
voidDoUpdateL(const CLbsLogEvent &)
voidInternalizeL(const CLogEvent &)
voidReadPosInfo(RReadStream &, TPositionInfo *&)
voidWritePosInfo(RWriteStream &, const TPositionInfo *)
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()
Protected Attributes
TUid iEventType
TPositionInfo *iPosInfo
const TIntiPosInfoWriteSize
TAny *iReservedData
Private Attributes
TUint iCostInformation
TBool iCostInformationAvailable
TBool iDirection
TLbsRequestOutcome iRequestOutcome

Constructor & Destructor Documentation

CLbsLogEvent()

CLbsLogEvent()[protected]

C++ constructor

~CLbsLogEvent()

~CLbsLogEvent()[virtual]

C++ destructor

Member Functions Documentation

BaseConstructL()

voidBaseConstructL()[protected]

The 2nd phase constructor for the base class, gets called from derived classes This function will produce an unique queue ID within the queue for each event, it will be reset once the log engine is reset.

CopyL()

CLbsLogEvent *CopyL()const

Creates a new instance of CLbsLogEvent which will the a copy of the current one

CopyPosInfoToEvent(const TPositionInfoBase *)

TPositionInfo *CopyPosInfoToEvent(const TPositionInfoBase *aSrcosInfo)[protected]

Copy PositionInfo class for different supported types

Parameters

const TPositionInfoBase * aSrcosInfoprovided source TPositionInfoBase* pointer

CostInformation()

IMPORT_C TUintCostInformation()const

get the lbs service cost info

DataSize()

TInt DataSize()const [protected, pure virtual]

Direction()

IMPORT_C TBoolDirection()const

get the direction for logging event (incoming or outgoing calls)

DoCopyL(CLbsLogEvent *&)

voidDoCopyL(CLbsLogEvent *&aTargetLogEvent)const [protected, pure virtual]

Parameters

CLbsLogEvent *& aTargetLogEvent

DoExternalizeL(RWriteStream &)

voidDoExternalizeL(RWriteStream &aReadStream)const [protected, pure virtual]

Parameters

RWriteStream & aReadStream

DoInternalizeL(RReadStream &)

voidDoInternalizeL(RReadStream &aReadStream)[protected, pure virtual]

Parameters

RReadStream & aReadStream

DoUpdateL(const CLbsLogEvent &)

voidDoUpdateL(const CLbsLogEvent &aSourceLogEvent)[protected, pure virtual]

Parameters

const CLbsLogEvent & aSourceLogEvent

EventType()

IMPORT_C TUidEventType()const

get the logging event type

ExternalizeL()

IMPORT_C CLogEvent *ExternalizeL()const

Externalises this object into a CLogEvent object so it can be passed on to the LogEng.

InternalizeL(const CLogEvent &)

voidInternalizeL(const CLogEvent &aLogEvent)[protected]

Internalises into this class from CLogEvent

Parameters

const CLogEvent & aLogEventThe class to internalise from

IsCostInformationAvailable()

IMPORT_C TBoolIsCostInformationAvailable()const

set the lbs service cost flag

NewL(const CLogEvent &)

IMPORT_C CLbsLogEvent *NewL(const CLogEvent &aLogEvent)[static]

This method should be used to retrieve an existing logged event from Log Engine, CLogEvent parameter should be a valid logging event object. This function will internalise this logged event into the approprite LBS Location Requestion Logging class.

This method should NOT be used within LBS Sub-system, if otherwise, it should be trapped.

Parameters

const CLogEvent & aLogEventThe event that was logged

PositionInfo()

IMPORT_C TPositionInfoBase *PositionInfo()const

get the TPositonInfo data

ReadPosInfo(RReadStream &, TPositionInfo *&)

voidReadPosInfo(RReadStream &aReadStream,
TPositionInfo *&aPosInfo
)[protected]

Parameters

RReadStream & aReadStream
TPositionInfo *& aPosInfo

RequestOutcome()

IMPORT_C TLbsRequestOutcomeRequestOutcome()const

get the lbs service request outcome

SetCostInformation(TUint)

IMPORT_C voidSetCostInformation(TUintaCostInformation)

set the lbs service cost info

Parameters

TUint aCostInformation

SetDirection(TBool)

IMPORT_C voidSetDirection(TBoolaDirection)

set the direction for logging event (incoming or outgoing calls)

Parameters

TBool aDirection

SetEventType(TUid)

IMPORT_C voidSetEventType(TUidaId)

set the logging event type

Parameters

TUid aId

SetPositionInfo(TPositionInfoBase *)

IMPORT_C voidSetPositionInfo(TPositionInfoBase *aPosInfo)

Copy PositionInfo class for different supported types

Parameters

TPositionInfoBase * aPosInfoprovided source TPositionInfoBase* pointer

SetRequestOutcome(TLbsRequestOutcome)

IMPORT_C voidSetRequestOutcome(TLbsRequestOutcomeaRequestOutcome)

set the lbs service request outcome

Parameters

TLbsRequestOutcome aRequestOutcome

UpdateL(const CLbsLogEvent &)

voidUpdateL(const CLbsLogEvent &aLogEvent)

Updates this class with information provided

leave
KErrArgument If what is passed in has a different type than type of this instance

Parameters

const CLbsLogEvent & aLogEventThe information that was provided

UpdateRootEvent(CLogEvent *)

voidUpdateRootEvent(CLogEvent *aTargetEvent)

Update the CLogEvent object by the property within this CLbsLogEvent

Parameters

CLogEvent * aTargetEventThe class to be updated

WritePosInfo(RWriteStream &, const TPositionInfo *)

voidWritePosInfo(RWriteStream &aWriteStream,
const TPositionInfo *aPosInfo
)const [protected]

Parameters

RWriteStream & aWriteStream
const TPositionInfo * aPosInfo

Member Data Documentation

TUint iCostInformation

TUint iCostInformation[private]

The cost information

TBool iCostInformationAvailable

TBool iCostInformationAvailable[private]

Flag which specifies if the cost information is available or not

TBool iDirection

TBool iDirection[private]

MO-LR (True) to R_LOG_DIR_OUT and MT-LR to R_LOG_DIR_IN

TUid iEventType

TUid iEventType[protected]

The Location Request Event Type

TPositionInfo * iPosInfo

TPositionInfo *iPosInfo[protected]

The returned location information if the request is completed successfully

const TInt iPosInfoWriteSize

const TIntiPosInfoWriteSize[protected]

The size of the data from a TPositionInfo that is written to disk

TLbsRequestOutcome iRequestOutcome

TLbsRequestOutcome iRequestOutcome[private]

The outcome of the request

TAny * iReservedData

TAny *iReservedData[protected]

Data for BC consideration, and inherited by derived CLbsLog classes