summaryrefslogtreecommitdiffstats
path: root/comm/chat/modules/IMServices.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'comm/chat/modules/IMServices.sys.mjs')
-rw-r--r--comm/chat/modules/IMServices.sys.mjs50
1 files changed, 50 insertions, 0 deletions
diff --git a/comm/chat/modules/IMServices.sys.mjs b/comm/chat/modules/IMServices.sys.mjs
new file mode 100644
index 0000000000..eb6036b608
--- /dev/null
+++ b/comm/chat/modules/IMServices.sys.mjs
@@ -0,0 +1,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"
+);