Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsFileSystemDataSource.cpp File Reference
#include <ctype.h>
#include <stdio.h>
#include "nscore.h"
#include "nsCOMPtr.h"
#include "nsIEnumerator.h"
#include "nsIRDFDataSource.h"
#include "nsIRDFNode.h"
#include "nsIRDFObserver.h"
#include "nsIServiceManager.h"
#include "nsString.h"
#include "nsVoidArray.h"
#include "nsXPIDLString.h"
#include "nsRDFCID.h"
#include "rdfutil.h"
#include "nsIRDFService.h"
#include "plhash.h"
#include "plstr.h"
#include "prlong.h"
#include "prlog.h"
#include "prmem.h"
#include "prprf.h"
#include "prio.h"
#include "rdf.h"
#include "nsIRDFFileSystem.h"
#include "nsEnumeratorUtils.h"
#include "nsIURL.h"
#include "nsIFileURL.h"
#include "nsNetUtil.h"
#include "nsIChannel.h"
#include "nsIFile.h"
#include "nsEscape.h"
#include "nsCRT.h"

Go to the source code of this file.

Classes

class  FileSystemDataSource

Defines

#define NS_MOZICON_SCHEME   "moz-icon:"

Functions

static NS_DEFINE_CID (kRDFServiceCID, NS_RDFSERVICE_CID)
nsresult NS_NewRDFFileSystemDataSource (nsIRDFDataSource **result)

Variables

static const char kFileProtocol [] = "file://"
static nsIRDFServicegRDFService = nsnull
static FileSystemDataSourcegFileSystemDataSource = nsnull

Define Documentation

#define NS_MOZICON_SCHEME   "moz-icon:"

Definition at line 101 of file nsFileSystemDataSource.cpp.


Function Documentation

static NS_DEFINE_CID ( kRDFServiceCID  ,
NS_RDFSERVICE_CID   
) [static]

Definition at line 1114 of file nsFileSystemDataSource.cpp.

{
    if (!result)
        return NS_ERROR_NULL_POINTER;

    // only one file system data source
    if (nsnull == gFileSystemDataSource)
    {
        if ((gFileSystemDataSource = new FileSystemDataSource()) == nsnull)
        {
            return NS_ERROR_OUT_OF_MEMORY;
        }
    }
    NS_ADDREF(gFileSystemDataSource);
    *result = gFileSystemDataSource;
    return NS_OK;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 184 of file nsFileSystemDataSource.cpp.

Definition at line 183 of file nsFileSystemDataSource.cpp.

const char kFileProtocol[] = "file://" [static]

Definition at line 103 of file nsFileSystemDataSource.cpp.