chat/components/public/imICoreService.idl
author alta88
Tue, 29 Sep 2015 14:23:07 -0600
changeset 18469 3ddf3a3eaf07d5e6c1a98bfbe184dab32841ed03
parent 10318 84ac3c71109811da751f0ef2d72108075938f094
child 31567 18b87f375fdadfa751215f37f3541af012a90857
permissions -rw-r--r--
Bug 1202150 - Silence compiler warnings in nsMsgDBView and friends, part 6 final stragglers. r=rkent a=aleth,IanN SM CLOSED TREE

/* 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"
#include "imIUserStatusInfo.idl"
#include "nsISimpleEnumerator.idl"
#include "prplIProtocol.idl"

[scriptable, uuid(205d4b2b-1ccf-4879-9ef1-f08942566151)]
interface imICoreService: nsISupports {
  readonly attribute boolean initialized;

  // This will emit a prpl-init notification. After this point the 'initialized'
  // attribute will be 'true' and it's safe to access the services for accounts,
  // contacts, conversations and commands.
  void init();

  // This will emit a prpl-quit notification. This is the last opportunity to
  // use the aforementioned services before they are uninitialized.
  void quit();

  // returns an enumerator on a pplIProtocol array
  nsISimpleEnumerator getProtocols();

  prplIProtocol getProtocolById(in AUTF8String aProtocolId);

  readonly attribute imIUserStatusInfo globalUserStatus;
};