Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
nsSymantecDebugManager Class Reference

#include <nsJVMManager.h>

Inheritance diagram for nsSymantecDebugManager:
Inheritance graph
Collaboration diagram for nsSymantecDebugManager:
Collaboration graph

List of all members.

Public Member Functions

NS_DECL_AGGREGATED NS_IMETHOD SetDebugAgentPassword (PRInt32 pwd)

Static Public Member Functions

static NS_METHOD Create (nsISupports *outer, const nsIID &aIID, void **aInstancePtr, nsJVMManager *nsJVMManager)

Protected Member Functions

 nsSymantecDebugManager (nsISupports *outer, nsJVMManager *nsJVMManager)
virtual ~nsSymantecDebugManager (void)

Protected Attributes


Detailed Description

Definition at line 239 of file nsJVMManager.h.

Constructor & Destructor Documentation

nsSymantecDebugManager::nsSymantecDebugManager ( nsISupports *  outer,
nsJVMManager nsJVMManager 
) [protected]

Definition at line 49 of file scd.cpp.

    : fJVMMgr(jvmMgr)

Here is the caller graph for this function:

Definition at line 55 of file scd.cpp.


Member Function Documentation

NS_METHOD nsSymantecDebugManager::Create ( nsISupports *  outer,
const nsIID aIID,
void **  aInstancePtr,
nsJVMManager nsJVMManager 
) [static]

Definition at line 79 of file scd.cpp.

        if (!aInstancePtr)
            return NS_ERROR_INVALID_POINTER;
    if (outer && !aIID.Equals(kISupportsIID))
        return NS_ERROR_INVALID_ARG;
    nsSymantecDebugManager* dbgr = new nsSymantecDebugManager(outer, jvmMgr);
    if (dbgr == NULL)
        return NS_ERROR_OUT_OF_MEMORY;

        nsresult rv = dbgr->AggregatedQueryInterface(aIID, aInstancePtr);
        if (NS_FAILED(rv)) {
            delete dbgr;
                return rv;
    return rv;

Here is the call graph for this function:

Implements nsISymantecDebugManager.

Definition at line 103 of file scd.cpp.

#if defined(XP_WIN) && defined(_WIN32)
    HWND win = NULL;
    ** TODO:amusil Get to a hidden window for symantec debugger to get its password from.
    HWND win = FindNavigatorHiddenWindow();
    HANDLE sem;
    long err;

    /* set up by aHiddenFrameClass in CNetscapeApp::InitInstance */
    err = SetWindowLong(win, 0, pwd);     
    if (err == 0) {
//               ("SetWindowLong returned %ld (err=%d)\n", err, GetLastError()));
        /* continue so that we try to wake up the DebugManager */
    sem = OpenSemaphore(SEMAPHORE_MODIFY_STATE, FALSE, "Netscape-Symantec Debugger");
    if (sem) {
        ReleaseSemaphore(sem, 1, NULL);
    return NS_OK;
    return NS_ERROR_FAILURE;

Member Data Documentation

Definition at line 255 of file nsJVMManager.h.

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