Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions | Private Attributes
nsLoggingProgressListener Class Reference

#include <nsLoggingProgressNotifier.h>

Inheritance diagram for nsLoggingProgressListener:
Inheritance graph
Collaboration diagram for nsLoggingProgressListener:
Collaboration graph

List of all members.

Public Member Functions

 nsLoggingProgressListener ()
virtual ~nsLoggingProgressListener ()
void onInstallStart (in wstring URL)
void onInstallDone (in wstring URL, in long status)
void onPackageNameSet (in wstring URL, in wstring UIPackageName, in wstring version)
void onItemScheduled (in wstring message)
void onFinalizeProgress (in wstring message, in long itemNum, in long totNum)
void onLogComment (in wstring comment)

Private Member Functions

void GetTime (char **aString)

Private Attributes


Detailed Description

Definition at line 51 of file nsLoggingProgressNotifier.h.

Constructor & Destructor Documentation

Definition at line 63 of file nsLoggingProgressNotifier.cpp.

    : mLogStream(0)

Definition at line 68 of file nsLoggingProgressNotifier.cpp.

    if (mLogStream)
        NS_WARN_IF_FALSE(PR_FALSE, "We're being destroyed before script finishes!");
        delete mLogStream;
        mLogStream = 0;

Member Function Documentation

void nsLoggingProgressListener::GetTime ( char **  aString) [private]

Definition at line 305 of file nsLoggingProgressNotifier.cpp.

    PRExplodedTime et;
    char line[256];
    PR_ExplodeTime(PR_Now(), PR_LocalTimeParameters, &et);
    PR_FormatTimeUSEnglish(line, sizeof(line), "%Y-%m-%d %H:%M:%S", &et);
    *aString = PL_strdup(line);

Here is the call graph for this function:

void nsIXPIListener::onFinalizeProgress ( in wstring  message,
in long  itemNum,
in long  totNum 
) [inherited]
void nsIXPIListener::onInstallDone ( in wstring  URL,
in long  status 
) [inherited]
void nsIXPIListener::onInstallStart ( in wstring  URL) [inherited]
void nsIXPIListener::onItemScheduled ( in wstring  message) [inherited]
void nsIXPIListener::onLogComment ( in wstring  comment) [inherited]
void nsIXPIListener::onPackageNameSet ( in wstring  URL,
in wstring  UIPackageName,
in wstring  version 
) [inherited]

Member Data Documentation

Definition at line 65 of file nsLoggingProgressNotifier.h.

The documentation for this class was generated from the following files: