summaryrefslogtreecommitdiffstats
path: root/comm/chat/modules/IMServices.sys.mjs
blob: eb6036b6087b504e0c30963f17ab139bc6c702dc (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* 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/. */

import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";

export const IMServices = {};

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