2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00: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 02:34:54 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Base implementation for console messages.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsConsoleMessage.h"
|
2001-09-29 08:28:41 +00:00
|
|
|
#include "nsReadableUtils.h"
|
2000-04-18 02:34:54 +00:00
|
|
|
|
2003-09-08 00:31:50 +00:00
|
|
|
NS_IMPL_THREADSAFE_ISUPPORTS1(nsConsoleMessage, nsIConsoleMessage)
|
2000-04-18 02:34:54 +00:00
|
|
|
|
|
|
|
nsConsoleMessage::nsConsoleMessage()
|
|
|
|
{
|
|
|
|
}
|
2000-08-22 05:54:25 +00:00
|
|
|
|
|
|
|
nsConsoleMessage::nsConsoleMessage(const PRUnichar *message)
|
|
|
|
{
|
|
|
|
mMessage.Assign(message);
|
|
|
|
}
|
|
|
|
|
2000-04-18 02:34:54 +00:00
|
|
|
NS_IMETHODIMP
|
2008-02-12 04:11:07 +00:00
|
|
|
nsConsoleMessage::GetMessageMoz(PRUnichar **result) {
|
2001-09-29 08:28:41 +00:00
|
|
|
*result = ToNewUnicode(mMessage);
|
2000-04-18 02:34:54 +00:00
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
// NS_IMETHODIMP
|
|
|
|
// nsConsoleMessage::Init(const PRUnichar *message) {
|
|
|
|
// nsAutoString newMessage(message);
|
2001-09-29 08:28:41 +00:00
|
|
|
// mMessage = ToNewUnicode(newMessage);
|
2000-04-18 02:34:54 +00:00
|
|
|
// return NS_OK;
|
|
|
|
// }
|
|
|
|
|