Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Calendar / IEventGetCalendar.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17  
18 #ifndef _ABSTRACT_LAYER_IEVENT_GET_CALENDAR_H_
19 #define _ABSTRACT_LAYER_IEVENT_GET_CALENDAR_H_
20
21 #include <vector>
22 #include <string>
23 #include <Commons/IEvent.h>
24 #include "ICalendar.h"
25 #include <dpl/shared_ptr.h>
26
27 namespace TizenApis {
28 namespace Api {
29 namespace Calendar {
30
31 class IEventGetCalendar : public WrtDeviceApis::Commons::IEvent<IEventGetCalendar>
32 {
33     ICalendarPtr     m_calendar; // output parameter
34     bool m_result;
35     std::string m_id; // input parameter
36     CalendarEvent::CalendarType m_type;
37
38   public:
39     void setResult(bool value)
40     {
41         m_result = value;
42     }
43     bool getResult() const
44     {
45         return m_result;
46     }
47
48     void setType(CalendarEvent::CalendarType value)
49     {
50         m_type = value;
51     }
52     CalendarEvent::CalendarType getType() const
53     {
54         return m_type;
55     }
56
57     void setId(std::string &value)
58     {
59         m_id = value;
60     }
61     std::string getId() const
62     {
63         return m_id;
64     }
65
66     void setCalendar(ICalendarPtr value)
67     {
68         m_calendar = value;
69     }
70     ICalendarPtr getCalendar() const
71     {
72         return m_calendar;
73     }
74
75     IEventGetCalendar() : m_result(false)
76     {
77     }
78     ~IEventGetCalendar()
79     {
80     }
81 };
82
83 typedef DPL::SharedPtr<IEventGetCalendar> IEventGetCalendarPtr;
84
85 }
86 }
87 }
88 #endif /* _ABSTRACT_LAYER_IEVENT_GET_CALENDAR_H_ */