nsIMsgAccountManagerExtension 编辑

The nsIMsgAccountManagerExtension interface is used to add a new panel to Thunderbird's Account Manager.

An Account Manager Extension is a XPCOM compontent implementing this Interface. The interface is basically a manifest and defines the properties of the new Panel. A Panel consists of a XUL file with a Page Element as root element and the Property File containing the localized name.

Note:  The Account Manager relies on a very strong naming scheme to load and unload a panel. An Account Manager Extension with a "name" attribute of "devmo" and the "chromePackageName" attribute set to "extension@example.org" means, that the Account Manager expects to find a XUL file in "chrome://extension@example.org/content/am-devmo.xul" and a property file in "chrome://extension@example.org/locale/am-devmo.properties" containing a property named "prefPanel-devmo".

You have to register any new Account Manager Extensions via the the category manager at start up. Simply add a new Entry with the Contact ID of the component to the "mailnews-accountmanager-extensions" category.


http://mxr.mozilla.org/comm-central/source/mailnews/base/public/nsIMsgAccountManager.idlScriptable Please add a summary to this article.   Last changed in Gecko ???

Inherits from: nsISupports

Method overview

boolean showPanel(in nsIMsgIncomingServer server);

Attributes

AttributeTypeDescription
nameACStringname of the account manager extension. It has to be unique and defines the file name of the property file and the XUL Page as well as the name of the localized string contained in the property file. This attribute is readonly!
chromePackageNameACStringchrome package, where the files for the new panel are located. This is usually GUID of the ID of the addons which adds the new Panel. This attribute is readonly!

Methods

See also

showPanel()

Before displaying a panel in the Account Manager this method is triggered.

 boolean showPanel(
   in nsIMsgIncomingServer server
 );
Parameters
server
The account for which the panel should be displayed.
Return value

A true indicates, that the Account Manager can display the panel for the given account, while false prevents the panel to be loaded.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:46 次

字数:4772

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文