Notifications 编辑

Draft: This page is not complete.

This is a page for documenting the notifications in Instantbird and Thunderbird. This is likely out of date. Notifications are grouped by interface you need to attach the observer to.

nsIObserverService

TopicSubjectDataAddedRemovedComment
account-addedimIAccountnull<1.0 a new account has been created
account-connectedimIAccountnull<1.0 the account has connected
account-connectingimIAccountnull<1.0 the account has started a connection attempt
account-connect-errorimIAccountnull<1.0 the account has disconnecting with an error
account-connect-progressimIAccountnull<1.0 the account is attempting to connect
account-disconnectedimIAccountnull<1.0 the account has disconnected
account-disconnectingimIAccountnull<1.0 the account is disconnecting without an error reason
account-list-updatedimIAccountsServicenull<1.0 the list of accounts has been updated
account-removedimIAccountnull<1.0 an account is about to be removed
account-updatedimIAccountnull<1.0  
app-handler-pane-loadednsIDOMWindownull<1.0 Applications pane in preferences window is loaded
autologin-processedimICoreServicenull<1.0 imICoreService::processAutoLogin() is complete
browser-requestprplIRequestBrowsernull<1.0 Used by protocol plugins to bring up a browser window (e.g. for an OAuth request)
closing-conversationprplIConversationnull<1.0  
contact-movedimIContactsService
imIContact
null<1.0 when a contact has been moved (removed from one tag, added to another, or both)
contact-tag-addedimIContacttag.id<1.0 when a tag is added to a contact
contact-tag-removedimIContacttag.id<1.0 when a tag is removed from a contact
conversation-closedprplIConversationnull<1.0 conversation going away
conversation-left-chatprplIConversationnull<1.0 the user has left the conversation (but it might remain visible)
conversation-loadednsISupportsnull or details<1.0 subject is a <browser type="content-conversation">, if fired because an existing conversation is moved from one window to another, the data parameter ("details") will contain the string "imported".
im-sentprplIConversationmessage text<1.0 on sending an IM (whether or not it succeeded)
new-textpurpleMessagenull<1.01.2A new message will be written to a conversation. This can be an incoming, outgoing or system message.
new-conversationprplIConversationnull<1.0 conversation created
new-ui-conversationimIConversationnull<1.0  
prpl-quitimICoreServicenull1.2 Core shutdown, was previously purple-quit
status-changedimICoreServicestatus text<1.0 user (not buddy) status change
tag-hiddenimITagnull<1.0 fired when a tag is hidden
tag-shownimITagnull<1.0 fired when a tag is set to be shown (unhiding it)
ui-conversation-closed null<1.0  
unread-im-count-changednullcount of unread messages<1.0 fired when the number of unread messages changes

imIBuddy

TopicSubjectDataAddedRemovedNotes
account-buddy-availability-changedprplIAccountBuddynull<1.0 Possibly fired on account buddy status change
account-buddy-display-name-changedimIContactsService
imIAccountBuddy
old serverAlias<1.0 Fired when setting imIAccountBuddy::serverAlias
account-buddy-icon-changedimIAccountBuddynull<1.0 Fired when setting imIAccountBuddy::buddyIconFilename
account-buddy-signed-offimIAccountBuddynull<1.0 Possibly fired on account buddy status change
account-buddy-signed-onimIAccountBuddynull<1.0 Possibly fired on account buddy status change
account-buddy-status-changedimIAccountBuddynull<1.0 Possibly fired on account buddy status change
buddy-addedimIBuddynull<1.0 In response to account-buddy-added if the buddy previously had no account buddies
buddy-availability-changedimIBuddynull<1.0 possibly fired on imIBuddy status updates
buddy-display-name-changedimIBuddyold serverAlias<1.0 possibly in response to account-buddy-display-name-changed on the preferred account
buddy-preferred-account-changedimIContactsService
imIBuddy
null<1.0 when setting imIBuddy::preferredAccountBuddy (internally)
buddy-removedimIBuddynull<1.0 In response to account-buddy-removed if the buddy no longer has any account buddies
buddy-signed-offimIBuddynull<1.0 possibly fired on imIBuddy status updates
buddy-signed-onimIBuddynull<1.0 possibly fired on imIBuddy status updates
buddy-status-changedimIBuddynull<1.0 possibly fired on imIBuddy status updates

imIContact

Note: all imIContact notifications also go to any imITag it belongs to, as well as nsIObserverService.

TopicSubjectDataAddedRemovedNotes
contact-addedimIContactnull<1.0 When a new buddy is created with no other contact
contact-availability-changedimIContactnull<1.0 Possibly fired on contact status updates
contact-display-name-changedimIContactnull<1.0 Fired on setting imIContact::Alias or imIContact::preferredBuddy, or the preferred buddy's display name changed
contact-no-longer-dummyimIContactnull<1.0 Fired when a contact is being loaded?
contact-preferred-buddy-changedimIContactnull<1.0 Fired on setting imIContact::preferredBuddy
contact-removedimIContactnull<1.0 When the last buddy for the contact is removed
contact-signed-offimIContactnull<1.0 Possibly fired on contact status updates
contact-signed-onimIContactnull<1.0 Possibly fired on contact status updates
contact-status-changedimIContactnull<1.0 Possibly fired on contact status updates

imITag

TopicSubjectDataAddedRemovedNotes
contact-moved-inimIContactnull<1.0 When a contact has been moved into the tag
contact-moved-outimIContactnull<1.0 When a contact has been moved out of the tag
tag-hiddenimIContactnull<1.0 fired when a tag is hidden
tag-shownimIContactnull<1.0 fired when a tag is set to be shown (unhiding it)

prplIConversation

TopicSubjectDataAddedRemovedNotes
chat-buddy-addnsISimpleEnumeratornull<1.0 When users join a chat. The enumerator elements are prplIConvChatBuddy.
chat-buddy-removednsISimpleEnumeratornull<1.0 When chat buddies leave a chat. The enumerator elements are nsISupportsString of the user name.
chat-buddy-updateprplIConvChatBuddyold name, if the chat buddy is being renamed<1.0 data is null if this is not a rename
chat-buddy-topicnullnull<1.0 The chat topic was updated
new-textprplIMessagenull<1.0 A new message will be written to a conversation. This can be an incoming, outgoing or system message. Subject was purpleIMessage until 1.2.
update-buddy-statusnullnull<1.0 away-ness or online/offline
update-conv-chatleftnullnull<1.0 the user has left the chat (it might remain visible)
update-conv-titlenullnull<1.0  
update-typingnullnull<1.0  

 

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

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

发布评论

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

词条统计

浏览:39 次

字数:15530

最后编辑:7年前

编辑次数:0 次

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