CPlayerApplicationSettings Class Reference

class CPlayerApplicationSettings : public CBase

Class containing all the information for one attribute. All the attributes for a player are contained in a RHashMap of CPlayerApplicationSettings in CPlayerInfoTarget

Inherits from

Constructor & Destructor Documentation

CPlayerApplicationSettings()

CPlayerApplicationSettings ( ) [private]

Constructor.

~CPlayerApplicationSettings()

~CPlayerApplicationSettings ( )

Destructor

Member Functions Documentation

ConstructL(TUint, TDesC8 &, const RArray< TUint > &, RArray< TPtrC8 > &, TUint)

void ConstructL ( TUint aAttributeID,
TDesC8 & aAttributeText,
const RArray < TUint > & aValues,
RArray < TPtrC8 > & aValueText,
TUint aInitialValue
) [private]

Parameters

TUint aAttributeID
TDesC8 & aAttributeText
const RArray < TUint > & aValues
RArray < TPtrC8 > & aValueText
TUint aInitialValue

GetAttributeID()

TUint GetAttributeID ( )

GetAttributeText()

TPtrC8 GetAttributeText ( )

GetCurrentValue()

TUint GetCurrentValue ( )

GetValues()

RArray < TUint > * GetValues ( )

GetValuesTexts()

RPointerArray < HBufC8 > * GetValuesTexts ( )

NewL(TUint, TDesC8 &, const RArray< TUint > &, RArray< TPtrC8 > &, TUint)

CPlayerApplicationSettings * NewL ( TUint aAttributeID,
TDesC8 & aAttributeText,
const RArray < TUint > & aValues,
RArray < TPtrC8 > & aValueTexts,
TUint aInitialValue
) [static]

Factory function.

Parameters

TUint aAttributeID The ID value
TDesC8 & aAttributeText A text description of the attribute
const RArray < TUint > & aValues A list of valid values
RArray < TPtrC8 > & aValueTexts A list of descriptions of the possible values
TUint aInitialValue The starting value

SetCurrentValue(TUint)

TInt SetCurrentValue ( TUint aValue )

Parameters

TUint aValue

Member Data Documentation

TUint iAttributeID

TUint iAttributeID [private]

HBufC8 * iAttributeText

HBufC8 * iAttributeText [private]

TUint iCurrentValue

TUint iCurrentValue [private]

RPointerArray< HBufC8 > iValueText

RPointerArray < HBufC8 > iValueText [private]

RArray< TUint > iValues

RArray < TUint > iValues [private]