summaryrefslogtreecommitdiff
path: root/mobile_src/Calendar/ICalendar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile_src/Calendar/ICalendar.cpp')
-rwxr-xr-xmobile_src/Calendar/ICalendar.cpp119
1 files changed, 119 insertions, 0 deletions
diff --git a/mobile_src/Calendar/ICalendar.cpp b/mobile_src/Calendar/ICalendar.cpp
new file mode 100755
index 0000000..2965f3f
--- /dev/null
+++ b/mobile_src/Calendar/ICalendar.cpp
@@ -0,0 +1,119 @@
+//
+// Tizen Web Device API
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+#include "ICalendar.h"
+#include <Commons/ThreadPool.h>
+#include <Logger.h>
+
+namespace DeviceAPI {
+namespace Calendar {
+
+ICalendar::ICalendar() :
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventAddEvent>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventAddEvents>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventDeleteEvent>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventDeleteEvents>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateEvent>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateEvents>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventFindEvents>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventCreateEventFromString>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventExportEventToString>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventWatchChanges>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventClearWatch>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventExpandEventRecurrence>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventGet>(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ m_id(UNDEFINED_ID),
+ m_accountId(UNDEFINED_CALENDAR_ID),
+ m_name(""),
+ m_type(CalendarEvent::UNDEFINED_TYPE),
+ m_lastChangedVersion(-1),
+ m_isUnified(false)
+{
+}
+
+ICalendar::~ICalendar()
+{
+}
+
+void ICalendar::addEvent(IEventAddEventPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventAddEvent>::PostRequest(event);
+}
+
+void ICalendar::addEvents(IEventAddEventsPtr &events)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventAddEvents>::PostRequest(events);
+}
+
+void ICalendar::updateEvent(IEventUpdateEventPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateEvent>::PostRequest(event);
+}
+
+void ICalendar::updateEvents(IEventUpdateEventsPtr &events)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateEvents>::PostRequest(events);
+}
+
+void ICalendar::deleteEvent(IEventDeleteEventPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventDeleteEvent>::PostRequest(event);
+}
+
+void ICalendar::deleteEvents(IEventDeleteEventsPtr &events)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventDeleteEvents>::PostRequest(events);
+}
+
+void ICalendar::findEvents(IEventFindEventsPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventFindEvents>::PostRequest(event);
+}
+
+void ICalendar::createEventFromString(IEventCreateEventFromStringPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventCreateEventFromString>::PostRequest(event);
+}
+
+void ICalendar::exportEventToString(IEventExportEventToStringPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventExportEventToString>::PostRequest(event);
+}
+
+void ICalendar::watchChanges(IEventWatchChangesPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventWatchChanges>::PostRequest(event);
+}
+
+void ICalendar::clearWatch(IEventClearWatchPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventClearWatch>::PostRequest(event);
+}
+
+void ICalendar::expandEventRecurrence(IEventExpandEventRecurrencePtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventExpandEventRecurrence>::PostRequest(event);
+}
+
+void ICalendar::get(IEventGetPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventGet>::PostRequest(event);
+}
+
+}
+}