Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsFileSpecImpl.cpp File Reference
#include "nsFileSpecImpl.h"
#include "nsIFileStream.h"
#include "nsFileStream.h"
#include "nsILocalFile.h"
#include "nsNativeCharsetUtils.h"
#include "prmem.h"

Go to the source code of this file.

Defines

#define TEST_OUT_PTR(p)
#define FILESPEC(ifilespec)   ((nsFileSpecImpl*)ifilespec)->mFileSpec

Functions

nsresult NS_NewFileSpecWithSpec (const nsFileSpec &aSrcFileSpec, nsIFileSpec **result)
nsresult NS_NewFileSpec (nsIFileSpec **result)
nsresult NS_NewFileSpecFromIFile (nsIFile *aFile, nsIFileSpec **result)
nsresult NS_NewDirectoryIterator (nsIDirectoryIterator **result)

Define Documentation

#define FILESPEC (   ifilespec)    ((nsFileSpecImpl*)ifilespec)->mFileSpec

Definition at line 98 of file nsFileSpecImpl.cpp.

Definition at line 56 of file nsFileSpecImpl.cpp.


Function Documentation

Definition at line 891 of file nsFileSpecImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 867 of file nsFileSpecImpl.cpp.

{
       return nsFileSpecImpl::Create(nsnull, NS_GET_IID(nsIFileSpec), (void**)result);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewFileSpecFromIFile ( nsIFile aFile,
nsIFileSpec **  result 
)

Definition at line 874 of file nsFileSpecImpl.cpp.

{
        nsresult rv = nsFileSpecImpl::Create(nsnull, NS_GET_IID(nsIFileSpec), (void**)result);
     if (NS_FAILED(rv)) return rv;

     nsCAutoString path;
     rv = aFile->GetNativePath(path);
     if (NS_FAILED(rv)) return rv;

     rv = (*result)->SetNativePath(path.get());
     if (NS_FAILED(rv))
         NS_RELEASE(*result);
     return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewFileSpecWithSpec ( const nsFileSpec aSrcFileSpec,
nsIFileSpec **  result 
)

Definition at line 857 of file nsFileSpecImpl.cpp.

{
       if (!result)
              return NS_ERROR_NULL_POINTER;

       return nsFileSpecImpl::MakeInterface(aSrcFileSpec, result);
}

Here is the caller graph for this function: