...
 
Commits (6)
......@@ -22,18 +22,18 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/mailServices.js");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangeaddress/exchangeAbFunctions.js");
Cu.import("resource://exchangecommon/erGetAttachments.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangeaddress/exchangeAbFunctions.js");
ChromeUtils.import("resource://exchangecommon/erGetAttachments.js");
var photoHandlerInline = {
onLoad: function _onLoad(aCard, aDocument) {
......@@ -63,7 +63,7 @@ var photoHandlerExternal = {
onShow: function _onShow(aCard, aDocument, aTargetID) {
if ((aCard) && (aCard.getProperty("PhotoData", ""))) {
this.downloadAttachment(aDocument.getElementById(aTargetID), aCard);
aDocument.getElementById(aTargetID).setAttribute("src", "chrome://exchangecontacts/content/loading-from-server.png");
aDocument.getElementById(aTargetID).setAttribute("src", "chrome://exchangecommon-common/skin/images/loading-from-server.png");
return true;
}
else {
......@@ -108,7 +108,7 @@ var photoHandlerExternal = {
onDownloadAttachmentError: function _onDownloadAttachmentError(aExchangeRequest, aCode, aMsg) {
//dump("photoHandlerExternal.onDownloadAttachmentError: aCode:"+aCode+", aMsg:"+aMsg+"\n");
aExchangeRequest.argument.img.setAttribute("src", "chrome://exchangecontacts/content/error-loading-from-server.png");
aExchangeRequest.argument.img.setAttribute("src", "chrome://exchangecommon-common/skin/images/error-loading-from-server.png");
},
}
......
......@@ -29,7 +29,7 @@
/* ::::: primary toolbar buttons ::::: */
#button-addexchangeaccount {
list-style-image: url("chrome://exchangecontacts/content/button-addcontact.22x22.png");
list-style-image: url("chrome://exchangecommon-common/skin/images/button-addcontact.22x22.png");
-moz-image-region: rect(0px 21px 21px 0px);
}
......@@ -47,7 +47,7 @@
/*---*/
#button-deleteexchangeaccount {
list-style-image: url("chrome://exchangecontacts/content/button-deletecontact.22x22.png");
list-style-image: url("chrome://exchangecommon-common/skin/images/button-deletecontact.22x22.png");
-moz-image-region: rect(0px 21px 21px 0px);
}
......
......@@ -22,18 +22,18 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/mailServices.js");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangeaddress/exchangeAbFunctions.js");
Cu.import("resource://exchangecommon/erGetAttachments.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangeaddress/exchangeAbFunctions.js");
ChromeUtils.import("resource://exchangecommon/erGetAttachments.js");
function exchAddressbookOverlay(aDocument, aWindow) {
this._document = aDocument;
......@@ -210,7 +210,7 @@ exchAddressbookOverlay.prototype = {
photoDisplayHandlerExternal: function _photoDisplayHandlerExternal(aCard, aImg) {
if ((aCard) && (aCard.getProperty("PhotoData"))) {
this.downloadAttachment(aImg, aCard);
aImg.setAttribute("src", "chrome://exchangecontacts/content/loading-from-server.png");
aImg.setAttribute("src", "chrome://exchangecommon-common/skin/images/loading-from-server.png");
return true;
}
else {
......@@ -291,7 +291,7 @@ exchAddressbookOverlay.prototype = {
onDownloadAttachmentError: function _onDownloadAttachmentError(aExchangeRequest, aCode, aMsg) {
this.globalFunctions.LOG("exchAddressbookOverlay.onDownloadAttachmentError: aCode:" + aCode + ", aMsg:" + aMsg);
aExchangeRequest.argument.img.setAttribute("src", "chrome://exchangecontacts/content/error-loading-from-server.png");
aExchangeRequest.argument.img.setAttribute("src", "chrome://exchangecommon-common/skin/images/error-loading-from-server.png");
},
}
......
......@@ -24,7 +24,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
function exchExchangeContactSettings(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -22,16 +22,16 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
Cu.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
var EXPORTED_SYMBOLS = ["erExpandDLRequest"];
......
......@@ -20,14 +20,14 @@
*
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
Cu.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
var EXPORTED_SYMBOLS = ["erFindContactsRequest"];
......
......@@ -22,16 +22,16 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
Cu.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
var EXPORTED_SYMBOLS = ["erGetContactsRequest"];
......
......@@ -22,16 +22,16 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
Cu.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
var EXPORTED_SYMBOLS = ["erResolveNames"];
......
......@@ -22,16 +22,16 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
Cu.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
var EXPORTED_SYMBOLS = ["erSyncContactsFolderRequest"];
......
......@@ -22,15 +22,15 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
var EXPORTED_SYMBOLS = [];
......
......@@ -20,12 +20,12 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
function mivExchangeAbCard() {
......
......@@ -20,26 +20,24 @@
*
*
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/mailServices.js");
Cu.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangeaddress/exchangeAbFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangeaddress/exchangeAbFunctions.js");
function exchangeAbDirFactory() {}
exchangeAbDirFactory.prototype = {
classID: components.ID("{e6f8074c-0236-4f51-b8e2-9c528727b4ee}"),
classID: Components.ID("{e6f8074c-0236-4f51-b8e2-9c528727b4ee}"),
contractID: "@mozilla.org/addressbook/directory-factory;1?name=exchWebService-contactRoot-directory",
classDescription: "Exchange 2007/2010 Contacts DirFactory",
......
......@@ -2,5 +2,3 @@ interfaces exchangeAbDirFactory.xpt
component {e6f8074c-0236-4f51-b8e2-9c528727b4ee} exchangeAbDirFactory.js
contract @mozilla.org/addressbook/directory-factory;1?name=exchWebService-contactRoot-directory {e6f8074c-0236-4f51-b8e2-9c528727b4ee}
......@@ -22,26 +22,26 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource:///modules/mailServices.js");
Cu.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
Cu.import("resource://exchangeaddress/erFindContacts.js");
Cu.import("resource://exchangeaddress/erGetContacts.js");
Cu.import("resource://exchangeaddress/erSyncContactsFolder.js");
Cu.import("resource://exchangeaddress/erExpandDL.js");
Cu.import("resource://exchangeaddress/erResolveNames.js");
ChromeUtils.import("resource://exchangeaddress/erFindContacts.js");
ChromeUtils.import("resource://exchangeaddress/erGetContacts.js");
ChromeUtils.import("resource://exchangeaddress/erSyncContactsFolder.js");
ChromeUtils.import("resource://exchangeaddress/erExpandDL.js");
ChromeUtils.import("resource://exchangeaddress/erResolveNames.js");
Cu.import("resource://exchangeaddress/exchangeAbFunctions.js");
ChromeUtils.import("resource://exchangeaddress/exchangeAbFunctions.js");
const nsIAP = Ci.nsIActivityProcess;
const nsIAE = Ci.nsIActivityEvent;
......
......@@ -22,28 +22,28 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource:///modules/mailServices.js");
Cu.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
Cu.import("resource://exchangeaddress/erFindContacts.js");
Cu.import("resource://exchangeaddress/erGetContacts.js");
Cu.import("resource://exchangeaddress/erSyncContactsFolder.js");
Cu.import("resource://exchangeaddress/erExpandDL.js");
Cu.import("resource://exchangeaddress/erResolveNames.js");
ChromeUtils.import("resource://exchangeaddress/erFindContacts.js");
ChromeUtils.import("resource://exchangeaddress/erGetContacts.js");
ChromeUtils.import("resource://exchangeaddress/erSyncContactsFolder.js");
ChromeUtils.import("resource://exchangeaddress/erExpandDL.js");
ChromeUtils.import("resource://exchangeaddress/erResolveNames.js");
//Cu.import("resource://exchangeaddress/exchangeAbDistListDirectory.js");
//ChromeUtils.import("resource://exchangeaddress/exchangeAbDistListDirectory.js");
Cu.import("resource://exchangeaddress/exchangeAbFunctions.js");
ChromeUtils.import("resource://exchangeaddress/exchangeAbFunctions.js");
const nsIAP = Ci.nsIActivityProcess;
const nsIAE = Ci.nsIActivityEvent;
......
......@@ -20,22 +20,21 @@
*
*
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource:///modules/mailServices.js");
Cu.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
Cu.import("resource://exchangeaddress/exchangeAbFunctions.js");
ChromeUtils.import("resource://exchangeaddress/exchangeAbFunctions.js");
//
// exchangeAbRootDirectory
......@@ -83,7 +82,7 @@ function exchangeAbRootDirectory() {
exchangeAbRootDirectory.prototype = {
classID: components.ID("{227664eb-cce6-4b7a-8d57-0bb0c6c9b362}"),
classID: Components.ID("{227664eb-cce6-4b7a-8d57-0bb0c6c9b362}"),
contractID: "@mozilla.org/addressbook/directory;1?type=exchWebService-contactRoot-directory",
classDescription: "Exchange 2007/2010 Contacts Root Directory",
......
......@@ -18,21 +18,19 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/mailServices.js");
function mivExchangeAutoCompleteResult() {
//dump("mivExchangeAutoCompleteResult init\n");
this._cards = new Array();
// _cards contain all Cards in value and are fetchable by localid as key
this._cards = new Object();
// _idcards keeps localids sorted by arrive
this._idcards = new Array();
}
var mivExchangeAutoCompleteResultGUID = "64587912-6dc2-413c-93ad-f062e21feaeb";
......@@ -50,7 +48,7 @@ mivExchangeAutoCompleteResult.prototype = {
classDescription: "Exchange Autocomplete Search Result",
classID: components.ID("{" + mivExchangeAutoCompleteResultGUID + "}"),
classID: Components.ID("{" + mivExchangeAutoCompleteResultGUID + "}"),
contractID: "@1st-setup.nl/exchange/autocompleteresult;1",
flags: Ci.nsIClassInfo.THREADSAFE,
......@@ -90,7 +88,6 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//readonly attribute AString searchString;
get searchString() {
//dump("searchString:"+this._searchString+"\n");
return this._searchString;
},
......@@ -103,7 +100,6 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//readonly attribute unsigned short searchResult;
get searchResult() {
//dump("searchResult:"+this._searchResult+"\n");
return this._searchResult;
},
......@@ -116,8 +112,9 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//readonly attribute long defaultIndex;
get defaultIndex() {
//dump("defaultIndex\n");
if (this._cards.length == 0) {
var defaultId = this._idcards.length;
if (defaultId == 0) {
return -1;
}
......@@ -129,7 +126,6 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//readonly attribute AString errorDescription;
get errorDescription() {
//dump("errorDescription\n");
return null;
},
......@@ -138,8 +134,7 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//readonly attribute unsigned long matchCount;
get matchCount() {
//dump("matchCount:"+this._cards.length+"\n");
return this._cards.length;
return this._idcards.length;
},
/**
......@@ -149,7 +144,7 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//readonly attribute boolean typeAheadResult;
get typeAheadResult() {
return this._cards.length <= 1;
return this._idcards.length <= 1;
},
/**
......@@ -157,10 +152,16 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//AString getValueAt(in long index);
getValueAt: function _getValueAt(aIndex) {
//dump("getValueAt["+aIndex+"]:"+this._cards[aIndex].primaryEmail+"\n");
if ((this._cards[aIndex].isMailList) && (this._cards[aIndex].primaryEmail.indexOf("@") == -1)) {
//dump(" >> I am a mailingList:"+this._cards[aIndex].mailListURI+"\n");
var dir = MailServices.ab.getDirectory(this._cards[aIndex].mailListURI);
var localid = this._idcards[aIndex];
var card = this._cards[localid];
var result = "";
if (card.isMailList
&& card.primaryEmail.indexOf("@") == -1) {
var dir = MailServices.ab.getDirectory(card.mailListURI);
if (dir) {
var emailList = "";
var childNodes = dir.childCards;
......@@ -169,28 +170,23 @@ mivExchangeAutoCompleteResult.prototype = {
emailList = emailList + ",";
}
var tmpCard = childNodes.getNext().QueryInterface(Ci.mivExchangeAbCard);
//dump(" || "+tmpCard+"\n");
// emailList = emailList + tmpCard.displayName + " <" + tmpCard.primaryEmail + ">" ;
emailList = emailList + tmpCard.firstName + " " + tmpCard.lastName + " <" + tmpCard.primaryEmail + ">";
}
//dump(" ++ addr:"+emailList+"\n");
return emailList;
result = emailList;
}
//dump(" -- mailListURI:"+this._cards[aIndex].mailListURI+"\n");
}
// return this._cards[aIndex].displayName + " <" + this._cards[aIndex].primaryEmail + ">";
//dump("firstname:"+this._cards[aIndex].firstName+", lastname:"+this._cards[aIndex].lastName+", displayName:"+this._cards[aIndex].displayName+"\n");
if ((this._cards[aIndex].firstName != "") || (this._cards[aIndex].lastName != "")) {
return this._cards[aIndex].firstName + " " + this._cards[aIndex].lastName + " <" + this._cards[aIndex].primaryEmail + ">";
else if (card.firstName != ""
|| card.lastName != "") {
result = card.firstName + " " + card.lastName + " <" + card.primaryEmail + ">";
}
else if (card.displayName != "") {
result = card.displayName + " <" + card.primaryEmail + ">";
}
else {
if (this._cards[aIndex].displayName != "") {
return this._cards[aIndex].displayName + " <" + this._cards[aIndex].primaryEmail + ">";
}
else {
return this._cards[aIndex].primaryEmail;
}
result = card.primaryEmail;
}
return result;
},
/**
......@@ -198,7 +194,6 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//AString getLabelAt(in long index);
getLabelAt: function _getLabelAt(aIndex) {
//dump("getLabelAt: aIndex:"+aIndex+"\n");
return this.getValueAt(aIndex);
},
......@@ -207,11 +202,15 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//AString getCommentAt(in long index);
getCommentAt: function _getCommentAt(aIndex) {
//dump("getCommentAt: aIndex:"+aIndex+"\n");
if ((this._cards[aIndex].isMailList) && (this._cards[aIndex].primaryEmail.indexOf("@") == -1)) {
return this._cards[aIndex].displayName;
var localid = this._idcards[aIndex];
var card = this._cards[localid];
var comment = "Exchange Calendar";
if (card.isMailList && card.primaryEmail.indexOf("@") == -1) {
comment = card.displayName;
}
return "Exchange Contact";
return comment;
},
/**
......@@ -219,7 +218,6 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//AString getStyleAt(in long index);
getStyleAt: function _getStyleAt(aIndex) {
//dump("getStyleAt: aIndex:"+aIndex+"\n");
return "exchange-abook";
},
......@@ -228,8 +226,7 @@ mivExchangeAutoCompleteResult.prototype = {
*/
//AString getImageAt(in long index);
getImageAt: function _getImageAt(aIndex) {
//dump("getImageAt: aIndex:"+aIndex+"\n");
return "chrome://exchangecommon/content/exchange-addrbook.png";
return "chrome://exchangecommon-common/skin/images/exchange-addrbook.png";
},
/**
......@@ -247,32 +244,33 @@ mivExchangeAutoCompleteResult.prototype = {
* persistent storage as well.
*/
//void removeValueAt(in long rowIndex, in boolean removeFromDb);
removeValueAt: function _removeValueAt(aRowIndex, removeFromDb) {},
removeValueAt: function _removeValueAt(aRowIndex, removeFromDb) {
var localid = this._idcards.splice(aRowIndex, 1);
delete this._cards[localid];
},
//void addResult(in mivExchangeAbCard aCard);
addResult: function _addResult(aCard) {
// First check if this card is not already in the list
var cardExists = false;
if (this._cards) {
for (var card of Object.values(this._cards)) {
if (card.localId == aCard.localId) {
cardExists = true;
break;
}
}
if (this._cards
&& this._cards[aCard.localId]) {
cardExists = true;
}
if (!cardExists) {
//dump("addResult:"+aCard.displayName+", primaryEmail:"+aCard.primaryEmail+", length:"+this._cards.length+"\n");
// if ((aCard.primaryEmail != "") && (aCard.primaryEmail.indexOf("@") > -1)) {
if (((aCard.primaryEmail != "") && (aCard.primaryEmail.indexOf("@") > -1)) || (aCard.isMailList)) {
this._cards.push(aCard);
if ((aCard.primaryEmail != "" && aCard.primaryEmail.indexOf("@") > -1)
|| (aCard.isMailList)) {
this._cards[aCard.localId] = aCard;
this._idcards.push(aCard.localId);
}
}
},
clearResults: function _clearResults() {
this._cards = new Array();
this._cards = new Object();
this._idcards = new Array();
this._searchResult = this.RESULT_NOMATCH_ONGOING;
this._searchString = "";
},
......@@ -280,20 +278,18 @@ mivExchangeAutoCompleteResult.prototype = {
};
function NSGetFactory(cid) {
try {
if (!NSGetFactory.mivExchangeAutoCompleteResult) {
// Load main script from lightning that we need.
NSGetFactory.mivExchangeAutoCompleteResult = XPCOMUtils.generateNSGetFactory([mivExchangeAutoCompleteResult]);
}
}
catch (e) {
Components.utils.reportError(e);
Cu.reportError(e);
dump(e);
throw e;
}
return NSGetFactory.mivExchangeAutoCompleteResult(cid);
}
......@@ -20,16 +20,16 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/mailServices.js");
Cu.import("resource://exchangeaddress/exchangeAbFunctions.js");
ChromeUtils.import("resource://exchangeaddress/exchangeAbFunctions.js");
function mivExchangeAutoCompleteSearch() {
......
......@@ -35,7 +35,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -35,14 +35,14 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
//Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/erForewardItem.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
//ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/erForewardItem.js");
//if (! exchWebService) var exchWebService = {};
......
......@@ -27,12 +27,12 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
Cu.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://gre/modules/Preferences.jsm");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/Preferences.jsm");
if (!exchWebService) var exchWebService = {};
......
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
function exchCalendarEventDialog(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -27,7 +27,7 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
......
......@@ -35,14 +35,14 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/erForewardItem.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/erForewardItem.js");
//if (! exchWebService) var exchWebService = {};
......
......@@ -3,12 +3,12 @@
*/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
const globalFunctions = Cc["@1st-setup.nl/global/functions;1"]
.getService(Ci.mivFunctions);
......
......@@ -7,22 +7,22 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/erFindFolder.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://exchangecalendar/erGetDelegateRequest.js");
Cu.import("resource://exchangecalendar/erAddDelegateRequest.js");
Cu.import("resource://exchangecalendar/erRemoveDelegateRequest.js");
Cu.import("resource://exchangecalendar/erUpdateDelegateRequest.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/erFindFolder.js");
Cu.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
ChromeUtils.import("resource://exchangecalendar/erGetDelegateRequest.js");
ChromeUtils.import("resource://exchangecalendar/erAddDelegateRequest.js");
ChromeUtils.import("resource://exchangecalendar/erRemoveDelegateRequest.js");
ChromeUtils.import("resource://exchangecalendar/erUpdateDelegateRequest.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
function exchDelegateCalendarSettings(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -20,7 +20,7 @@
buttons="cancel"
ondialogcancel="window.close();"
onload="tmpDelegateCalendarSettings.onLoad();">
<script type="application/x-javascript"
<script type="application/javascript"
src="chrome://exchangecommon/content/adutils.js" />
<script type="application/javascript"
src="chrome://exchangecalendar/content/delegateCalendar.js" />
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
function exchCalendarCreation(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -27,12 +27,12 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
Cu.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
function exchangeEventDialog(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -29,10 +29,10 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
//Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://calendar/modules/calUtils.jsm");
//ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
//if (! exchWebService) var exchWebService = {};
......
......@@ -7,18 +7,18 @@
* http://www.gnu.org/licenses/gpl.html
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
var EXPORTED_SYMBOLS = ["erAddDelegateRequest"];
......
......@@ -36,18 +36,18 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
var EXPORTED_SYMBOLS = ["erCreateAttachmentRequest"];
......
......@@ -36,16 +36,16 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
var EXPORTED_SYMBOLS = ["erDeleteAttachmentRequest"];
......
......@@ -33,18 +33,18 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
var EXPORTED_SYMBOLS = ["erFindCalendarItemsRequest"];
......
......@@ -34,16 +34,16 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
var EXPORTED_SYMBOLS = ["erFindFollowupItemsRequest"];
......
......@@ -38,18 +38,18 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
var EXPORTED_SYMBOLS = ["erFindMasterOccurrencesRequest"];
......
......@@ -34,20 +34,20 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecalendar/erGetMasterOccurrenceId.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
Cu.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
ChromeUtils.import("resource://exchangecalendar/erGetMasterOccurrenceId.js");
ChromeUtils.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
var EXPORTED_SYMBOLS = ["erFindOccurrencesRequest"];
......
......@@ -34,16 +34,16 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
var EXPORTED_SYMBOLS = ["erFindTaskItemsRequest"];
......
......@@ -7,18 +7,18 @@
* http://www.gnu.org/licenses/gpl.html
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
var EXPORTED_SYMBOLS = ["erGetDelegateRequest"];
......
......@@ -34,16 +34,16 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
var EXPORTED_SYMBOLS = ["erGetMasterOccurrenceIdRequest"];
......
......@@ -34,17 +34,17 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
const MAPI_PidLidTaskAccepted = "33032";
const MAPI_PidLidTaskLastUpdate = "33045";
......
......@@ -34,18 +34,18 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecalendar/erGetMasterOccurrenceId.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecalendar/erGetMasterOccurrenceId.js");
var EXPORTED_SYMBOLS = ["erGetOccurrenceIndexRequest"];
......
......@@ -36,19 +36,19 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
ChromeUtils.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
var EXPORTED_SYMBOLS = ["erGetTimeZonesRequest"];
......
......@@ -7,18 +7,18 @@
* http://www.gnu.org/licenses/gpl.html
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");
Cu.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
ChromeUtils.import("resource://exchangecommon/soapFunctions.js");
ChromeUtils.import("resource://exchangecommoninterfaces/xml2json/xml2json.js");
var EXPORTED_SYMBOLS = ["erRemoveDelegateRequest"];
......
......@@ -34,18 +34,18 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Cu.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
Cu.import("resource://exchangecommon/ecFunctions.js");
Cu.import("resource://exchangecommon/ecExchangeRequest.js");