diff options
Diffstat (limited to 'lib/caldav/resources/calendar.js')
-rw-r--r-- | lib/caldav/resources/calendar.js | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/lib/caldav/resources/calendar.js b/lib/caldav/resources/calendar.js new file mode 100644 index 0000000..a5a47c7 --- /dev/null +++ b/lib/caldav/resources/calendar.js @@ -0,0 +1,80 @@ +/** +@namespace +*/ +(function(module, ns) { + + /** + * Represents a (Web/Cal)Dav resource type. + * + * @param {Object} options public options on prototype. + */ + function Calendar(options) { + + } + + Calendar.prototype = { + + /** + * location of calendar resource + */ + url: null, + + /** + * color of calendar as defined by ical spec + */ + color: null, + + /** + * displayname as defined by webdav spec + */ + name: null, + + /** + * description of calendar as described by caldav spec + */ + description: null, + + /** + * Available ical components (like VEVENT) + * @type Array + */ + componentSet: null, + + /** + * change tag (as defined by calendarserver spec) + * used to determine if a change has occurred to this + * calendar resource. + */ + ctag: null, + + /** + * Resource types of this resource will + * always contain 'calendar' + * @type Array + */ + resourcetype: null, + + /** + * Set of privileges available to the user. + */ + privilegeSet: null, + + /** + * Creates a query request for this calendar resource. + * + * @return {CalDav.Request.CalendarQuery} query object. + */ + createQuery: function() { + + } + + }; + + module.exports = Calendar; + +}.apply( + this, + (this.Caldav) ? + [Caldav('resources/calendar'), Caldav] : + [module, require('../caldav')] +)); |