GetList
is used to retrieve information about user installed packages, all applications, and handler applications. It takes a set of input parameters that define Type and Filter to retrieve the required information. It is available only in synchronous mode.
The following is an example for using GetList
:
appmanager_info = appmanager_handle.call('GetList', {'Type': u'Application'})
The following table summarizes the specification of GetList
:
Interface | IAppManager |
Description | Retrieves information about user installed packages or handler applications based on document path or MIME type. |
Response Model | Synchronous |
Pre-condition | Valid instance of IAppManager interface is instantiated. |
Post-condition | Nil |
Input Parameters
Input parameters specify the Type of package or application to retrieve, and the Filter for the retrieved information. Input parameter has properties called Type and Filter.
|
Output Parameters
Output parameters contain the requested information. They also contain ErrorCode
, and ErrorMessage
if the operation fails.
|
Errors
The following table lists the error codes and their values:
|
Error Messages
The following table lists the error messages and their description:
|
Example
The following sample code illustrates how to get the list of applications on S60 device:
import scriptext # Load the desired SAPI appmanager_handle = scriptext.load('Service.AppManager', 'IAppManager') try: f = open('c:\\data.txt', 'a+') app_info = [] appmanager_info = appmanager_handle.call('GetList', {'Type': u'Application'}) for item in appmanager_info: app_info.append(item['UID']) app_info.append(item['Caption']) print item['UID'] print item['Path'] print item['Caption'] print item['ShortCaption'] f.write(str(app_info)) except scriptext.ScriptextError, err: print "Error getting the list of Installed Application: ", err
See About this document... for information on suggesting changes.