Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIConsoleService_MOZILLA_1_8_BRANCH Interface Reference

Temporary interface for Gecko 1.8.1. More...

import "nsIConsoleService.idl";

Inheritance diagram for nsIConsoleService_MOZILLA_1_8_BRANCH:
Inheritance graph
[legend]
Collaboration diagram for nsIConsoleService_MOZILLA_1_8_BRANCH:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void reset ()
 Clear the message buffer (e.g.
void logMessage (in nsIConsoleMessage message)
void logStringMessage (in wstring message)
 Convenience method for logging simple messages.
void getMessageArray ([array, size_is(count)] out nsIConsoleMessage messages, out PRUint32 count)
 Get an array of all the messages logged so far.
void registerListener (in nsIConsoleListener listener)
 To guard against stack overflows from listeners that could log messages (it's easy to do this inadvertently from listeners implemented in JavaScript), we don't call any listeners when another error is already being logged.
void unregisterListener (in nsIConsoleListener listener)
 Each registered listener should also be unregistered.

Detailed Description

Temporary interface for Gecko 1.8.1.

TEMPORARY

Definition at line 82 of file nsIConsoleService.idl.


Member Function Documentation

void nsIConsoleService::getMessageArray ( [array, size_is(count)] out nsIConsoleMessage  messages,
out PRUint32  count 
) [inherited]

Get an array of all the messages logged so far.

If no messages are logged, this function will return a count of 0, but still will allocate one word for messages, so as to show up as a 0-length array when called from script.

void nsIConsoleService::logStringMessage ( in wstring  message) [inherited]

Convenience method for logging simple messages.

To guard against stack overflows from listeners that could log messages (it's easy to do this inadvertently from listeners implemented in JavaScript), we don't call any listeners when another error is already being logged.

Clear the message buffer (e.g.

for privacy reasons).

Each registered listener should also be unregistered.


The documentation for this interface was generated from the following file: