Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsRDFContainer.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIRDFContainer.h"
#include "nsIRDFContainerUtils.h"
#include "nsIRDFInMemoryDataSource.h"
#include "nsIRDFPropagatableDataSource.h"
#include "nsIRDFService.h"
#include "nsIServiceManager.h"
#include "nsRDFCID.h"
#include "nsString.h"
#include "nsXPIDLString.h"
#include "rdf.h"

Go to the source code of this file.

Classes

class  RDFContainerImpl

Defines

#define RDF_SEQ_LIST_LIMIT   8

Functions

static NS_DEFINE_CID (kRDFServiceCID, NS_RDFSERVICE_CID)
static NS_DEFINE_CID (kRDFContainerUtilsCID, NS_RDFCONTAINERUTILS_CID)
nsresult NS_NewRDFContainer (nsIRDFContainer **aResult)
nsresult NS_NewRDFContainer (nsIRDFDataSource *aDataSource, nsIRDFResource *aResource, nsIRDFContainer **aResult)

Variables

static const char kRDFNameSpaceURI [] = RDF_NAMESPACE_URI

Define Documentation

Definition at line 85 of file nsRDFContainer.cpp.


Function Documentation

static NS_DEFINE_CID ( kRDFServiceCID  ,
NS_RDFSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kRDFContainerUtilsCID  ,
NS_RDFCONTAINERUTILS_CID   
) [static]

Definition at line 457 of file nsRDFContainer.cpp.

{
    RDFContainerImpl* result = new RDFContainerImpl();
    if (! result)
        return NS_ERROR_OUT_OF_MEMORY;

    nsresult rv;
    rv = result->Init();
    if (NS_FAILED(rv)) {
        delete result;
        return rv;
    }

    NS_ADDREF(result);
    *aResult = result;
    return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewRDFContainer ( nsIRDFDataSource aDataSource,
nsIRDFResource aResource,
nsIRDFContainer **  aResult 
)

Definition at line 477 of file nsRDFContainer.cpp.

{
    nsresult rv;
    rv = NS_NewRDFContainer(aResult);
    if (NS_FAILED(rv)) return rv;

    rv = (*aResult)->Init(aDataSource, aResource);
    if (NS_FAILED(rv)) {
        NS_RELEASE(*aResult);
    }
    return rv;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 83 of file nsRDFContainer.cpp.