Re: Inherit from calStorageCalendar

"john.bieling--- via dev-apps-calendar" <[email protected]> Thu, 27 Apr 2017 00:36:18 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.calendar
Message-ID <[email protected]>
Thanks for your help! I can see in

https://dxr.mozilla.org/comm-central/source/calendar/providers/gdata/components/calGoogleCalendar.js

that you use this.mOfflineStorage to re-implement some of the interface methods:

getItem: function(aId, aListener) {
        this.mOfflineStorage.getItem.apply(this.mOfflineStorage, arguments);
},

so I *have* to implement such pass-through-methods for 

- getItem
- getItems
- deleteItem
- modifyItem
- adoptItem
- addItem

even though I do not want to add any functionality there? 

The property getter and setter look different:

setProperty: function(aName, aValue) {
   return this.__proto__.__proto__.setProperty.apply(this, arguments);
},

do I *have* to implement such pass-through-methods for the property setter and getter, even if I do not want to add any functionality there?

Is there any other place where I have to use this.mOfflineStorage in order to implement a provider that forces use of the cache ("offline mode")?

Thanks for your help,
John