Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
xptiprivate.h File Reference
#include "nscore.h"
#include "nsISupports.h"
#include "xpt_struct.h"
#include "xpt_xdr.h"
#include "nsIInterfaceInfo.h"
#include "nsIInterfaceInfoManager.h"
#include "xptinfo.h"
#include "nsIXPTLoader.h"
#include "nsIServiceManager.h"
#include "nsILocalFile.h"
#include "nsIDirectoryService.h"
#include "nsDirectoryServiceDefs.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsIWeakReference.h"
#include "nsCRT.h"
#include "nsMemory.h"
#include "nsISupportsArray.h"
#include "nsSupportsArray.h"
#include "nsInt64.h"
#include "nsQuickSort.h"
#include "nsXPIDLString.h"
#include "nsIInputStream.h"
#include "nsAutoLock.h"
#include "pldhash.h"
#include "plstr.h"
#include "prprf.h"
#include "prio.h"
#include "prtime.h"
#include "prenv.h"
#include <stdio.h>
#include <stdarg.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  xptiTypelib
class  xptiTypelibGuts
class  xptiFile
class  xptiZipItem
class  xptiWorkingSet
class  xptiInterfaceGuts
class  xptiInfoFlags
class  xptiInterfaceEntry
struct  xptiHashEntry
class  xptiInterfaceInfo
class  xptiManifest
class  xptiZipLoaderSink
class  xptiZipLoader
class  xptiFileType
class  xptiAutoLog
class  xptiInterfaceInfoManager

Defines

#define LOG_RESOLVE(x)   ((void)0)
#define LOG_LOAD(x)   ((void)0)
#define LOG_AUTOREG(x)   xptiInterfaceInfoManager::WriteToLog x

Functions

nsresult xptiCloneLocalFile (nsILocalFile *aLocalFile, nsILocalFile **aCloneLocalFile)
nsresult xptiCloneElementAsLocalFile (nsISupportsArray *aArray, PRUint32 aIndex, nsILocalFile **aLocalFile)

Define Documentation

Definition at line 99 of file xptiprivate.h.

#define LOG_LOAD (   x)    ((void)0)

Definition at line 98 of file xptiprivate.h.

#define LOG_RESOLVE (   x)    ((void)0)

Definition at line 97 of file xptiprivate.h.


Function Documentation

nsresult xptiCloneElementAsLocalFile ( nsISupportsArray aArray,
PRUint32  aIndex,
nsILocalFile **  aLocalFile 
)

Definition at line 152 of file xptiMisc.cpp.

{
    nsresult rv;
    nsCOMPtr<nsILocalFile> original;

    rv = aArray->QueryElementAt(aIndex, NS_GET_IID(nsILocalFile), 
                                getter_AddRefs(original));
    if(NS_FAILED(rv))
        return rv;

    return xptiCloneLocalFile(original, aLocalFile);
}       

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult xptiCloneLocalFile ( nsILocalFile aLocalFile,
nsILocalFile **  aCloneLocalFile 
)

Definition at line 137 of file xptiMisc.cpp.

{
    nsresult rv;
    nsCOMPtr<nsIFile> cloneRaw;
 
    rv = aLocalFile->Clone(getter_AddRefs(cloneRaw));
    if(NS_FAILED(rv))
        return rv;

    return CallQueryInterface(cloneRaw, aCloneLocalFile);
}                        

Here is the call graph for this function:

Here is the caller graph for this function: