Back to index

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

#include <nsInstall.h>

Collaboration diagram for nsInstallInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsInstallInfo (PRUint32 aInstallType, nsIFile *aFile, const PRUnichar *aURL, const PRUnichar *aArgs, nsIPrincipal *mPrincipal, PRUint32 aFlags, nsIXPIListener *aListener)
virtual ~nsInstallInfo ()
nsIFileGetFile ()
const PRUnicharGetURL ()
const PRUnicharGetArguments ()
PRUint32 GetFlags ()
PRUint32 GetType ()
nsIXPIListenerGetListener ()
CHROMEREG_IFACEGetChromeRegistry ()
const nsCStringGetFileJARSpec ()

Public Attributes

nsCOMPtr< nsIPrincipalmPrincipal

Private Attributes

nsresult mError
PRUint32 mType
PRUint32 mFlags
nsString mURL
nsString mArgs
nsCOMPtr< nsIFilemFile
nsCOMPtr< nsIXPIListenermListener
nsCOMPtr< CHROMEREG_IFACEmChromeRegistry
nsCString mFileJARSpec

Detailed Description

Definition at line 96 of file nsInstall.h.


Constructor & Destructor Documentation

nsInstallInfo::nsInstallInfo ( PRUint32  aInstallType,
nsIFile aFile,
const PRUnichar aURL,
const PRUnichar aArgs,
nsIPrincipal mPrincipal,
PRUint32  aFlags,
nsIXPIListener aListener 
)

Definition at line 170 of file nsInstall.cpp.

: mPrincipal(aPrincipal),
  mError(0),
  mType(aInstallType),
  mFlags(flags),
  mURL(aURL),
  mArgs(aArgs),
  mFile(aFile),
  mListener(aListener)
{
    MOZ_COUNT_CTOR(nsInstallInfo);

    nsresult rv;

    // Failure is an option, and will occur in the stub installer.

    NS_WITH_ALWAYS_PROXIED_SERVICE(CHROMEREG_IFACE, cr,
                                   NS_CHROMEREGISTRY_CONTRACTID,
                                   NS_UI_THREAD_EVENTQ, &rv);
    if (NS_SUCCEEDED(rv)) {
      mChromeRegistry = cr;

      nsCAutoString spec;
      rv = NS_GetURLSpecFromFile(aFile, spec);
      if (NS_SUCCEEDED(rv)) {
        spec.Insert(NS_LITERAL_CSTRING("jar:"), 0);
        spec.AppendLiteral("!/");
#ifdef MOZ_XUL_APP
        NS_NewURI(getter_AddRefs(mFileJARURL), spec);
#else
        mFileJARSpec.Assign(spec);
#endif
      }
    }

#ifdef MOZ_XUL_APP
    NS_WITH_ALWAYS_PROXIED_SERVICE(nsIExtensionManager, em,
                                   "@mozilla.org/extensions/manager;1",
                                   NS_UI_THREAD_EVENTQ, &rv);
    if (NS_SUCCEEDED(rv))
      mExtensionManager = em;

    nsCOMPtr<nsIFile> manifest;
    rv = NS_GetSpecialDirectory(NS_APP_CHROME_DIR, getter_AddRefs(manifest));
    if (NS_SUCCEEDED(rv))
      NS_NewFileURI(getter_AddRefs(mManifestURL), manifest);
#endif
}

Here is the call graph for this function:

Definition at line 226 of file nsInstall.cpp.


Member Function Documentation

Definition at line 112 of file nsInstall.h.

{ return mArgs.get(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 116 of file nsInstall.h.

{ return mChromeRegistry; }

Here is the caller graph for this function:

Definition at line 110 of file nsInstall.h.

{ return mFile.get(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 123 of file nsInstall.h.

{ return mFileJARSpec; }

Here is the caller graph for this function:

Definition at line 113 of file nsInstall.h.

{ return mFlags; }

Here is the caller graph for this function:

Definition at line 115 of file nsInstall.h.

{ return mListener.get(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 114 of file nsInstall.h.

{ return mType; }

Here is the caller graph for this function:

Definition at line 111 of file nsInstall.h.

{ return mURL.get(); }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 135 of file nsInstall.h.

Definition at line 139 of file nsInstall.h.

Definition at line 130 of file nsInstall.h.

Definition at line 137 of file nsInstall.h.

Definition at line 146 of file nsInstall.h.

Definition at line 133 of file nsInstall.h.

Definition at line 138 of file nsInstall.h.

Definition at line 126 of file nsInstall.h.

Definition at line 132 of file nsInstall.h.

Definition at line 134 of file nsInstall.h.


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