CMcnTopicArray Class Reference

class CMcnTopicArray : public CBase

CMcnTopicArray represents a list containing the numbers of CB topics which a MCN client to CbsServer has subscribed.

Inherits from

Constructor & Destructor Documentation

CMcnTopicArray(const CMcnTopicArray &)

CMcnTopicArray(const CMcnTopicArray &aArray)[private]

Parameters

const CMcnTopicArray & aArray

CMcnTopicArray()

CMcnTopicArray()[private]

Default constructor.

~CMcnTopicArray()

~CMcnTopicArray()

Destructor.

Member Functions Documentation

AddCbTopicL(TUint16)

IMPORT_C voidAddCbTopicL(TUint16aTopicNumber)

Adds a single CB topic to the topic list. Leaves with KErrArgument if the topic number is not in valid range. In this implementation, all values are accepted.

Leave reasons: KErrArgument, aTopicNumber not in valid range.. KErrNoMemory, Out-of-memory occured.

Parameters

TUint16 aTopicNumberNumber of subscribed CB topic.

ConstructL()

voidConstructL()[private]

2nd-phase constructor.

EnumerateEntries(TUint &)

voidEnumerateEntries(TUint &aEntries)const

Returns the number of topic entries in parameter aEntries.

Parameters

TUint & aEntriesThe number of topic entires

GetTopicNumber(const TUint &, TUint &)

IMPORT_C voidGetTopicNumber(const TUint &aIndex,
TUint &aTopicNumber
)const

Returns the number of topic in aTopicNumber corresponding to the index given in aIndex.

Parameters

const TUint & aIndexIndex of the topic number.
TUint & aTopicNumberTopic number corresponding to the given index.

NewL()

IMPORT_C CMcnTopicArray *NewL()[static]

Returns a new instance of CMcnTopicArray, initially empty.

operator=(const CMcnTopicArray &)

CMcnTopicArray &operator=(const CMcnTopicArray &aArray)[private]

Parameters

const CMcnTopicArray & aArray

Member Data Documentation

CArrayFixFlat< TUint > * iTopicList

CArrayFixFlat< TUint > *iTopicList[private]