diff options
Diffstat (limited to 'comm/mailnews/base/public/nsIMessengerOSIntegration.idl')
-rw-r--r-- | comm/mailnews/base/public/nsIMessengerOSIntegration.idl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/comm/mailnews/base/public/nsIMessengerOSIntegration.idl b/comm/mailnews/base/public/nsIMessengerOSIntegration.idl new file mode 100644 index 0000000000..99c5127701 --- /dev/null +++ b/comm/mailnews/base/public/nsIMessengerOSIntegration.idl @@ -0,0 +1,26 @@ +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +/* 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/. */ + +#include "nsISupports.idl" + +/** + * Common interfaces to integrate with different platforms, how they are + * implemented depends on the specific platform. + */ +[scriptable, uuid(d9e45fee-1dd1-11b2-938c-9147855ed837)] +interface nsIMessengerOSIntegration : nsISupports { + /** + * Update the unread count. + * @param unreadCount - The number of unread messages. + * @param unreadTooltip - The tooltip for the unread count. + */ + void updateUnreadCount(in unsigned long unreadCount, + in AString unreadTooltip); + + /** + * Use this to do necessary clean up on exit, e.g. reset the badge/tray icon. + */ + void onExit(); +}; |