Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsLocalSearchService.cpp File Reference
#include "nsLocalSearchService.h"
#include "nscore.h"
#include "nsIServiceManager.h"
#include "nsIRDFContainerUtils.h"
#include "nsEnumeratorUtils.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "plhash.h"
#include "plstr.h"
#include "prmem.h"
#include "prprf.h"
#include "prio.h"
#include "prlog.h"
#include "nsITextToSubURI.h"
#include "nsIRDFObserver.h"
#include "nsRDFCID.h"
#include "rdf.h"
#include "nsCRT.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kRDFServiceCID, NS_RDFSERVICE_CID)
static NS_DEFINE_CID (kTextToSubURICID, NS_TEXTTOSUBURI_CID)
static PRBool isFindURI (nsIRDFResource *r)

Variables

static nsIRDFServicegRDFService = nsnull
static LocalSearchDataSourcegLocalSearchDataSource = nsnull
static const char kFindProtocol [] = "find:"

Function Documentation

static PRBool isFindURI ( nsIRDFResource r) [static]

Definition at line 72 of file nsLocalSearchService.cpp.

{
       PRBool        isFindURIFlag = PR_FALSE;
       const char    *uri = nsnull;
       
       r->GetValueConst(&uri);
       if ((uri) && (!strncmp(uri, kFindProtocol, sizeof(kFindProtocol) - 1)))
       {
              isFindURIFlag = PR_TRUE;
       }
       return(isFindURIFlag);
}

Here is the call graph for this function:

static NS_DEFINE_CID ( kRDFServiceCID  ,
NS_RDFSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kTextToSubURICID  ,
NS_TEXTTOSUBURI_CID   
) [static]

Variable Documentation

Definition at line 68 of file nsLocalSearchService.cpp.

Definition at line 67 of file nsLocalSearchService.cpp.

const char kFindProtocol[] = "find:" [static]

Definition at line 69 of file nsLocalSearchService.cpp.