TConnMonId Class Reference

#include <mw/rconnmon.h>

Link against: ConnMon.lib

class TConnMonId : public MDesSerializer< TConnMonId >

Inherits from

Public Attributes
const TUintKMaxSize
Protected Attributes
const TUintiId
Public Member Enumerations
enumFieldsShifts { EId }
Public Member Functions
TConnMonId(TUint)
IMPORT_C TConnMonIdFromPtrC(const TPtrC &)
IMPORT_C TUintId()
virtual IMPORT_C const HBufC *ToBuf()

Detailed Description

Class representing an ID number. MDesSerializer - abstract interface for class serialization.

Member Attribute Documentation

KMaxSize

const TUintKMaxSize[static]

Defines the maximum size of the object in TChar's. +1 is for rounding to bigger integer.

iId

const TUintiId[protected]

ID number.

Member Enumeration Documentation

Enum FieldsShifts

Defines shifts of fields inside the object.

EnumeratorValueDescription
EId0

Constructor & Destructor Documentation

TConnMonId ( TUint )

IMPORT_CTConnMonId(TUintaId)

Constructor.

ParameterDescription
aIdID number.

Member Function Documentation

FromPtrC ( const TPtrC & )

IMPORT_C TConnMonIdFromPtrC(const TPtrC &aPtrC)[static]

Reimplemented from MDesSerializer< TConnMonId >::FromPtrC(const TPtrC &)

Reads object of class TConnMonId from memory.

ParameterDescription
aPtrCPointer to the beginning of the TConnMonId object in buffer.

Returns: The newly created TConnMonId object.

Id ( )

IMPORT_C TUintId()const

Obtains the ID number.

Returns: ID number.

ToBuf ( )

IMPORT_C const HBufC *ToBuf()const [virtual]

Reimplemented from MDesSerializer< TConnMonId >::ToBuf()const

Writes object of class TConnMonId to memory. Ownership of newly created buffer is transferred to caller.

Returns: Pointer to heap descriptor, NULL if memory allocation failed.