add onEndMsgDownload notification, part of extensibility hooks r=cavin, sr=sspitzer 161226

This commit is contained in:
bienvenu%netscape.com 2002-08-13 01:34:19 +00:00
Родитель 8393bf4fbc
Коммит 35df1413ca
1 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -34,6 +34,10 @@
var msgHeaderParserContractID = "@mozilla.org/messenger/headerparser;1";
var abAddressCollectorContractID = "@mozilla.org/addressbook/services/addressCollecter;1";
// get the "msgLoad" atom
var atomService = Components.classes["@mozilla.org/atom-service;1"].getService().QueryInterface(Components.interfaces.nsIAtomService);
var gMsgLoadedAtom = atomService.getAtom("msgLoaded").QueryInterface(Components.interfaces.nsISupports);
var gViewAllHeaders = false;
var gNumAddressesToShow = 3;
var gShowUserAgent = false;
@ -354,6 +358,17 @@ var messageHeaderSink = {
displayAttachmentsForExpandedView();
},
onEndMsgDownload: function(url)
{
var msgFolder;
if (url)
{
msgFolder = url.folder;
if (msgFolder)
msgFolder.NotifyFolderEvent(gMsgLoadedAtom);
}
},
mSecurityInfo : null,
getSecurityInfo: function()
{