2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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.
17 * @file FSclCalEventInstance.h
18 * @brief This is the header file for the %CalEventInstance class.
20 * This header file contains the declarations of the %CalEventInstance class.
22 #ifndef _FSCL_CAL_EVENT_INSTANCE_H_
23 #define _FSCL_CAL_EVENT_INSTANCE_H_
25 #include <FBaseObject.h>
26 #include <FSclTypes.h>
28 namespace Tizen { namespace Base
34 namespace Tizen { namespace Social
38 * @class CalEventInstance
39 * @brief This class represents the instance of a calendar book event.
43 * @final This class is not intended for extension.
45 * The %CalEventInstance class represents the instance of a calendar book event.
47 class _OSP_EXPORT_ CalEventInstance
48 : public Tizen::Base::Object
53 * This is the default constructor for this class.
57 CalEventInstance(void);
60 * Copying of objects using this copy constructor is allowed.
64 * @param[in] rhs An instance of %CalEventInstance to copy
66 CalEventInstance(const CalEventInstance& rhs);
69 * This destructor overrides Tizen::Base::Object::~Object().
73 virtual ~CalEventInstance(void);
76 * Compares the specified Tizen::Base::Object with the current %CalEventInstance instance.
80 * @return @c true if the specified object equals the current %CalEventInstance instance, @n
82 * @param[in] rhs The object instance to compare with the current object
85 virtual bool Equals(const Tizen::Base::Object& rhs) const;
88 * Gets the hash value of the current instance.
92 * @return The hash value of the current instance
94 virtual int GetHashCode(void) const;
97 * Gets the original event ID.
101 * @return The original event ID
103 RecordId GetOriginalEventId(void) const;
106 * Gets the calendar ID.
110 * @return The calendar ID
112 RecordId GetCalendarId(void) const;
115 * Gets the start time.
119 * @return The start time
121 Tizen::Base::DateTime GetStartTime(void) const;
128 * @return The end time
130 Tizen::Base::DateTime GetEndTime(void) const;
137 * @return The subject
139 Tizen::Base::String GetSubject(void) const;
142 * Gets the description.
146 * @return The description
148 Tizen::Base::String GetDescription(void) const;
155 * @return The location
157 Tizen::Base::String GetLocation(void) const;
160 * Checks whether the original event of this instance is an all day event.
164 * @return @c true if the original event of this instance is an all day event, @n
167 bool IsAllDayEvent(void) const;
170 * Gets the busy status.
174 * @return The busy status
176 BusyStatus GetBusyStatus(void) const;
179 * Gets the event status.
183 * @return The event status
185 EventStatus GetStatus(void) const;
192 * @return The priority
194 EventPriority GetPriority(void) const;
197 * Gets the sensitivity.
201 * @return The sensitivity
203 RecordSensitivity GetSensitivity(void) const;
206 * Checks whether the event instance has a recurring pattern.
210 * @return @c true if the event instance has a recurring pattern, @n
213 bool IsRecurring(void) const;
216 * Checks whether the event instance has reminders.
220 * @return @c true if the event instance has reminders, @n
223 bool HasReminder(void) const;
226 * Copying of objects using this copy assignment operator is allowed.
230 * @param[in] rhs An instance of %CalEventInstance to copy
232 CalEventInstance& operator =(const CalEventInstance& rhs);
235 friend class _CalEventInstanceImpl;
236 class _CalEventInstanceImpl* __pCalEventInstanceImpl;
237 }; // CalEventInstance
241 #endif // _FSCL_CAL_EVENT_INSTANCE_H_