CLogEventType Class Reference

class CLogEventType : public CBase

Encapsulates the details of an event type.

An event type is used to associate an event with a user-readable description and other configuration information related to the event.

Event types are identified by UID.

CLogEvent::EventType() CLogEvent::SetEventType()

Inherits from

Constructor & Destructor Documentation

CLogEventType()

CLogEventType()[private]

~CLogEventType()

IMPORT_C~CLogEventType()

Frees all resources owned by the event type detail object.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Copy(const CLogEventType &)

IMPORT_C voidCopy(const CLogEventType &aType)

Makes a copy of the specified event type.

Parameters

const CLogEventType & aTypeThe event type to be copied.

Description()

const TDesC &Description()const [inline]

Gets the human readable and localised name of the event type.

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InternalizeBufL(RReadStream &, HBufC *&)

voidInternalizeBufL(RReadStream &aStream,
HBufC *&aDes
)[private]

Parameters

RReadStream & aStream
HBufC *& aDes

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

LoggingEnabled()

TBool LoggingEnabled()const [inline]

Determines whether logging for this event type is enabled.

NewL()

IMPORT_C CLogEventType *NewL()[static]

Creates a new event type detail object.

SetDescription(const TDesC &)

voidSetDescription(const TDesC &aDescription)[inline]

Sets the human readable and localised name of the event type.

For example, Email.

Parameters

const TDesC & aDescriptionThe name.

SetLoggingEnabled(TBool)

voidSetLoggingEnabled(TBoolaEnable)[inline]

Enables or disables logging for this event type.

Note that disabling the logging of an event type causes a CLogClient::AddEventL() request for an event of that type to complete with an appropriate error.

CLogClient::AddEvent()

Parameters

TBool aEnableETrue, to enable logging for this event type.EFalse, to disable logging for this event type.

SetUid(TUid)

voidSetUid(TUidaUid)[inline]

Sets the UID identifying the event type.

Parameters

TUid aUidThe Uid.

Uid()

TUid Uid()const [inline]

Gets the UID identifying the event type.

Member Data Documentation

HBufC * iDescription

HBufC *iDescription[private]

TBool iLoggingEnabled

TBool iLoggingEnabled[private]

TUid iUid

TUid iUid[private]