/usr/lib/thunderbird-addons/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/calWcapCalendarModule.js is in xul-ext-lightning 1:24.4.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | /* 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/. */
Components.utils.import("resource://calendar/modules/calUtils.jsm");
//
// init code for globals, prefs:
//
// constants:
const NS_OK = Components.results.NS_OK;
const NS_ERROR_UNEXPECTED = Components.results.NS_ERROR_UNEXPECTED;
const nsIException = Components.interfaces.nsIException;
const nsISupports = Components.interfaces.nsISupports;
const calIWcapSession = Components.interfaces.calIWcapSession;
const calIWcapCalendar = Components.interfaces.calIWcapCalendar;
const calIWcapErrors = Components.interfaces.calIWcapErrors;
const calICalendar = Components.interfaces.calICalendar;
const calIItemBase = Components.interfaces.calIItemBase;
const calIOperationListener = Components.interfaces.calIOperationListener;
const calIFreeBusyProvider = Components.interfaces.calIFreeBusyProvider;
const calIFreeBusyInterval = Components.interfaces.calIFreeBusyInterval;
const calICalendarSearchProvider = Components.interfaces.calICalendarSearchProvider;
const calIErrors = Components.interfaces.calIErrors;
// some string resources:
var g_privateItemTitle;
var g_confidentialItemTitle;
var g_busyItemTitle;
var g_busyPhantomItemUuidPrefix;
// global preferences:
// caching the last data retrievals:
var CACHE_LAST_RESULTS = 4;
// timer secs for invalidation:
var CACHE_LAST_RESULTS_INVALIDATE = 120;
// logging:
var LOG_LEVEL = 0;
function initWcapProvider() {
try {
initLogging();
// some string resources:
g_privateItemTitle = cal.calGetString("wcap", "privateItem.title.text");
g_confidentialItemTitle = cal.calGetString("wcap", "confidentialItem.title.text");
g_busyItemTitle = cal.calGetString("wcap", "busyItem.title.text");
g_busyPhantomItemUuidPrefix = ("PHANTOM_uuid_" + cal.getUUID());
CACHE_LAST_RESULTS = cal.getPrefSafe("calendar.wcap.cache_last_results", 4);
CACHE_LAST_RESULTS_INVALIDATE = cal.getPrefSafe("calendar.wcap.cache_last_results_invalidate", 120);
} catch (exc) {
logError(exc, "error in init sequence");
}
}
/** Module Registration */
const scriptLoadOrder = [
"calUtils.js",
"calWcapUtils.js",
"calWcapErrors.js",
"calWcapRequest.js",
"calWcapSession.js",
"calWcapCalendar.js",
"calWcapCalendarItems.js"
];
function getComponents() {
initWcapProvider();
return [
calWcapCalendar,
calWcapNetworkRequest,
calWcapSession
];
}
var NSGetFactory = cal.loadingNSGetFactory(scriptLoadOrder, getComponents, this);
|