I am trying to do something simple here. I have a working C++ XPCOM
component that all it needs to do is manipulate FireFox's bookmarks.
Why is it to obscure to find a way to do this. I have searched and
searched about this topic to not avail.
I don't even understand why nsIBookmarksService.idl (or .h) is not in
gecko SDK (I have 1.8.0.4). It is defintely avialable in JS but not C+
+. I also read about using RDF services; but that is also not clear
(or available in C++).
1) How can I do such a simple thing as creating a bookmark or removing
a bookmark?
or
2) How can I translate this code into C++ XPCOM:
const rsce = Components.classes["@mozilla.org/rdf/rdf-service;1"].
getService(Components.interfaces.nsIRDFService);
var tFolder = rsce.GetResource("NC:BookmarksRoot");
bmarks.createBookmarkInContainer("Name", "http://xyz.com", "xyz.com",
"description", "UTF-8", null, tFolder, null);
Thanks much.
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom