[Calendar] working listeners
authorWojciech Kosowicz <w.kosowicz@samsung.com>
Mon, 22 Dec 2014 14:44:54 +0000 (15:44 +0100)
committerRafal Galka <r.galka@samsung.com>
Tue, 23 Dec 2014 13:55:05 +0000 (22:55 +0900)
commita6f40ee3016aaf6affc32fe51ea5f36a0c3dfab7
tree4eaa4b64bdcc8659d8bb8fdb570c222fc649c8c7
parentafc9069b107dd2724d1c394823b0df68e0866504
[Calendar] working listeners

[Verification]
eventInit = {description:"HTML5 Introduction",
  summary:"HTML5 Webinar",
  startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
  duration: new tizen.TimeDuration(1, "HOURS"),
  location:"Huesca"};
watcher = {
  onitemsadded: function (items) {
      console.log('entered');
  },
  onitemsupdated: function (items) {
  },
  onitemsremoved: function (ids) {
  }
};
calendar = tizen.calendar.getDefaultCalendar("EVENT");
watcherId = calendar.addChangeListener(watcher);
ev = new tizen.CalendarEvent(eventInit);
calendar.add(ev);

Change-Id: I4e4304fca036d97eccd62676bfebfbebd5f5f3b5
Signed-off-by: Wojciech Kosowicz <w.kosowicz@samsung.com>
src/calendar/calendar.cc
src/calendar/calendar_extension.cc
src/calendar/calendar_instance.cc
src/calendar/calendar_instance.h
src/calendar/js/tizen.calendar.Calendar.js