Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
xpistub.cpp File Reference
#include "xpistub.h"
#include "nsIComponentManager.h"
#include "nsIComponentRegistrar.h"
#include "nsIServiceManager.h"
#include "nsCOMPtr.h"
#include "nsLocalFile.h"
#include "nscore.h"
#include "nspr.h"
#include "nsStubNotifier.h"
#include "nsISoftwareUpdate.h"
#include "nsSoftwareUpdateIIDs.h"
#include "nsPIXPIStubHook.h"
#include "plstr.h"

Go to the source code of this file.

Functions

static NS_DEFINE_IID (kSoftwareUpdateCID, NS_SoftwareUpdate_CID)
 PR_PUBLIC_API (nsresult) XPI_Init(const char *aProgramDir
 if (NS_FAILED(rv)) return rv
 NS_ASSERTION (registrar,"Null nsIComponentRegistrar")
 if (aProgramDir)
 if (!stub)
 PR_PUBLIC_API (void) XPI_Exit()
 PR_PUBLIC_API (PRInt32) XPI_Install(const char *aFile

Variables

static nsIXPIListenergListener = 0
static nsISoftwareUpdategXPI = 0
static nsIServiceManagergServiceMgr = 0
PRInt32 gInstallStatus
const char * aLogName
const char pfnXPIProgress
progressCB nsresult 
rv = NS_InitXPCOM2(&gServiceMgr, NULL, NULL)
nsCOMPtr< nsIComponentRegistrarregistrar = do_QueryInterface(gServiceMgr)
nsCOMPtr< nsPIXPIStubHookhook = do_QueryInterface(gXPI)
nsCOMPtr< nsILocalFileiDirSpec
nsStubListenerstub = new nsStubListener( progressCB )
const char * aArgs

Function Documentation

if ( NS_FAILED(rv )
if ( aProgramDir  )

Definition at line 181 of file xpistub.cpp.

Here is the call graph for this function:

if ( stub)

Definition at line 207 of file xpistub.cpp.

    {
        gXPI->Release();
        rv = NS_ERROR_OUT_OF_MEMORY;
    }
static NS_DEFINE_IID ( kSoftwareUpdateCID  ,
NS_SoftwareUpdate_CID   
) [static]
PR_PUBLIC_API ( nsresult  ) const

Definition at line 224 of file xpistub.cpp.

{
    if (gListener)
        gListener->Release();

    if (gXPI)
        gXPI->Release();

    NS_ShutdownXPCOM(gServiceMgr);

}

Here is the call graph for this function:

PR_PUBLIC_API ( PRInt32  ) const

Variable Documentation

const char* aArgs

Definition at line 244 of file xpistub.cpp.

const char* aLogName

Definition at line 96 of file xpistub.cpp.

Definition at line 88 of file xpistub.cpp.

nsIXPIListener* gListener = 0 [static]

Definition at line 82 of file xpistub.cpp.

Definition at line 84 of file xpistub.cpp.

nsISoftwareUpdate* gXPI = 0 [static]

Definition at line 83 of file xpistub.cpp.

Definition at line 178 of file xpistub.cpp.

Definition at line 179 of file xpistub.cpp.

Definition at line 150 of file xpistub.cpp.

Definition at line 96 of file xpistub.cpp.

Definition at line 206 of file xpistub.cpp.