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
[legend]
Collaboration diagram for nsSymantecDebugManager:
Collaboration graph
[legend]

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

nsJVMManagerfJVMMgr

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)
{
    NS_INIT_AGGREGATED(outer);
}

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) {
//        PR_LOG(NSJAVA, PR_LOG_ALWAYS,
//               ("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);
        CloseHandle(sem);
    }
    return NS_OK;
#else
    return NS_ERROR_FAILURE;
#endif
}

Member Data Documentation

Definition at line 255 of file nsJVMManager.h.


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