CGECODefaultObject Class Reference

class CGECODefaultObject : public CGECOObjectBase

Default implementation for CGECOObjectBase Implements basic descriptor type arrays for storing object attributes.

XCFW.lib
Since
Series 60 3.1

Inherits from

Constructor & Destructor Documentation

CGECODefaultObject()

IMPORT_CCGECODefaultObject()[protected]

C++ default constructor.

~CGECODefaultObject()

IMPORT_C~CGECODefaultObject()[virtual]

Destructor.

Member Functions Documentation

AttributeDetailsL(const TInt, TPtrC &, TPtrC &, TBool &)

IMPORT_C voidAttributeDetailsL(const TIntaIndex,
TPtrC &aAttrName,
TPtrC &aAttrValue,
TBool &aIsLocalized
)

From MGECOAttributeProvider. Returns name, value and localization status for attribute in given index.

Parameters

const TInt aIndex
TPtrC & aAttrName
TPtrC & aAttrValue
TBool & aIsLocalized

AttributeDetailsL(const TInt, TPtrC &, TPtrC &)

IMPORT_C voidAttributeDetailsL(const TIntaIndex,
TPtrC &aAttrName,
TPtrC &aAttrValue
)

From MGECOAttributeProvider. Returns name, value for attribute in given index.

Parameters

const TInt aIndex
TPtrC & aAttrName
TPtrC & aAttrValue

BaseConstructL(const TDesC &)

IMPORT_C voidBaseConstructL(const TDesC &aTypeIdentifier)[protected]

2nd phase constructor

Parameters

const TDesC & aTypeIdentifier

GetAttribute(const TDesC &, TPtrC &)

IMPORT_C TIntGetAttribute(const TDesC &aAttrName,
TPtrC &aAttrValue
)
Returns value for given attribute
Since
Series 60 3.1

Parameters

const TDesC & aAttrNameAttribute to search for
TPtrC & aAttrValueAttribute value returned

GetAttribute(const TDesC &, TPtrC &, TBool &)

IMPORT_C TIntGetAttribute(const TDesC &aAttrName,
TPtrC &aAttrValue,
TBool &aIsLocalized
)
Returns value and localization status for given attribute
Since
Series 60 3.1

Parameters

const TDesC & aAttrNameAttribute to search for
TPtrC & aAttrValueAttribute value returned
TBool & aIsLocalizedAttribute localization status returned

GetText(TPtrC &)

IMPORT_C TIntGetText(TPtrC &aText)
Returns possible text data from this object
Since
Series 60 3.1

Parameters

TPtrC & aTextText data returned

HasTextData()

IMPORT_C TBoolHasTextData()

From MGECOAttributeProvider. Returns ETrue if object has text data

NewL(const TDesC &)

IMPORT_C CGECODefaultObject *NewL(const TDesC &aTypeIdentifier)[static]

Two-phased constructor

Parameters

const TDesC & aTypeIdentifierObject identifier (e.g. XML tag with namespace)

NumAttributes()

IMPORT_C TIntNumAttributes()

From MGECOAttributeProvider. Returns number of attributes

RemoveAttribute(const TDesC &)

IMPORT_C TIntRemoveAttribute(const TDesC &aAttrName)
Removes an attribute from this object
Since
Series 60 3.1

Parameters

const TDesC & aAttrNameAttribute to be removed

RemoveText()

IMPORT_C voidRemoveText()
Removes object's text data
Since
Series 60 3.1

SetAttributeL(const TDesC &, const TDesC &)

IMPORT_C voidSetAttributeL(const TDesC &aAttrName,
const TDesC &aAttrValue
)
Adds new attribute to this object Attribute's localization status will be EFalse.
Since
Series 60 3.1

Parameters

const TDesC & aAttrNameNew attribute name
const TDesC & aAttrValueNew attribute value

SetAttributeL(const TDesC &, const TDesC &, TBool)

IMPORT_C voidSetAttributeL(const TDesC &aAttrName,
const TDesC &aAttrValue,
TBoolaIsLocalized
)
Adds new attribute to this object
Since
Series 60 3.1

Parameters

const TDesC & aAttrNameNew attribute name
const TDesC & aAttrValueNew attribute value
TBool aIsLocalizedNew attribute's localization status

SetTextL(const TDesC &)

IMPORT_C voidSetTextL(const TDesC &aText)

Sets object's text data. This function will set the localization status for text to EFalse

Parameters

const TDesC & aTextNew text for the object

SetTextL(const TDesC &, TBool)

IMPORT_C voidSetTextL(const TDesC &aText,
TBoolaIsLocalized
)
Sets object's text data and localization status
Since
Series 60 3.1

Parameters

const TDesC & aTextNew text for the object
TBool aIsLocalizedtext data's localization status

TextDetailsL(TPtrC &, TBool &)

IMPORT_C voidTextDetailsL(TPtrC &aText,
TBool &aIsLocalized
)

From MGECOAttributeProvider. Returns node / data object text and and localization status for the text.

Parameters

TPtrC & aText
TBool & aIsLocalized

TypeIdentifier()

IMPORT_C const TDesC &TypeIdentifier()[virtual]

From CGECOObjectBase: Returns Object type identifier for this object

Member Data Documentation

RArray< TBool > iAttrLocStatus

RArray< TBool >iAttrLocStatus[protected]

CDesCArraySeg * iAttrNames

CDesCArraySeg *iAttrNames[protected]

CDesCArraySeg * iAttrValues

CDesCArraySeg *iAttrValues[protected]

HBufC * iText

HBufC *iText[protected]

TBool iTextLocStatus

TBool iTextLocStatus[protected]

HBufC * iTypeIdentifier

HBufC *iTypeIdentifier[protected]