зеркало из https://github.com/mozilla/gecko-dev.git
Add FTP datasource into build.
This commit is contained in:
Родитель
0d1a5da7a8
Коммит
0e0cfecb0d
|
@ -50,10 +50,14 @@
|
|||
#define NS_RDFFILESYSTEMDATASOURCE_CID \
|
||||
{ 0xe638d760, 0x8687, 0x11d2, { 0xb5, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x01 } }
|
||||
|
||||
// {E638D760-8687-11d2-B530-000000000001}
|
||||
// {E638D760-8687-11d2-B530-000000000002}
|
||||
#define NS_RDFFINDDATASOURCE_CID \
|
||||
{ 0xe638d760, 0x8687, 0x11d2, { 0xb5, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x02 } }
|
||||
|
||||
// {9ebd2e83-e2fc-11d2-9820-c7de17d21fbc}
|
||||
#define NS_RDFFTPDATASOURCE_CID \
|
||||
{ 0x9ebd2e83, 0xe2fc, 0x11d2, { 0x98, 0x20, 0xc7, 0xde, 0x17, 0xd2, 0x1f, 0xbc } }
|
||||
|
||||
// {E638D761-8687-11d2-B530-000000000000}
|
||||
#define NS_RDFCOMPOSITEDATASOURCE_CID \
|
||||
{ 0xe638d761, 0x8687, 0x11d2, { 0xb5, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
|
|
@ -54,6 +54,7 @@ static NS_DEFINE_CID(kRDFContentSinkCID, NS_RDFCONTENTSINK_CID);
|
|||
static NS_DEFINE_CID(kRDFDefaultResourceCID, NS_RDFDEFAULTRESOURCE_CID);
|
||||
static NS_DEFINE_CID(kRDFFileSystemDataSourceCID,NS_RDFFILESYSTEMDATASOURCE_CID);
|
||||
static NS_DEFINE_CID(kRDFFindDataSourceCID, NS_RDFFINDDATASOURCE_CID);
|
||||
static NS_DEFINE_CID(kRDFFTPDataSourceCID, NS_RDFFTPDATASOURCE_CID);
|
||||
static NS_DEFINE_CID(kRDFHTMLBuilderCID, NS_RDFHTMLBUILDER_CID);
|
||||
static NS_DEFINE_CID(kRDFHistoryDataSourceCID, NS_RDFHISTORYDATASOURCE_CID);
|
||||
static NS_DEFINE_CID(kRDFInMemoryDataSourceCID, NS_RDFINMEMORYDATASOURCE_CID);
|
||||
|
@ -180,6 +181,10 @@ RDFFactoryImpl::CreateInstance(nsISupports *aOuter,
|
|||
if (NS_FAILED(rv = NS_NewRDFFindDataSource((nsIRDFDataSource**) &inst)))
|
||||
return rv;
|
||||
}
|
||||
else if (mClassID.Equals(kRDFFTPDataSourceCID)) {
|
||||
if (NS_FAILED(rv = NS_NewRDFFTPDataSource((nsIRDFDataSource**) &inst)))
|
||||
return rv;
|
||||
}
|
||||
else if (mClassID.Equals(kRDFCompositeDataSourceCID)) {
|
||||
if (NS_FAILED(rv = NS_NewRDFCompositeDataSource((nsIRDFCompositeDataSource**) &inst)))
|
||||
return rv;
|
||||
|
@ -316,6 +321,11 @@ NSRegisterSelf(nsISupports* aServMgr , const char* aPath)
|
|||
NS_RDF_DATASOURCE_PROGID_PREFIX "find",
|
||||
aPath, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->RegisterComponent(kRDFFTPDataSourceCID,
|
||||
"RDF FTP Data Source",
|
||||
NS_RDF_DATASOURCE_PROGID_PREFIX "ftp",
|
||||
aPath, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->RegisterComponent(kRDFHistoryDataSourceCID,
|
||||
"RDF History Data Source",
|
||||
NS_RDF_DATASOURCE_PROGID_PREFIX "history",
|
||||
|
@ -424,6 +434,10 @@ NSUnregisterSelf(nsISupports* aServMgr, const char* aPath)
|
|||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kRDFFileSystemDataSourceCID,aPath);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kRDFFindDataSourceCID, aPath);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kRDFFTPDataSourceCID, aPath);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kRDFHistoryDataSourceCID, aPath);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kRDFCompositeDataSourceCID, aPath);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
nsIHistoryDataSource.h
|
||||
nsIRDFFileSystem.h
|
||||
nsIRDFFind.h
|
||||
nsIRDFFTP.h
|
||||
nsIXULContentSink.h
|
||||
|
|
|
@ -28,6 +28,7 @@ EXPORTS = \
|
|||
nsIHistoryDataSource.h \
|
||||
nsIRDFFileSystem.h \
|
||||
nsIRDFFind.h \
|
||||
nsIRDFFTP.h \
|
||||
nsIXULContentSink.h \
|
||||
$(NULL)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ EXPORTS = \
|
|||
nsIHistoryDataSource.h \
|
||||
nsIRDFFileSystem.h \
|
||||
nsIRDFFind.h \
|
||||
nsIRDFFTP.h \
|
||||
nsIXULContentSink.h \
|
||||
$(NULL)
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ CPPSRCS = \
|
|||
nsBookmarkDataSource.cpp \
|
||||
nsFileSystemDataSource.cpp \
|
||||
nsFindDataSource.cpp \
|
||||
nsFTPDataSource.cpp \
|
||||
nsHistoryDataSource.cpp \
|
||||
nsXULContentSink.cpp \
|
||||
nsXULDataSource.cpp \
|
||||
|
|
|
@ -24,6 +24,7 @@ CPP_OBJS=\
|
|||
.\$(OBJDIR)\nsHistoryDataSource.obj \
|
||||
.\$(OBJDIR)\nsFileSystemDataSource.obj \
|
||||
.\$(OBJDIR)\nsFindDataSource.obj \
|
||||
.\$(OBJDIR)\nsFTPDataSource.obj \
|
||||
.\$(OBJDIR)\nsXULContentSink.obj \
|
||||
.\$(OBJDIR)\nsXULDataSource.obj \
|
||||
$(NULL)
|
||||
|
|
|
@ -43,6 +43,9 @@ nsresult NS_NewRDFFileSystemDataSource(nsIRDFDataSource** result);
|
|||
// in nsFindDataSource.cpp
|
||||
nsresult NS_NewRDFFindDataSource(nsIRDFDataSource** result);
|
||||
|
||||
// in nsFTPDataSource.cpp
|
||||
nsresult NS_NewRDFFTPDataSource(nsIRDFDataSource** result);
|
||||
|
||||
// in nsMemoryDataSource.cpp
|
||||
nsresult NS_NewRDFInMemoryDataSource(nsIRDFDataSource** result);
|
||||
|
||||
|
|
Двоичные данные
rdf/macbuild/rdf.mcp
Двоичные данные
rdf/macbuild/rdf.mcp
Двоичный файл не отображается.
|
@ -6,6 +6,11 @@ Do Not Edit! -->
|
|||
<H1>Bookmarks for temp</H1>
|
||||
|
||||
<DL><p>
|
||||
<DT><H3 ADD_DATE="916354466">Sample FTP URLs</H3>
|
||||
<DL><p>
|
||||
<DT><A HREF="ftp://ftp.netscape.com/" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">FTP: Netscape</A>
|
||||
<DT><A HREF="ftp://xpnav.mcom.com/" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">FTP: XPNav</A>
|
||||
</DL><p>
|
||||
<DT><H3 ADD_DATE="916354466">Sample SmartFind queries</H3>
|
||||
<DL><p>
|
||||
<DT><A HREF="find:datasource=rdf:bookmarks&match=http://home.netscape.com/NC-rdf#Name&method=contains&text=Netscape" ADD_DATE="0" LAST_VISIT="0" LAST_MODIFIED="0">Find: Bookmark Names containing 'Netscape'</A>
|
||||
|
|
|
@ -57,7 +57,7 @@ function doSort(sortColName)
|
|||
|
||||
</html:script>
|
||||
|
||||
<xul:tree datasources="rdf:find rdf:files rdf:bookmarks rdf:history">
|
||||
<xul:tree datasources="rdf:find rdf:files rdf:ftp rdf:bookmarks rdf:history">
|
||||
<xul:treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
|
||||
<xul:treecol id="URLColumn" rdf:resource="http://home.netscape.com/NC-rdf#URL"/>
|
||||
<xul:treecol id="LastModColumn" rdf:resource="http://home.netscape.com/WEB-rdf#LastModifiedDate"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче