Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsDirectoryDataSource.h File Reference
#include "nsAbRDFDataSource.h"
#include "nsIRDFService.h"
#include "nsIAbListener.h"
#include "nsIAbDirectory.h"
#include "nsDirPrefs.h"
#include "nsISupportsArray.h"
#include "nsIObserver.h"
#include "nsWeakReference.h"
#include "nsICollation.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  nsAbDirectoryDataSource
 The addressbook data source. More...


nsresult NS_NewAbDirectoryDataSource (const nsIID &iid, void **result)

Function Documentation

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: