Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <pkgremover.h>
Link against: pkgremover.lib
This item is not part of the S60 5th Edition SDK

Class Swi::UninstalledSisPackages

class UninstalledSisPackages;

Description

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

Members

Defined in Swi::UninstalledSisPackages:


Member functions


ListL(TDriveNumber,RPointerArray< CUninstalledPackageEntry > &)

Capability: ProtServ Required to access services of software installer
Capability: ReadDeviceData Required to access protected directories during listing operation
Capability: TrustedUI Required to access services of software installer

IMPORT_C static void ListL(TDriveNumber aDrive, RPointerArray< CUninstalledPackageEntry > &aPackageList);

Description

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.

Parameters

TDriveNumber aDrive

Removable drive number (

RPointerArray< Swi::CUninstalledPackageEntry > &aPackageList

Array of pointers to the uninstalled packages found on the specified drive (

Leave codes

One

of the system-wide error codes.

KErrNotRemovable

If the drive is not removable or is substed

KErrPackageFileCorrupt

If an error occurs during the processing of files

See also:


RemoveL(const CUninstalledPackageEntry &)

Capability: ProtServ Required to access services of software installer
Capability: TrustedUI Required to access services of software installer
Capability: WriteDeviceData Required to write to protected directories during remove operation

IMPORT_C static void RemoveL(const CUninstalledPackageEntry &aPackage);

Description

Remove the specified uninstalled package. The following restrictions apply to the files that will be removed:

Parameters

const Swi::CUninstalledPackageEntry &aPackage

The uninstalled package to remove (

Leave codes

One

of the system-wide error codes.

KErrNotRemovable

If the drive is not removable or is substed

KErrPackageIsInstalled

If the specified package is installed on the device

KErrPackageFileCorrupt

If an error occurs during the processing of files

See also: