mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-01 12:57:31 +09:00
Issue #1258 - Part 1: Import mailnews, ldap, and mork from comm-esr52.9.1
This commit is contained in:
parent
23e0d82436
commit
e400f4130a
1564 changed files with 510348 additions and 0 deletions
99
mailnews/extensions/newsblog/js/newsblog.js
Normal file
99
mailnews/extensions/newsblog/js/newsblog.js
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
var {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
|
||||
|
||||
Cu.import("resource:///modules/FeedUtils.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
var nsNewsBlogFeedDownloader =
|
||||
{
|
||||
downloadFeed: function(aFolder, aUrlListener, aIsBiff, aMsgWindow)
|
||||
{
|
||||
FeedUtils.downloadFeed(aFolder, aUrlListener, aIsBiff, aMsgWindow);
|
||||
},
|
||||
|
||||
subscribeToFeed: function(aUrl, aFolder, aMsgWindow)
|
||||
{
|
||||
FeedUtils.subscribeToFeed(aUrl, aFolder, aMsgWindow);
|
||||
},
|
||||
|
||||
updateSubscriptionsDS: function(aFolder, aOrigFolder, aAction)
|
||||
{
|
||||
FeedUtils.updateSubscriptionsDS(aFolder, aOrigFolder, aAction);
|
||||
},
|
||||
|
||||
QueryInterface: function(aIID)
|
||||
{
|
||||
if (aIID.equals(Ci.nsINewsBlogFeedDownloader) ||
|
||||
aIID.equals(Ci.nsISupports))
|
||||
return this;
|
||||
|
||||
throw Cr.NS_ERROR_NO_INTERFACE;
|
||||
}
|
||||
}
|
||||
|
||||
var nsNewsBlogAcctMgrExtension =
|
||||
{
|
||||
name: "newsblog",
|
||||
chromePackageName: "messenger-newsblog",
|
||||
showPanel: function (server)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
QueryInterface: function(aIID)
|
||||
{
|
||||
if (aIID.equals(Ci.nsIMsgAccountManagerExtension) ||
|
||||
aIID.equals(Ci.nsISupports))
|
||||
return this;
|
||||
|
||||
throw Cr.NS_ERROR_NO_INTERFACE;
|
||||
}
|
||||
}
|
||||
|
||||
function FeedDownloader() {}
|
||||
|
||||
FeedDownloader.prototype =
|
||||
{
|
||||
classID: Components.ID("{5c124537-adca-4456-b2b5-641ab687d1f6}"),
|
||||
_xpcom_factory:
|
||||
{
|
||||
createInstance: function (aOuter, aIID)
|
||||
{
|
||||
if (aOuter != null)
|
||||
throw Cr.NS_ERROR_NO_AGGREGATION;
|
||||
if (!aIID.equals(Ci.nsINewsBlogFeedDownloader) &&
|
||||
!aIID.equals(Ci.nsISupports))
|
||||
throw Cr.NS_ERROR_INVALID_ARG;
|
||||
|
||||
// return the singleton
|
||||
return nsNewsBlogFeedDownloader.QueryInterface(aIID);
|
||||
}
|
||||
} // factory
|
||||
}; // feed downloader
|
||||
|
||||
function AcctMgrExtension() {}
|
||||
|
||||
AcctMgrExtension.prototype =
|
||||
{
|
||||
classID: Components.ID("{E109C05F-D304-4ca5-8C44-6DE1BFAF1F74}"),
|
||||
_xpcom_factory:
|
||||
{
|
||||
createInstance: function (aOuter, aIID)
|
||||
{
|
||||
if (aOuter != null)
|
||||
throw Cr.NS_ERROR_NO_AGGREGATION;
|
||||
if (!aIID.equals(Ci.nsIMsgAccountManagerExtension) &&
|
||||
!aIID.equals(Ci.nsISupports))
|
||||
throw Cr.NS_ERROR_INVALID_ARG;
|
||||
|
||||
// return the singleton
|
||||
return nsNewsBlogAcctMgrExtension.QueryInterface(aIID);
|
||||
}
|
||||
} // factory
|
||||
}; // account manager extension
|
||||
|
||||
var components = [FeedDownloader, AcctMgrExtension];
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
|
||||
5
mailnews/extensions/newsblog/js/newsblog.manifest
Normal file
5
mailnews/extensions/newsblog/js/newsblog.manifest
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
component {5c124537-adca-4456-b2b5-641ab687d1f6} newsblog.js
|
||||
contract @mozilla.org/newsblog-feed-downloader;1 {5c124537-adca-4456-b2b5-641ab687d1f6}
|
||||
component {E109C05F-D304-4ca5-8C44-6DE1BFAF1F74} newsblog.js
|
||||
contract @mozilla.org/accountmanager/extension;1?name=newsblog {E109C05F-D304-4ca5-8C44-6DE1BFAF1F74}
|
||||
category mailnews-accountmanager-extensions newsblog @mozilla.org/accountmanager/extension;1?name=newsblog
|
||||
Loading…
Add table
Add a link
Reference in a new issue