aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/resources/calendar.js
blob: a5a47c7c07830682654d2984d583ff0bbb338c42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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')]
));