rem: dump(">>> WriteICS "+this.mUri.spec+"\n") 
context:     writeICS: function () {        var savedthis = this;        var listener =        {            onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail)            {                // All events are returned. Now set up a channel and a                // streamloader to upload.                // Will call onStopRequest when finised.                var icsStr = calComp.serializeToICS();                var ioService = Components.classes["@mozilla.org/network/io-service;1"]                                          .getService(Components.interfaces.nsIIOService);                var channel = ioService.newChannelFromURI(savedthis.mUri);                channel.notificationCallbacks = savedthis;                var uploadChannel = channel.QueryInterface(Components.interfaces.nsIUploadChannel);                var postStream = Components.classes["@mozilla.org/io/string-input-stream;1"]                                           .createInstance(Components.interfaces.nsIStringInputStream);                postStream.setData(icsStr, icsStr.length);                uploadChannel.setUploadStream(postStream, "text/calendar", -1);                channel.asyncOpen(savedthis, savedthis);            },            onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems)            {                var lastmodifed;                for (var i=0; i<aCount; i++) {                    calComp.addSubcomponent(aItems[i].icalComponent);                }            }        };        if (this.mInitializing)            return;        if (!this.mUri)            throw Components.results.NS_ERROR_FAILURE;dump(">>> WriteICS "+this.mUri.spec+"\n")        var calComp = this.mICSService.createIcalComponent("VCALENDAR");        calComp.version = "2.0";        calComp.prodid = "-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN";        this.getItems(calICalendar.ITEM_FILTER_TYPE_ALL, 0, null, null, listener);    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/32a94ac17bfa3cd3e06bb22dfa1da43c5f1b6b5a/calICSCalendar.js/clean/calendar/providers/ics/calICSCalendar.js