CWidgetConfigHandler Class Reference

class CWidgetConfigHandler : public CBase
Parse the widget info file for widget entry creation. WidgetInstallerUI.lib
Since
3.1

Inherits from

  • CWidgetConfigHandler

Nested Classes and Structures

Public Member Functions
~CWidgetConfigHandler()
CWidgetConfigHandler *NewL()
voidParseInfoLocL(TPtrC8, RFs &, CWidgetPropertyValue &)
voidParseValidateBundleMetadataL(TPtr8, RPointerArray< CWidgetPropertyValue > &, RFs &)
Protected Member Functions
CWidgetConfigHandler()
voidConstructL()
voidGetContentL(RFs &, xmlDocPtr, xmlNode *, HBufC **)
voidToUnicodeL(TInt, TInt, TPtrC8, HBufC16 **, RFs &)
xmlNode *TraverseNextNode(xmlNode *)
voidValidateL(RPointerArray< CWidgetPropertyValue > &)
Private Member Functions
TWidgetPropertyId GetPropertyId(const TDesC &, DtdType, TWidgetPropertyDescriptionId &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enumDtdType { EDtdTypeUnknown, EDtdTypeApple, EDtdTypeNokia }
enumTWidgetPropertyDescriptionId {
EPropertyDescriptionAppleBundleIdentifier, EPropertyDescriptionAppleBundleDisplayName, EPropertyDescriptionAppleBundleVersion, EPropertyDescriptionAppleAllowFullAccess, EPropertyDescriptionNokiaIdentifier, EPropertyDescriptionNokiaDisplayName, EPropertyDescriptionNokiaVersion, EPropertyDescriptionMainHTML, EPropertyDescriptionAllowNetworkAccess, EPropertyDescriptionHeight, EPropertyDescriptionWidth, EPropertyDescriptionNokiaMiniViewEnable, EPropertyDescriptionNokiaPromptNeeded, EPropertyDescriptionNokiaPreInstalled, EPropertyDescriptionIdCount, EPropertyDescriptionIdInvalid
}
Private Attributes
DtdType iDtdType
TFixedArray< TWidgetProperty, EPropertyDescriptionIdCount >iProperties

Constructor & Destructor Documentation

CWidgetConfigHandler()

CWidgetConfigHandler()[protected]

C++ default constructor.

~CWidgetConfigHandler()

~CWidgetConfigHandler()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[protected]

Symbian 2nd phase constructor

GetContentL(RFs &, xmlDocPtr, xmlNode *, HBufC **)

voidGetContentL(RFs &aFileSession,
xmlDocPtraDoc,
xmlNode *aNode,
HBufC **aContent
)[protected]

Parameters

RFs & aFileSession
xmlDocPtr aDoc
xmlNode * aNode
HBufC ** aContent

GetPropertyId(const TDesC &, DtdType, TWidgetPropertyDescriptionId &)

TWidgetPropertyId GetPropertyId(const TDesC &aKeyName,
DtdTypeaDtdType,
TWidgetPropertyDescriptionId &aSpecialPropertyDescriptionId
)[private]

Parameters

const TDesC & aKeyName
DtdType aDtdType
TWidgetPropertyDescriptionId & aSpecialPropertyDescriptionId

NewL()

CWidgetConfigHandler *NewL()[static]

Two-phased constructor.

ParseInfoLocL(TPtrC8, RFs &, CWidgetPropertyValue &)

voidParseInfoLocL(TPtrC8aBuffer,
RFs &aFileSession,
CWidgetPropertyValue &aBundleDisplayName
)

Parse the localized buffer from infoPlist.strings in format of CFBundleDisplayName = "localized display name" and update the widgetInfo's displayname

Since
3.1

Parameters

TPtrC8 aBuffer
RFs & aFileSession
CWidgetPropertyValue & aBundleDisplayName

ParseValidateBundleMetadataL(TPtr8, RPointerArray< CWidgetPropertyValue > &, RFs &)

voidParseValidateBundleMetadataL(TPtr8aBuffer,
RPointerArray< CWidgetPropertyValue > &aPropertyValues,
RFs &aFileSession
)

Parse the widget info file and create CWidgetInfo and CWidgetData check for required keys and values

Since
3.1

Parameters

TPtr8 aBufferThe buffer contains widget info file content.
RPointerArray< CWidgetPropertyValue > & aPropertyValuesoutput filled with parsed values from buf
RFs & aFileSession

ToUnicodeL(TInt, TInt, TPtrC8, HBufC16 **, RFs &)

voidToUnicodeL(TIntaEncoding,
TIntaUnicodeSizeMultiplier,
TPtrC8aInBuf,
HBufC16 **aOutBuf,
RFs &aFileSession
)[protected]

Parameters

TInt aEncoding
TInt aUnicodeSizeMultiplier
TPtrC8 aInBuf
HBufC16 ** aOutBuf
RFs & aFileSession

TraverseNextNode(xmlNode *)

xmlNode *TraverseNextNode(xmlNode *aNode)[protected]

Traverse to the next Node

Since
3.1

Parameters

xmlNode * aNode

ValidateL(RPointerArray< CWidgetPropertyValue > &)

voidValidateL(RPointerArray< CWidgetPropertyValue > &aPropertyValues)[protected]

Parameters

RPointerArray< CWidgetPropertyValue > & aPropertyValues

Member Enumerations Documentation

Enum DtdType

Enumerators

EDtdTypeUnknown
EDtdTypeApple
EDtdTypeNokia

Enum TWidgetPropertyDescriptionId

Enumerators

EPropertyDescriptionAppleBundleIdentifier
EPropertyDescriptionAppleBundleDisplayName
EPropertyDescriptionAppleBundleVersion
EPropertyDescriptionAppleAllowFullAccess
EPropertyDescriptionNokiaIdentifier
EPropertyDescriptionNokiaDisplayName
EPropertyDescriptionNokiaVersion
EPropertyDescriptionMainHTML
EPropertyDescriptionAllowNetworkAccess
EPropertyDescriptionHeight
EPropertyDescriptionWidth
EPropertyDescriptionNokiaMiniViewEnable
EPropertyDescriptionNokiaPromptNeeded
EPropertyDescriptionNokiaPreInstalled
EPropertyDescriptionIdCount
EPropertyDescriptionIdInvalid

Member Data Documentation

DtdType iDtdType

DtdType iDtdType[private]

TFixedArray< TWidgetProperty, EPropertyDescriptionIdCount > iProperties

TFixedArray< TWidgetProperty, EPropertyDescriptionIdCount >iProperties[private]