Skip to content

Commit

Permalink
files
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 18, 2010
1 parent f1cd004 commit 7a0d4c9
Show file tree
Hide file tree
Showing 11 changed files with 1,038 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chrome.manifest
@@ -0,0 +1,3 @@
content noapplefile jar:chrome/noapplefile.jar!/content/noapplefile/

overlay chrome://messenger/content/messenger.xul chrome://noapplefile/content/messengerOverlay.xul
12 changes: 12 additions & 0 deletions content/noapplefile/lib/db.js
@@ -0,0 +1,12 @@
var gDS = null;
function getDS()
{
const mimeTypes = 'UMimTyp';
var fileLocator = Components.classes['@mozilla.org/file/directory_service;1'].getService();
if (fileLocator)
fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIProperties);
var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile);
var ioService = Components.classes['@mozilla.org/network/io-service;1'].getService(Components.interfaces.nsIIOService);
var fileHandler = ioService.getProtocolHandler('file').QueryInterface(Components.interfaces.nsIFileProtocolHandler);
gDS = gRDF.GetDataSource(fileHandler.getURLSpecFromFile(file));
}

0 comments on commit 7a0d4c9

Please sign in to comment.