rem: function( wcapResponse ) { this_.getItems_resp( wcapResponse, itemFilter, maxResult, rangeStart, rangeEnd, listener ); } ); 
add: function( subComp ) { function patchTimezone( subComp, attr, xprop ) { var dt = subComp[attr]; if (dt != null) { if (LOG_LEVEL > 2) { this_.log( attr + " is " + dt ); } var tzid = subComp.getFirstProperty( xprop ); if (tzid != null) { subComp[attr] = dt.getInTimezone(tzid.value); if (LOG_LEVEL > 2) { this_.log( "patching " + xprop + " from " + dt + " to " + subComp[attr] ); } } } }  patchTimezone( subComp, "startTime", "X-NSCP-DTSTART-TZID" ); var item = null; switch (subComp.componentType) { case "VEVENT": { patchTimezone( subComp, "endTime", "X-NSCP-DTEND-TZID" ); item = new CalEvent(); item.icalComponent = subComp; break; } case "VTODO": { patchTimezone( subComp, "dueTime", "X-NSCP-DUE-TZID" ); item = new CalTodo(); item.icalComponent = subComp; switch (itemFilter & Components.interfaces.calICalendar .ITEM_FILTER_COMPLETED_ALL) { case Components.interfaces.calICalendar .ITEM_FILTER_COMPLETED_YES: if (!item.isCompleted) { delete item; item = null; } break; case Components.interfaces.calICalendar .ITEM_FILTER_COMPLETED_NO: if (item.isCompleted) { delete item; item = null; } break; }       if (item) { item.alarmOffset = null; item.alarmLastAck = null; } break; } } if (item != null) { var contactsProp = subComp.getFirstProperty("CONTACT"); if (contactsProp) { var ar = contactsProp.value.split(":"); if (ar.length > 1) { var lastAck = ar[1]; if (lastAck.length > 0) { item.alarmLastAck = getDatetimeFromIcalString( lastAck); } } }  if (!item.title) {   switch (item.privacy) { case "PRIVATE": item.title = g_privateItemTitle; break; case "CONFIDENTIAL": item.title = g_confidentialItemTitle; break; } }  item.calendar = this_.superCalendar; var rid = item.recurrenceId; if (rid) { if (LOG_LEVEL > 1) { this_.log( "exception item: " + item.title + "\nrid=" + rid.icalString, "item.id=" + item.id ); } excItems.push( item ); } else if (item.recurrenceInfo) { unexpandedItems.push( item ); uid2parent[item.id] = item; } else if (maxResult == 0 || nItems < maxResult) { if (LOG_LEVEL > 2) { this_.log( "item: " + item.title + "\n" + item.icalString ); } if (!bLeaveMutable) item.makeImmutable(); receiverFunc( [item] ); } } }, 
context:             function( wcapResponse ) {                this_.getItems_resp( wcapResponse,                                     itemFilter, maxResult,                                     rangeStart, rangeEnd, listener );            } );
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c317083d7059a49fd353caf3b5a0d690126aa6f8/calWcapCalendarItems.js/clean/calendar/providers/wcap/calWcapCalendarItems.js