Swi::UninstalledSisPackages Class Reference

class Swi::UninstalledSisPackages

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

Public Member Functions
IMPORT_C void ListL ( TDriveNumber , RPointerArray < CUninstalledPackageEntry > &)
IMPORT_C void RemoveL (const CUninstalledPackageEntry &)

Member Functions Documentation

ListL(TDriveNumber, RPointerArray< CUninstalledPackageEntry > &)

IMPORT_C void ListL ( TDriveNumber aDrive,
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.

TDriveNumber ) 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

Parameters

TDriveNumber aDrive Removable drive number (
RPointerArray < CUninstalledPackageEntry > & aPackageList Array of pointers to the uninstalled packages found on the specified drive (

RemoveL(const CUninstalledPackageEntry &)

IMPORT_C void RemoveL ( 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.

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

Parameters

const CUninstalledPackageEntry & aPackage The uninstalled package to remove (