1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 const EXPORTED_SYMBOLS = ["Service"];
7 const {classes: Cc, interfaces: Ci, results: Cr, utils: Cu} = Components;
9 Cu.import("resource://services-common/preferences.js");
11 const PREFS_BRANCH = "services.notifications.";
14 function NotificationSvc() {
16 this.prefs = new Preferences(PREFS_BRANCH);
18 NotificationSvc.prototype = {
20 get serverURL() this.prefs.get("serverURL"),
22 onStartup: function onStartup() {
27 let Service = new NotificationSvc();