summaryrefslogtreecommitdiff
path: root/mobile_src/Calendar/IEventGetDefaultCalendar.h
diff options
context:
space:
mode:
Diffstat (limited to 'mobile_src/Calendar/IEventGetDefaultCalendar.h')
-rwxr-xr-xmobile_src/Calendar/IEventGetDefaultCalendar.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/mobile_src/Calendar/IEventGetDefaultCalendar.h b/mobile_src/Calendar/IEventGetDefaultCalendar.h
new file mode 100755
index 0000000..6df5681
--- /dev/null
+++ b/mobile_src/Calendar/IEventGetDefaultCalendar.h
@@ -0,0 +1,77 @@
+//
+// 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.
+//
+
+
+#ifndef _ABSTRACT_LAYER_IEVENT_GET_DEFAULT_CALENDAR_H_
+#define _ABSTRACT_LAYER_IEVENT_GET_DEFAULT_CALENDAR_H_
+
+#include <Commons/IEvent.h>
+#include "ICalendar.h"
+#include <dpl/shared_ptr.h>
+
+namespace DeviceAPI {
+namespace Calendar {
+
+class IEventGetDefaultCalendar : public WrtDeviceApis::Commons::IEvent<IEventGetDefaultCalendar>
+{
+ ICalendarPtr m_calendar;
+ bool m_result;
+ CalendarEvent::CalendarType m_type;
+
+ public:
+ void setResult(bool value)
+ {
+ m_result = value;
+ }
+ bool getResult() const
+ {
+ return m_result;
+ }
+
+ void setType(CalendarEvent::CalendarType value)
+ {
+ m_type = value;
+ }
+ CalendarEvent::CalendarType getType() const
+ {
+ return m_type;
+ }
+
+ void setCalendar(ICalendarPtr value)
+ {
+ m_calendar = value;
+ }
+ ICalendarPtr getCalendar() const
+ {
+ return m_calendar;
+ }
+
+ IEventGetDefaultCalendar() : m_calendar(NULL),
+ m_result(false),
+ m_type(CalendarEvent::UNDEFINED_TYPE)
+ {
+ }
+ ~IEventGetDefaultCalendar()
+ {
+ }
+};
+
+typedef DPL::SharedPtr<IEventGetDefaultCalendar> IEventGetDefaultCalendarPtr;
+
+}
+}
+#endif /* _ABSTRACT_LAYER_IEVENT_GET_DEFAULT_CALENDAR_H_ */