CWidgetInstaller Class Reference
class CWidgetInstaller : public CBase
|
This class handles the install.
WidgetBackupRestore.exe
-
Since
-
3.1
Constructor & Destructor Documentation
CWidgetInstaller()
CWidgetInstaller
|
(
|
)
|
[private]
|
~CWidgetInstaller()
~CWidgetInstaller
|
(
|
)
|
[virtual]
|
Member Functions Documentation
BackupL()
void
|
BackupL
|
(
|
)
|
[private]
|
When overwriting an installed widget, backup so can restore on error
-
Since
-
3.2
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
ConvertIconL(TUid &, const TDesC &)
void
|
ConvertIconL
|
(
|
TUid
&
|
aUid,
|
|
const
TDesC
&
|
aIconPath
|
|
)
|
[private]
|
ConvertIconL Specific to WidgetPreInstaller converts Icon.png to mbm 5.0
DeregisterWidgetL(const TUid &)
IMPORT_C void
|
DeregisterWidgetL
|
(
|
const
TUid
&
|
aUid
|
)
|
|
DriveInfo(TInt, TInt64 &)
FinishInstallL(TInt)
IMPORT_C void
|
FinishInstallL
|
(
|
TInt
|
aErr
|
)
|
|
Called when installation or update is finished, do the final steps of registration, file clean up (remove temporary files, display complete message. Or handle error.
FixWidgetPropsL()
void
|
FixWidgetPropsL
|
(
|
)
|
[private]
|
Fix the widget properties need to restore from the backup
-
Since
-
5.0
GetDirSizeL(const TDesC &)
TInt
|
GetDirSizeL
|
(
|
const
TDesC
&
|
aDir
|
)
|
[private]
|
InstallL(TDesC16 &)
IMPORT_C void
|
InstallL
|
(
|
TDesC16
&
|
aRestoreDir
|
)
|
|
Handle install request.
-
Since
-
3.1
NotifyCompletionL(TInt)
void
|
NotifyCompletionL
|
(
|
TInt
|
aErr
|
)
|
|
Used for notify icon convertion complete
-
Since
-
5.0
PreprocessWidgetBundleL(TDesC &)
TInt
|
PreprocessWidgetBundleL
|
(
|
TDesC
&
|
aRestoreDir
|
)
|
[private]
|
Create widget entry by parsing the info.plist, insert the entry into the entry list if the entry is not already existing.
-
Since
-
3.1
ProcessRestoreDirL(TDesC &)
void
|
ProcessRestoreDirL
|
(
|
TDesC
&
|
aRestoreDir
|
)
|
[private]
|
RegisterWidgetL(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TUid &)
IMPORT_C void
|
RegisterWidgetL
|
(
|
const
TDesC
&
|
aMainHTML,
|
|
const
TDesC
&
|
aBundleDisplayName,
|
|
const
TDesC
&
|
aIconPath,
|
|
const
TDesC
&
|
aDriveName,
|
|
const
TUid
&
|
aUid
|
|
)
|
|
Parameters
const
TDesC
& aMainHTML
|
|
const
TDesC
& aBundleDisplayName
|
|
const
TDesC
& aIconPath
|
|
const
TDesC
& aDriveName
|
|
const
TUid
& aUid
|
|
RenameIconFile(RFs &, RPointerArray< CWidgetPropertyValue > *)
If widget registry entry is assigned a new UID, then the processed icon file (mbm file), if any, needs to be renamed with the new UID.
RestoreL()
void
|
RestoreL
|
(
|
)
|
[private]
|
When overwriting an installed widget, restore on error
-
Since
-
3.2
SearchByExtL(const TDesC &, TUint, const TDesC &, TFileName &)
Return the name of file/dir found given path of dir to search in and search critiria. 3.2
SearchWidgetRootL(const TDesC &, TFileName &)
Return the name of dir which contains info.plist file.
SetDriveAndCheckSpaceL()
TBool
|
SetDriveAndCheckSpaceL
|
(
|
)
|
[private]
|
Set drive to C: to install/update the widget
-
Since
-
3.2
UpdateWidgetBasePathL(TDriveUnit &)
void
|
UpdateWidgetBasePathL
|
(
|
TDriveUnit
&
|
aDrive
|
)
|
[private]
|
update basepath of widget
-
Since
-
3.2
WidgetPropertiesFromInstalledWidgetL(RFs &, const TDesC &, const TDesC &, TUid)
Rebuild registry properties (except UID) from installed widget dir.
Member Data Documentation
CWidgetRegistrationManager * iAppManager
TFileName
iBundleRootName
TBool
iOverwriting
TBool
|
iOverwriting
|
[private]
|
RPointerArray< CWidgetPropertyValue > iPropertyValues
RWidgetRegistryClientSession
iRegistry
TBool
iServerConnected
TBool
|
iServerConnected
|
[private]
|
CWidgetConfigHandler * iWidgetConfigHandler
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.