CWidgetConfigHandler Class Reference

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

Inherits from

Nested Classes and Structures

Public Member Functions
~CWidgetConfigHandler ()
CWidgetConfigHandler * NewL ()
void ParseInfoLocL ( TPtrC8 , RFs &, CWidgetPropertyValue &)
void ParseValidateBundleMetadataL ( TPtr8 , RPointerArray < CWidgetPropertyValue > &, RFs &)
Protected Member Functions
CWidgetConfigHandler ()
void ConstructL ()
void GetContentL ( RFs &, xmlDocPtr , xmlNode *, HBufC **)
void ToUnicodeL ( TInt , TInt , TPtrC8 , HBufC16 **, RFs &)
xmlNode * TraverseNextNode ( xmlNode *)
void ValidateL ( 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
enum DtdType { EDtdTypeUnknown , EDtdTypeApple , EDtdTypeNokia }
enum TWidgetPropertyDescriptionId {
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()

void ConstructL ( ) [protected]

Symbian 2nd phase constructor

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

void GetContentL ( RFs & aFileSession,
xmlDocPtr aDoc,
xmlNode * aNode,
HBufC ** aContent
) [protected]

Parameters

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

GetPropertyId(const TDesC &, DtdType, TWidgetPropertyDescriptionId &)

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

Parameters

const TDesC & aKeyName
DtdType aDtdType
TWidgetPropertyDescriptionId & aSpecialPropertyDescriptionId

NewL()

CWidgetConfigHandler * NewL ( ) [static]

Two-phased constructor.

ParseInfoLocL(TPtrC8, RFs &, CWidgetPropertyValue &)

void ParseInfoLocL ( TPtrC8 aBuffer,
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 &)

void ParseValidateBundleMetadataL ( TPtr8 aBuffer,
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 aBuffer The buffer contains widget info file content.
RPointerArray < CWidgetPropertyValue > & aPropertyValues output filled with parsed values from buf
RFs & aFileSession

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

void ToUnicodeL ( TInt aEncoding,
TInt aUnicodeSizeMultiplier,
TPtrC8 aInBuf,
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 > &)

void ValidateL ( 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]