author tbirdbld
Thu, 03 May 2018 19:17:35 -0400
changeset 35347 c57380d21277e4ac75c43771634ad4e9f5866888
parent 20460 b04d7ef86701e585dbadbb1942e489cd46f50987
permissions -rw-r--r--
Added THUNDERBIRD_60_0b6_RELEASE THUNDERBIRD_60_0b6_BUILD1 tag(s) for changeset 4bd4065b53b0. DONTBUILD CLOSED TREE a=release

/* 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 */

#include "nsISupports.idl"
#include "nsISimpleEnumerator.idl"
#include "nsIObserver.idl"
#include "imIStatusInfo.idl"

interface ibIPossibleConversation;
interface imIAccount;
interface imIContact;

[scriptable, uuid(1b495592-8512-4443-bcdb-49118f045e42)]
interface ibIConvStatsService: nsISupports {
  // Returns an enumerator of PossibleConversations which match the given filter string.
  nsISimpleEnumerator getFilteredConvs(in AUTF8String aFilterStr);
  // A stats-service-updated notification is fired when data has been updated.
  void addObserver(in nsIObserver aObserver);
  void removeObserver(in nsIObserver aObserver);

[scriptable, uuid(e7e5e7ba-203c-47ea-8174-55b5e5d8131f)]
// Inherits from imIStatusInfo to avoid code duplication.
interface ibIPossibleConversation: imIStatusInfo {
  /* The source of the possible conversation. Possible values are:
   * "contact"  - From an imIContact.
   * "existing" - From an imIConversation.
  readonly attribute AUTF8String source;
  readonly attribute imIAccount account;
  // If the possible conversation is a chat, statusText will give its topic.
  readonly attribute boolean isChat;
  /* Provides additional info about the conversation depending on the source:
   * "contact"  - The contact's tags (comma separated).
   * "existing" - Localized string existingConv.infoText (
  readonly attribute AUTF8String infoText;