Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsDirectoryDataSource.cpp File Reference
#include "nsDirectoryDataSource.h"
#include "nsAbBaseCID.h"
#include "nsIAbDirectory.h"
#include "nsIAddrBookSession.h"
#include "nsIAbCard.h"
#include "rdf.h"
#include "nsIRDFService.h"
#include "nsRDFCID.h"
#include "nsIRDFNode.h"
#include "nsEnumeratorUtils.h"
#include "nsAdapterEnumerator.h"
#include "nsIObserverService.h"
#include "nsString.h"
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
#include "nsMsgRDFUtils.h"
#include "nsILocaleService.h"
#include "nsCollationCID.h"
#include "prmem.h"

Go to the source code of this file.

Defines

#define NC_RDF_DIRNAME   "http://home.netscape.com/NC-rdf#DirName"
#define NC_RDF_CARDCHILD   "http://home.netscape.com/NC-rdf#CardChild"
#define NC_RDF_DIRURI   "http://home.netscape.com/NC-rdf#DirUri"
#define NC_RDF_ISMAILLIST   "http://home.netscape.com/NC-rdf#IsMailList"
#define NC_RDF_ISREMOTE   "http://home.netscape.com/NC-rdf#IsRemote"
#define NC_RDF_ISWRITEABLE   "http://home.netscape.com/NC-rdf#IsWriteable"
#define NC_RDF_DIRTREENAMESORT   "http://home.netscape.com/NC-rdf#DirTreeNameSort"
#define NC_RDF_MODIFY   "http://home.netscape.com/NC-rdf#Modify"
#define NC_RDF_DELETECARDS   "http://home.netscape.com/NC-rdf#DeleteCards"

Functions

static NS_DEFINE_CID (kCollationFactoryCID, NS_COLLATIONFACTORY_CID)
nsresult NS_NewAbDirectoryDataSource (const nsIID &iid, void **result)

Define Documentation

#define NC_RDF_CARDCHILD   "http://home.netscape.com/NC-rdf#CardChild"

Definition at line 66 of file nsDirectoryDataSource.cpp.

#define NC_RDF_DELETECARDS   "http://home.netscape.com/NC-rdf#DeleteCards"

Definition at line 75 of file nsDirectoryDataSource.cpp.

#define NC_RDF_DIRNAME   "http://home.netscape.com/NC-rdf#DirName"

Definition at line 65 of file nsDirectoryDataSource.cpp.

#define NC_RDF_DIRTREENAMESORT   "http://home.netscape.com/NC-rdf#DirTreeNameSort"

Definition at line 71 of file nsDirectoryDataSource.cpp.

#define NC_RDF_DIRURI   "http://home.netscape.com/NC-rdf#DirUri"

Definition at line 67 of file nsDirectoryDataSource.cpp.

#define NC_RDF_ISMAILLIST   "http://home.netscape.com/NC-rdf#IsMailList"

Definition at line 68 of file nsDirectoryDataSource.cpp.

#define NC_RDF_ISREMOTE   "http://home.netscape.com/NC-rdf#IsRemote"

Definition at line 69 of file nsDirectoryDataSource.cpp.

#define NC_RDF_ISWRITEABLE   "http://home.netscape.com/NC-rdf#IsWriteable"

Definition at line 70 of file nsDirectoryDataSource.cpp.

#define NC_RDF_MODIFY   "http://home.netscape.com/NC-rdf#Modify"

Definition at line 74 of file nsDirectoryDataSource.cpp.


Function Documentation

static NS_DEFINE_CID ( kCollationFactoryCID  ,
NS_COLLATIONFACTORY_CID   
) [static]
nsresult NS_NewAbDirectoryDataSource ( const nsIID iid,
void **  result 
)

Definition at line 917 of file nsDirectoryDataSource.cpp.

{
    NS_PRECONDITION(result != nsnull, "null ptr");
    if (! result)
        return NS_ERROR_NULL_POINTER;

    nsAbDirectoryDataSource* datasource = new nsAbDirectoryDataSource();
    if (! datasource)
        return NS_ERROR_OUT_OF_MEMORY;

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

       return datasource->QueryInterface(iid, result);
}

Here is the call graph for this function: