chat/modules/imServices.jsm
author Patrick Cloke <clokep@patrick.cloke.us>
Fri, 04 Oct 2019 09:32:00 +0200
changeset 36211 81233eef62edcad1e1f548e2165c33960070e3e2
parent 35696 e5737872508567abf8b0444f43eb4ee4ce211c75
child 38076 7853102282e6bc50b8a2317e86b5185b0c5c250d
permissions -rw-r--r--
Bug 1586340 - Add JetBrains IDE files to .hgignore. r=mkmelin DONTBUILD

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

this.EXPORTED_SYMBOLS = ["Services"];

const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { XPCOMUtils } = ChromeUtils.import(
  "resource://gre/modules/XPCOMUtils.jsm"
);

XPCOMUtils.defineLazyServiceGetter(
  Services,
  "accounts",
  "@mozilla.org/chat/accounts-service;1",
  "imIAccountsService"
);
XPCOMUtils.defineLazyServiceGetter(
  Services,
  "core",
  "@mozilla.org/chat/core-service;1",
  "imICoreService"
);
XPCOMUtils.defineLazyServiceGetter(
  Services,
  "cmd",
  "@mozilla.org/chat/commands-service;1",
  "imICommandsService"
);
XPCOMUtils.defineLazyServiceGetter(
  Services,
  "contacts",
  "@mozilla.org/chat/contacts-service;1",
  "imIContactsService"
);
XPCOMUtils.defineLazyServiceGetter(
  Services,
  "conversations",
  "@mozilla.org/chat/conversations-service;1",
  "imIConversationsService"
);
XPCOMUtils.defineLazyServiceGetter(
  Services,
  "tags",
  "@mozilla.org/chat/tags-service;1",
  "imITagsService"
);
XPCOMUtils.defineLazyServiceGetter(
  Services,
  "logs",
  "@mozilla.org/chat/logger;1",
  "imILogger"
);