43
edits
Mohitkanwal (talk | contribs) |
Mohitkanwal (talk | contribs) |
||
| Line 17: | Line 17: | ||
===50x Error Mode=== | ===50x Error Mode=== | ||
* '''calCachedCalendar::adoptItem''' calls up caldav:: | * '''calCachedCalendar::adoptItem''' calls up caldav::AdoptItemOrUseCache and passes "aListener" which inserts the item into the cache. | ||
* caldav::doAdoptItem | * caldav::adoptItemOrUseCache sets up opListener and calls up caldav::doAdoptItem with "opListener" | ||
* the request | * caldav::doAdoptItem passes addListener to the POST request | ||
* | * '''addListener::onOperationComplete''' is invoked with a status of 50x | ||
* | * '''addListener::onOperationComplete''' invokes '''opListener::onOperationComplete''' with a NS_ERROR_CONNECTION_REFUSED status | ||
* adoptOfflineItem | * opListener::onOperationComplete invokes adoptOfflineItem and passes it "listener" | ||
* adoptOfflineItem invokes listener on successful completion. | |||
* listener::onOperationComplete invokes "aListener::onOperationComplete" with a NS_ERROR_CONNECTION_REFUSED status msg | |||
It makes sense not to return a success code to "aListener" since there was no successful execution of the normal online mode. | |||
===Reconcile Mode=== | ===Reconcile Mode=== | ||
edits