mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
(Mac) Appletalk data source.
This commit is contained in:
parent
9d166d8786
commit
0aa182a826
@ -71,6 +71,7 @@ typedef struct _RDF_NCVocabStruct {
|
||||
RDF_Resource RDF_Guide;
|
||||
RDF_Resource RDF_HTMLURL;
|
||||
RDF_Resource RDF_LocalFiles;
|
||||
RDF_Resource RDF_Appletalk;
|
||||
RDF_Resource RDF_Mail;
|
||||
RDF_Resource RDF_Password;
|
||||
RDF_Resource RDF_SBProviders;
|
||||
|
Binary file not shown.
@ -95,18 +95,25 @@ buildVolumeList(RDF_Resource fs)
|
||||
char *volName;
|
||||
int volNum=0;
|
||||
|
||||
while (volNum < 26) {
|
||||
if ((volName = getVolume(volNum++)) != NULL) {
|
||||
|
||||
if ((vol = RDF_GetResource(NULL, volName, 1)) != NULL)
|
||||
{
|
||||
setContainerp(vol, 1);
|
||||
setResourceType(vol, LFS_RT);
|
||||
remoteStoreAdd(gRemoteStore, vol, gCoreVocab->RDF_parent,
|
||||
while (volNum < 26)
|
||||
{
|
||||
if ((volName = getVolume(volNum++)) != NULL)
|
||||
{
|
||||
if ((vol = RDF_GetResource(NULL, volName, 1)) != NULL)
|
||||
{
|
||||
setContainerp(vol, 1);
|
||||
setResourceType(vol, LFS_RT);
|
||||
remoteStoreAdd(gRemoteStore, vol, gCoreVocab->RDF_parent,
|
||||
fs, RDF_RESOURCE_TYPE, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef XP_MAC
|
||||
remoteStoreAdd(gRemoteStore, gNavCenter->RDF_Appletalk,
|
||||
gCoreVocab->RDF_parent, fs, RDF_RESOURCE_TYPE, 1);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -114,10 +121,15 @@ buildVolumeList(RDF_Resource fs)
|
||||
PRDir *
|
||||
OpenDir(char *name)
|
||||
{
|
||||
if (startsWith("file:///", name)) {
|
||||
/* return PR_OpenDir(&name[FS_URL_OFFSET]); */
|
||||
return CallPROpenDirUsingFileURL(name);
|
||||
} else return(NULL);
|
||||
if (startsWith("file:///", name))
|
||||
{
|
||||
/* return PR_OpenDir(&name[FS_URL_OFFSET]); */
|
||||
return CallPROpenDirUsingFileURL(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
return(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -916,6 +916,11 @@ gNavCenterDataSources1[15] =
|
||||
"rdf:localStore", "rdf:remoteStore", "rdf:history",
|
||||
/* "rdf:ldap", */
|
||||
"rdf:esftp", "rdf:mail",
|
||||
|
||||
#ifdef XP_MAC
|
||||
"rdf:appletalk",
|
||||
#endif
|
||||
|
||||
"rdf:lfs", "rdf:ht",
|
||||
"rdf:columns", NULL
|
||||
};
|
||||
@ -4107,7 +4112,7 @@ ht_isURLReal(HT_Resource node)
|
||||
*/
|
||||
if (HT_IsContainer(node))
|
||||
{
|
||||
if (type == RDF_RT || type == HISTORY_RT || type == SEARCH_RT || type == PM_RT || type == IM_RT)
|
||||
if (type == RDF_RT || type == HISTORY_RT || type == SEARCH_RT || type == PM_RT || type == IM_RT || type == ATALKVIRTUAL_RT)
|
||||
{
|
||||
validFlag = false;
|
||||
}
|
||||
@ -6779,7 +6784,11 @@ HT_AddSitemapFor(HT_Pane htPane, char *pUrl, char *pSitemapUrl, char* name)
|
||||
|
||||
}
|
||||
|
||||
void RetainOldSitemaps (HT_Pane htPane, char *pUrl) {
|
||||
|
||||
|
||||
void
|
||||
RetainOldSitemaps (HT_Pane htPane, char *pUrl)
|
||||
{
|
||||
HT_URLSiteMapAssoc *nsmp;
|
||||
RDFT sp;
|
||||
|
||||
@ -6810,6 +6819,7 @@ void RetainOldSitemaps (HT_Pane htPane, char *pUrl) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
PR_PUBLIC_API(void)
|
||||
HT_ExitPage(HT_Pane htPane, char *pUrl)
|
||||
{
|
||||
@ -6834,6 +6844,8 @@ HT_ExitPage(HT_Pane htPane, char *pUrl)
|
||||
htPane->sbp = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
populateSBProviders (HT_Pane htPane)
|
||||
{
|
||||
|
@ -291,13 +291,14 @@ HT_DropAction uploadLFSURL (HT_Resource dropTarget, char* objURL);
|
||||
HT_DropAction uploadRDFFileURL (HT_Resource dropTarget, char* objURL);
|
||||
HT_DropAction esfsCopyMoveContentURL (HT_Resource dropTarget, char* objURL);
|
||||
HT_URLSiteMapAssoc * makeNewSMP (HT_Pane htPane, char* pUrl, char* sitemapurl);
|
||||
void RetainOldSitemaps (HT_Pane htPane, char *pUrl);
|
||||
void populateSBProviders (HT_Pane htPane);
|
||||
SBProvider SBProviderOfNode (HT_Resource node);
|
||||
PRBool implicitDomainURL (char* url);
|
||||
PRBool domainMatches (char *dom, char *url);
|
||||
void nextDomain (char* dom, size_t *n);
|
||||
PRBool relatedLinksEnabledURL (char* url);
|
||||
void ExitPageInt (HT_Pane htPane, char *pUrl, PRBool guessp) ;
|
||||
|
||||
XP_END_PROTOS
|
||||
|
||||
#endif
|
||||
|
@ -77,6 +77,8 @@
|
||||
#define RDM_RT 9
|
||||
#define IM_RT 10
|
||||
#define CACHE_RT 11
|
||||
#define ATALK_RT 12
|
||||
#define ATALKVIRTUAL_RT 13
|
||||
#define WILDCARD_RT 15
|
||||
|
||||
|
||||
|
@ -124,6 +124,8 @@ createNavCenterVocab () {
|
||||
gNavCenter->RDF_largeIcon = RDF_GetResource(gCoreDB, "largeIcon", true);
|
||||
gNavCenter->RDF_HTMLURL = RDF_GetResource(gCoreDB, "htmlURL", true);
|
||||
gNavCenter->RDF_LocalFiles = RDF_GetResource(gCoreDB, "NC:LocalFiles", true);
|
||||
gNavCenter->RDF_Appletalk = createContainer("NC:Appletalk");
|
||||
setResourceType(gNavCenter->RDF_Appletalk, ATALKVIRTUAL_RT);
|
||||
gNavCenter->RDF_Mail = RDF_GetResource(gCoreDB, "NC:Mail", true);
|
||||
gNavCenter->RDF_Guide = RDF_GetResource(gCoreDB, "NC:Guide", true);
|
||||
gNavCenter->RDF_Password = RDF_GetResource(gCoreDB, "password", true);
|
||||
|
Loading…
Reference in New Issue
Block a user