chat/modules/imServices.jsm
author aleth <aleth@instantbird.org>
Sat, 01 Aug 2015 22:20:08 +0200
changeset 30349 44eb39c39056edb821c9c20034ff5dad357e6082
parent 22915 f81a23bfefcd0f6ec6215fbde12f8af2bc7749f1
child 30877 2063e3df2a22c57366845e41011bf5a7a36bf3bf
child 30948 7a2c243821cc79b3a11bc8fae12bc0c6135f35d5
permissions -rw-r--r--
Port recent build/ changes from bug 1182519 and bug 1186748. rs=bustage-fix a=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/. */

const EXPORTED_SYMBOLS = ["Services"];

Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.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");