str = "Copies";
str = NS_LITERAL_STRING("am-copies.xul"); else if ((source == kNC_PageTitleOfflineAndDiskSpace) || (source == kNC_PageTitleDiskSpace)) str = NS_LITERAL_STRING("am-offline.xul"); else if (source == kNC_PageTitleAddressing) str = NS_LITERAL_STRING("am-addressing.xul"); else if (source == kNC_PageTitleAdvanced) str = NS_LITERAL_STRING("am-advanced.xul"); else if (source == kNC_PageTitleSMTP) str = NS_LITERAL_STRING("am-smtp.xul"); else { str = NS_LITERAL_STRING("am-main.xul");
nsMsgAccountManagerDataSource::GetTarget(nsIRDFResource *source,                                         nsIRDFResource *property,                                         PRBool aTruthValue,                                         nsIRDFNode **target){  nsresult rv;  #ifdef DEBUG_amds  nsXPIDLCString srcval;  rv = source->GetValue(getter_Copies(srcval));  nsXPIDLCString propval;  rv = property->GetValue(getter_Copies(propval));  printf("GetTarget(%s on arc %s, ..)\n",         (const char*)srcval, (const char*)propval);#endif    rv = NS_RDF_NO_VALUE;  nsString str="";  if (property == kNC_Name) {    // XXX these should be localized    if (source == kNC_PageTitleMain)      str = "Main";        else if (source == kNC_PageTitleServer)      str = "Server";    else if (source == kNC_PageTitleCopies)      str = "Copies";    else if (source == kNC_PageTitleAdvanced)      str = "Advanced";    else {      nsCOMPtr<nsIMsgFolder> folder = do_QueryInterface(source, &rv);      if (NS_SUCCEEDED(rv)) {        PRBool isServer;		rv = folder->GetIsServer(&isServer);		if(NS_SUCCEEDED(rv) && isServer)		{			nsXPIDLString prettyName;			rv = folder->GetPrettyName(getter_Copies(prettyName));			if (NS_SUCCEEDED(rv))			  str = prettyName;		}      }    }  }  else if (property == kNC_PageTag) {    // do NOT localize these strings. these are the urls of the XUL files    if (source == kNC_PageTitleServer)      str = "am-server.xul";    else if (source == kNC_PageTitleCopies)      str = "am-copies.xul";    else if (source == kNC_PageTitleAdvanced)      str = "am-advanced.xul";    else      str = "am-main.xul";  }  if (str!="")    rv = createNode(str, target, getRDFService());  //if we have an empty string and we don't have an error value, then   //we don't have a value for RDF.  else if(NS_SUCCEEDED(rv))	rv = NS_RDF_NO_VALUE;  return rv;}