2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-04-18 06:34:54 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is intended as a base interface; implementations may want to
|
|
|
|
* provide an object that can be qi'ed to provide more specific
|
|
|
|
* message information.
|
|
|
|
*/
|
2014-09-23 02:32:21 +04:00
|
|
|
[scriptable, uuid(3aba9617-10e2-4839-83ae-2e6fc4df428b)]
|
2000-04-18 06:34:54 +04:00
|
|
|
interface nsIConsoleMessage : nsISupports
|
|
|
|
{
|
2014-09-23 02:32:21 +04:00
|
|
|
/** Log level constants. */
|
|
|
|
const uint32_t debug = 0;
|
|
|
|
const uint32_t info = 1;
|
|
|
|
const uint32_t warn = 2;
|
|
|
|
const uint32_t error = 3;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The log level of this message.
|
|
|
|
*/
|
|
|
|
readonly attribute uint32_t logLevel;
|
|
|
|
|
2013-05-24 22:36:56 +04:00
|
|
|
/**
|
|
|
|
* The time (in milliseconds from the Epoch) that the message instance
|
|
|
|
* was initialised.
|
|
|
|
* The timestamp is initialized as JS_now/1000 so that it can be
|
|
|
|
* compared to Date.now in Javascript.
|
|
|
|
*/
|
|
|
|
readonly attribute long long timeStamp;
|
|
|
|
|
2008-02-12 07:11:07 +03:00
|
|
|
[binaryname(MessageMoz)] readonly attribute wstring message;
|
2013-05-24 22:36:56 +04:00
|
|
|
|
|
|
|
AUTF8String toString();
|
2000-04-18 06:34:54 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
%{ C++
|
|
|
|
#define NS_CONSOLEMESSAGE_CID \
|
2013-05-24 22:36:56 +04:00
|
|
|
{ 0x024efc9e, 0x54dc, 0x4844, { 0x80, 0x4b, 0x41, 0xd3, 0xf3, 0x69, 0x90, 0x73 }}
|
2000-04-18 06:34:54 +04:00
|
|
|
%}
|