Swi::UninstalledSisPackages Class Reference

#include <mw/swi/pkgremover.h>

Link against: pkgremover.lib

class Swi::UninstalledSisPackages
Public Member Functions
IMPORT_C voidListL(TDriveNumber, RPointerArray< CUninstalledPackageEntry > &)
IMPORT_C voidRemoveL(const CUninstalledPackageEntry &)

Detailed Description

This class provides static methods for managing uninstalled native packages (SIS files) that are taking up space on removable drives.

Member Function Documentation

ListL ( TDriveNumber, RPointerArray< CUninstalledPackageEntry > & )

IMPORT_C voidListL(TDriveNumberaDrive,
RPointerArray< CUninstalledPackageEntry > &aPackageList
)[static]

Get the list of uninstalled packages on a specified removable drive. In this context uninstalled means 'not known by this phone'. This will list uninstalled PA & PP files found in the SWI Daemon's private directory, and will also search the sis registry files on the drive for uninstalled applications.

See also: TDriveNumber)

See also: CUninstalledPackageEntry). This array is assumed to be empty. The caller takes ownership of the elements added to the array.

leave
One of the system-wide error codes.
leave
KErrNotRemovable If the drive is not removable or is substed
leave
KErrPackageFileCorrupt If an error occurs during the processing of files
capability
ReadDeviceData Required to access protected directories during listing operation
capability
ProtServ Required to access services of software installer
capability
TrustedUI Required to access services of software installer
ParameterDescription
aDriveRemovable drive number (
aPackageListArray of pointers to the uninstalled packages found on the specified drive (

RemoveL ( const CUninstalledPackageEntry & )

IMPORT_C voidRemoveL(const CUninstalledPackageEntry &aPackage)[static]
Remove the specified uninstalled package. The following restrictions apply to the files that will be removed:
  • For security reasons only files on the same drive as the package controller will be removed. Files on other drives will be orphaned.

  • Files belonging to other packages will not be removed.

See also: CUninstalledPackageEntry)

leave
One of the system-wide error codes.
leave
KErrNotRemovable If the drive is not removable or is substed
leave
KErrPackageIsInstalled If the specified package is installed on the device
leave
KErrPackageFileCorrupt If an error occurs during the processing of files
capability
WriteDeviceData Required to write to protected directories during remove operation
capability
ProtServ Required to access services of software installer
capability
TrustedUI Required to access services of software installer
ParameterDescription
aPackageThe uninstalled package to remove (