aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/resources/calendar.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-07-06 13:20:00 -0700
committerJames Lal <james@lightsofapollo.com>2012-07-06 13:20:00 -0700
commite6fab580162a1cae2165ef88e254df284e6c7208 (patch)
treead153321f9001e0f8695c19200467f1504a36a0b /lib/caldav/resources/calendar.js
parent37fcad14f53911b4beed11434598c883bfc6e011 (diff)
downloadjsCalDAV-e6fab580162a1cae2165ef88e254df284e6c7208.tar.gz
spec out calendar resource
Diffstat (limited to 'lib/caldav/resources/calendar.js')
-rw-r--r--lib/caldav/resources/calendar.js80
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')]
+));