Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsRelatedLinksHandler.cpp File Reference
#include "nsRelatedLinksHandlerImpl.h"
#include "nsCRT.h"
#include "nsEnumeratorUtils.h"
#include "nsIInputStream.h"
#include "nsIRDFNode.h"
#include "nsIRDFObserver.h"
#include "nsIRDFPurgeableDataSource.h"
#include "nsIServiceManager.h"
#include "nsIStreamListener.h"
#include "nsIURL.h"
#include "nsNetUtil.h"
#include "nsIPref.h"
#include "nsRDFCID.h"
#include "nsVoidArray.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nscore.h"
#include "plhash.h"
#include "plstr.h"
#include "prio.h"
#include "prmem.h"
#include "prprf.h"
#include "rdf.h"
#include "nsICharsetConverterManager.h"
#include "nsICharsetAlias.h"

Go to the source code of this file.

Classes

class  RelatedLinksStreamListener

Functions

static NS_DEFINE_CID (kRDFServiceCID, NS_RDFSERVICE_CID)
static NS_DEFINE_CID (kRDFInMemoryDataSourceCID, NS_RDFINMEMORYDATASOURCE_CID)
static NS_DEFINE_CID (kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID)
static NS_DEFINE_CID (kPrefCID, NS_PREF_CID)
nsresult NS_NewRelatedLinksStreamListener (nsIRDFDataSource *aDataSource, nsIStreamListener **aResult)

Variables

static const char kURINC_RelatedLinksRoot [] = "NC:RelatedLinks"

Function Documentation

static NS_DEFINE_CID ( kRDFServiceCID  ,
NS_RDFSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kRDFInMemoryDataSourceCID  ,
NS_RDFINMEMORYDATASOURCE_CID   
) [static]
static NS_DEFINE_CID ( kCharsetConverterManagerCID  ,
NS_ICHARSETCONVERTERMANAGER_CID   
) [static]
static NS_DEFINE_CID ( kPrefCID  ,
NS_PREF_CID   
) [static]

Definition at line 156 of file nsRelatedLinksHandler.cpp.

{
        RelatedLinksStreamListener* result =
               new RelatedLinksStreamListener(aDataSource);

        if (! result)
               return NS_ERROR_OUT_OF_MEMORY;

        nsresult 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:


Variable Documentation

const char kURINC_RelatedLinksRoot[] = "NC:RelatedLinks" [static]

Definition at line 79 of file nsRelatedLinksHandler.cpp.