From e6fab580162a1cae2165ef88e254df284e6c7208 Mon Sep 17 00:00:00 2001 From: James Lal Date: Fri, 6 Jul 2012 13:20:00 -0700 Subject: spec out calendar resource --- lib/caldav/resources/calendar.js | 80 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 lib/caldav/resources/calendar.js (limited to 'lib/caldav/resources') 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')] +)); -- cgit