gRDFService->GetResource(NC_NAMESPACE_URI  "Icon",             &kNC_Icon);
FileSystemDataSource::FileSystemDataSource(void){	NS_INIT_REFCNT();	if (gRefCnt++ == 0)	{		nsresult rv = nsServiceManager::GetService(kRDFServiceCID,					   NS_GET_IID(nsIRDFService),					   (nsISupports**) &gRDFService);		PR_ASSERT(NS_SUCCEEDED(rv));#ifdef	XP_WIN		nsSpecialSystemDirectory	ieFavoritesFolder(nsSpecialSystemDirectory::Win_Favorites);		nsFileURL			ieFavoritesURLSpec(ieFavoritesFolder);		const char			*ieFavoritesURI = ieFavoritesURLSpec.GetAsString();		if (ieFavoritesURI)		{			ieFavoritesDir = nsCRT::strdup(ieFavoritesURI);		}		gRDFService->GetResource(NC_NAMESPACE_URI "IEFavorite",       &kNC_IEFavoriteObject);		gRDFService->GetResource(NC_NAMESPACE_URI "IEFavoriteFolder", &kNC_IEFavoriteFolder);/*		nsCOMPtr<nsIPlatformCharset> platformCharset = 		         do_GetService(kPlatformCharsetCID, &rv);		if (NS_SUCCEEDED(rv) && (platformCharset))		{			nsAutoString	defaultCharset;			if (NS_SUCCEEDED(rv = platformCharset->GetCharset(kPlatformCharsetSel_4xBookmarkFile,				defaultCharset)))				{					// found the default platform charset					// now try and get a decoder from it to Unicode					nsCOMPtr<nsICharsetConverterManager> charsetConv = 					         do_GetService(kCharsetConverterManagerCID, &rv);					if (NS_SUCCEEDED(rv) && (charsetConv))					{						rv = charsetConv->GetUnicodeDecoder(&defaultCharset,							getter_AddRefs(mUnicodeDecoder));					}				}		}*/#endif#ifdef XP_BEOS		nsSpecialSystemDirectory	netPositiveFolder(nsSpecialSystemDirectory::BeOS_SettingsDirectory);		nsFileURL			netPositiveURLSpec(netPositiveFolder);		netPositiveURLSpec += "NetPositive/Bookmarks/";		const char			*netPositiveURI = netPositiveURLSpec.GetAsString();		if (netPositiveURI)		{			netPositiveDir = nsCRT::strdup(netPositiveURI);		}#endif		gRDFService->GetResource(kURINC_FileSystemRoot,                &kNC_FileSystemRoot);		gRDFService->GetResource(NC_NAMESPACE_URI  "child",            &kNC_Child);		gRDFService->GetResource(NC_NAMESPACE_URI  "Name",             &kNC_Name);		gRDFService->GetResource(NC_NAMESPACE_URI  "URL",              &kNC_URL);		gRDFService->GetResource(NC_NAMESPACE_URI  "Content-Length",   &kNC_Length);		gRDFService->GetResource(WEB_NAMESPACE_URI "LastModifiedDate", &kWEB_LastMod);		gRDFService->GetResource(NC_NAMESPACE_URI  "FileSystemObject", &kNC_FileSystemObject);		gRDFService->GetResource(NC_NAMESPACE_URI  "pulse",            &kNC_pulse);		gRDFService->GetResource(RDF_NAMESPACE_URI "instanceOf",       &kRDF_InstanceOf);		gRDFService->GetResource(RDF_NAMESPACE_URI "type",             &kRDF_type);#ifdef USE_NC_EXTENSION		gRDFService->GetResource(NC_NAMESPACE_URI "extension",        &kNC_extension);#endif		gFileSystemDataSource = this;	}}