Home  |  Blog Help Out  |  How-To Guides  |  Why Use Mozilla  |  About Jeremy

Extensions

Contact
Jeremy Gillick

Get Firefox!

ExtensionUninstaller API Technical Documentation

< BACK | INDEX

ExtuninstallLogItem Object

This is the object that holds the data for individual log elements.

Properties

Integer action
Array children
Integer errorCode
String errorMsg
String message
Integer status
String type
Methods

Constructor ExtuninstallLogItem ( Integer action, Integer status, String message, Integer errorCode, String errorMsg )
ExtuninstallLogItem addChild ( ExtuninstallLogItem logItem )
Boolean hasError ( )
Boolean hasWarning ( )

Property Details

Integer action
The current action that is being logged.
Possible values are defined in the ExtUninstallLogger object as
ADD_ACTION, EDIT_ACTION, EXECUTE_ACTION, READ_ACTION, REMOVE_ACTION, UNINSTALL_ACTION and WRITE_ACTION

Array children
Returns an array of child ExtuninstallLogItem objects for this log item.

Integer errorCode
The error code for this log item, or null.

String errorMsg
Returns the error message for this log item, or null.

String message
The short message that should describe the action.

Integer status
The current status for this log item.
Possible values are defined in theExtUninstallLogger object as
EMPTY_STATUS, FAIL_STATUS, SUCCESS_STATUS and WARN_STATUS

String type (READ ONLY)
Returns "ExtuninstallLogItem"

Method Details

Contructor ExtuninstallLogItem ( Integer action, Integer status, String message, Integer errorCode, String errorMsg )
Creates the object.
action:
Action of the log item. Values defined in the ExtUninstallLogger object
status:
End status of the log item. Values defined in the ExtUninstallLogger object
message:
String that should describe the log's action
errorCode:
Error code number
errorMsg:
Error message

ExtuninstallLogItem addChild ( ExtuninstallLogItem logItem )
Appends a new child log item to this log item.
Returns the log item added.
ExtuninstallLogItem:
Log item to add
Boolean hasError ( )
Returns true if there are any errors in this item or it's child logs
Boolean hasWarning ( )
Returns true if there are any warnings in this item or it's child logs

< BACK | INDEX



Copyright © 2004 Jeremy Gillick, All rights reserved
All the content and code presented on this site is owned solely by Jeremy Gillick