nsIMsgProtocolInfo 编辑

The nsIMsgProtocolInfo interface describes the capabilities of an account type.

Inherits from: nsISupports

Implemented by: @mozilla.org/messenger/protocol/info;1?type=acct, where acct is the account type that are you are interested in.

Method overview

long getDefaultServerPort(in boolean isSecure);

 Attributes

AttributeTypeDescription
canDeletebooleanTrue if an account of this type may be deleted. Read only.
canDuplicatebooleanUnused. Read only.
canGetIncomingMessagesbooleanTrue if Junk UI actions should be enabled for the account type. Read only.
canGetMessagesbooleanTrue if "Get Messages" UI actions should be enabled for the account type. Read only.
canLoginAtStartUpbooleanTrue if the account type can perform biff during startup. Read only.
defaultDoBiffbooleanTrue if the biff should be enabled by default for the account type. Read only.
defaultLocalFilePathnsILocalFileThe default path under which all server data for this account type will be stored.
foldersCreateAsyncbooleanNew in Thunderbird 24 (bug 832034)
preflightPrettyNameWithEmailAddressbooleanUnused. Read only.
requiresUsernamebooleanTrue if the server requires a username to log on. Read only.
serverIIDnsIIDPtrThe IID of the server-specific interface, used during account creation. Read only.
showComposeMsgLinkbooleanTrue if Compose UI actions should be enabled for the account type. Read only.
specialFoldersDeletionAllowedbooleanTrue if the user can delete folders like Inbox, Trash, etc. Read only.

Methods

getDefaultServerPort()

Returns the default port for a connection to a server of this account type.

long getDefaultServerPort(
  in boolean isSecure
);
Parameters
isSecure
Whether or not the connection will be secure.
Return value

The default port number for connections of this account type.

Remarks

This is one of the interfaces that is required to create a new account type.

See also

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

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

发布评论

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

词条统计

浏览:50 次

字数:4654

最后编辑:6 年前

编辑次数:0 次

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