2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 #ifndef _IEVENT_EXPAND_EVENT_RECURRENCE_H_
20 #define _IEVENT_EXPAND_EVENT_RECURRENCE_H_
22 #include <Commons/IEvent.h>
23 #include "CalendarEvent.h"
24 #include <dpl/shared_ptr.h>
30 class IEventExpandEventRecurrence : public WrtDeviceApis::Commons::IEvent<IEventExpandEventRecurrence>, public DeviceAPI::Common::SecurityAccessor
32 CalendarEventListPtr m_expandedEventList; //output
33 bool m_result; // ouput
34 CalendarEventPtr m_event; // input
35 long long int m_startDate; // input
36 long long int m_endDate; // input
39 void setResult(bool value)
43 bool getResult() const
48 CalendarEventListPtr getExpandedEventList() const
50 return m_expandedEventList;
53 void setEvent(CalendarEventPtr value)
57 CalendarEventPtr getEvent() const
62 void setStartDate(long long int value)
66 long long int getStartDate() const
71 void setEndDate(long long int value)
75 long long int getEndDate() const
80 void addExpandedEvent(CalendarEventPtr value)
82 m_expandedEventList->push_back(value);
85 IEventExpandEventRecurrence() : m_result(false)
87 CalendarEventListPtr events(new CalendarEventList());
88 m_expandedEventList = events;
90 ~IEventExpandEventRecurrence()
93 virtual void clearOnCancel()
98 typedef DPL::SharedPtr<IEventExpandEventRecurrence> IEventExpandEventRecurrencePtr;
103 #endif /* _IEVENT_EXPAND_EVENT_RECURRENCE_H_ */