summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/base/public/nsIMessengerOSIntegration.idl
blob: 99c51277015bf320b36f6625bddf6fb68ca04e37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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();
};