summaryrefslogtreecommitdiff
path: root/mobile_src/Calendar/ICalendarManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile_src/Calendar/ICalendarManager.cpp')
-rwxr-xr-xmobile_src/Calendar/ICalendarManager.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/mobile_src/Calendar/ICalendarManager.cpp b/mobile_src/Calendar/ICalendarManager.cpp
new file mode 100755
index 0000000..e0fecf0
--- /dev/null
+++ b/mobile_src/Calendar/ICalendarManager.cpp
@@ -0,0 +1,58 @@
+//
+// 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 "ICalendarManager.h"
+#include <Commons/ThreadPool.h>
+
+namespace DeviceAPI {
+namespace Calendar {
+
+ICalendarManager::ICalendarManager() :
+ WrtDeviceApis::Commons::EventRequestReceiver< IEventGetCalendars >(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver< IEventGetDefaultCalendar >(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver< IEventGetUnifiedCalendar >(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD),
+ WrtDeviceApis::Commons::EventRequestReceiver< IEventGetCalendar >(WrtDeviceApis::Commons::ThreadEnum::NULL_THREAD)
+{
+}
+
+ICalendarManager::~ICalendarManager()
+{
+}
+
+void ICalendarManager::getCalendars(const IEventGetCalendarsPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventGetCalendars>::PostRequest(event);
+}
+
+void ICalendarManager::getDefaultCalendar(const IEventGetDefaultCalendarPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventGetDefaultCalendar>::PostRequest(event);
+}
+
+void ICalendarManager::getUnifiedCalendar(const IEventGetUnifiedCalendarPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventGetUnifiedCalendar>::PostRequest(event);
+}
+
+void ICalendarManager::getCalendar(const IEventGetCalendarPtr &event)
+{
+ WrtDeviceApis::Commons::EventRequestReceiver<IEventGetCalendar>::PostRequest(event);
+}
+
+}
+}