2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @author Lukasz Marek (l.marek@samsung.com)
22 #ifndef WRTDEVICEAPIS_CALENDAR_ICALENDAR_H_
23 #define WRTDEVICEAPIS_CALENDAR_ICALENDAR_H_
26 #include <dpl/log/log.h>
27 #include <dpl/shared_ptr.h>
28 #include <Calendar/CalendarEvent.h>
29 #include <Calendar/EventFilter.h>
30 #include <Calendar/EventAddEvent.h>
31 #include <Calendar/EventCreateEvent.h>
32 #include <Calendar/EventDeleteEvent.h>
33 #include <Calendar/EventFindEvents.h>
34 #include <Calendar/EventUpdateEvent.h>
36 namespace WrtDeviceApis {
41 public Commons::EventRequestReceiver<EventAddEvent>,
42 public Commons::EventRequestReceiver<EventDeleteEvent>,
43 public Commons::EventRequestReceiver<EventUpdateEvent>,
44 public Commons::EventRequestReceiver<EventFindEvents>,
45 public Commons::EventRequestReceiver<EventCreateEvent>
57 virtual void createEvent(const EventCreateEventPtr &event);
58 virtual void addEvent(const EventAddEventPtr &event);
59 virtual void updateEvent(const EventUpdateEventPtr &event);
60 virtual void deleteEvent(const EventDeleteEventPtr &event);
61 virtual void findEvents(const EventFindEventsPtr &event);
63 virtual std::string getName() const
67 virtual void setName(const std::string &value)
71 virtual CalendarType getType() const
75 virtual void setType(const CalendarType value)
79 virtual int getId() const
83 virtual void setId(const int value)
87 virtual int getAccountId() const
91 virtual void setAccountId(const int value)
101 virtual void OnRequestReceived(const EventAddEventPtr &event) = 0;
102 virtual void OnRequestReceived(const EventDeleteEventPtr &event) = 0;
103 virtual void OnRequestReceived(const EventUpdateEventPtr &event) = 0;
104 virtual void OnRequestReceived(const EventFindEventsPtr &event) = 0;
105 virtual void OnRequestReceived(const EventCreateEventPtr &event) = 0;
108 typedef DPL::SharedPtr<ICalendar> ICalendarPtr;
114 #endif // WRTDEVICEAPIS_CALENDAR_ICALENDAR_H_