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 void AddCbTopicL ( TUint16 aTopicNumber )

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 aTopicNumber Number of subscribed CB topic.

ConstructL()

void ConstructL ( ) [private]

2nd-phase constructor.

EnumerateEntries(TUint &)

void EnumerateEntries ( TUint & aEntries ) const

Returns the number of topic entries in parameter aEntries.

Parameters

TUint & aEntries The number of topic entires

GetTopicNumber(const TUint &, TUint &)

IMPORT_C void GetTopicNumber ( const TUint & aIndex,
TUint & aTopicNumber
) const

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

Parameters

const TUint & aIndex Index of the topic number.
TUint & aTopicNumber Topic 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]