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_C CGECODefaultObject ( ) [protected]

C++ default constructor.

~CGECODefaultObject()

IMPORT_C ~CGECODefaultObject ( ) [virtual]

Destructor.

Member Functions Documentation

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

IMPORT_C void AttributeDetailsL ( const TInt aIndex,
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 void AttributeDetailsL ( const TInt aIndex,
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 void BaseConstructL ( const TDesC & aTypeIdentifier ) [protected]

2nd phase constructor

Parameters

const TDesC & aTypeIdentifier

GetAttribute(const TDesC &, TPtrC &)

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

Parameters

const TDesC & aAttrName Attribute to search for
TPtrC & aAttrValue Attribute value returned

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

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

Parameters

const TDesC & aAttrName Attribute to search for
TPtrC & aAttrValue Attribute value returned
TBool & aIsLocalized Attribute localization status returned

GetText(TPtrC &)

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

Parameters

TPtrC & aText Text data returned

HasTextData()

IMPORT_C TBool HasTextData ( )

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 & aTypeIdentifier Object identifier (e.g. XML tag with namespace)

NumAttributes()

IMPORT_C TInt NumAttributes ( )

From MGECOAttributeProvider . Returns number of attributes

RemoveAttribute(const TDesC &)

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

Parameters

const TDesC & aAttrName Attribute to be removed

RemoveText()

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

SetAttributeL(const TDesC &, const TDesC &)

IMPORT_C void SetAttributeL ( 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 & aAttrName New attribute name
const TDesC & aAttrValue New attribute value

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

IMPORT_C void SetAttributeL ( const TDesC & aAttrName,
const TDesC & aAttrValue,
TBool aIsLocalized
)
Adds new attribute to this object
Since
Series 60 3.1

Parameters

const TDesC & aAttrName New attribute name
const TDesC & aAttrValue New attribute value
TBool aIsLocalized New attribute's localization status

SetTextL(const TDesC &)

IMPORT_C void SetTextL ( const TDesC & aText )

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

Parameters

const TDesC & aText New text for the object

SetTextL(const TDesC &, TBool)

IMPORT_C void SetTextL ( const TDesC & aText,
TBool aIsLocalized
)
Sets object's text data and localization status
Since
Series 60 3.1

Parameters

const TDesC & aText New text for the object
TBool aIsLocalized text data's localization status

TextDetailsL(TPtrC &, TBool &)

IMPORT_C void TextDetailsL ( 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]