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 FScl_CalTodoChangeInfoImpl.h
18 * @brief This is the header file for the _CalTodoChangeInfoImpl class.
20 * This header file contains the declarations of the _CalTodoChangeInfoImpl class.
23 #ifndef _FSCL_INTERNAL_CAL_TODO_CHANGE_INFO_IMPL_H_
24 #define _FSCL_INTERNAL_CAL_TODO_CHANGE_INFO_IMPL_H_
26 #include <FBaseObject.h>
27 #include <FSclTypes.h>
29 namespace Tizen { namespace Social
32 class CalTodoChangeInfo;
35 * @class _CalTodoChangeInfoImpl
37 class _CalTodoChangeInfoImpl
38 : public Tizen::Base::Object
42 * This is the default constructor for this class.
45 _CalTodoChangeInfoImpl(void);
48 * Copying of objects using this copy constructor is allowed.
50 * @param[in] rhs An instance of _CalTodoChangeInfoImpl
52 _CalTodoChangeInfoImpl(const _CalTodoChangeInfoImpl& rhs);
55 * This destructor overrides Tizen::Base::Object::~Object().
57 virtual ~_CalTodoChangeInfoImpl(void);
60 * Compares the input Object with the calling %_CalTodoChangeInfoImpl instance.
62 * @return @c true if the input object equals the calling %_CalTodoChangeInfoImpl instance, @n
64 * @param[in] rhs The object instance to compare with the calling object
66 virtual bool Equals(const Tizen::Base::Object& rhs) const;
69 * Gets the hash value of the current instance.
71 * @return The hash value of the current instance
73 virtual int GetHashCode(void) const;
76 * Gets the change type.
78 * @return The change type
80 RecordChangeType GetChangeType(void) const;
83 * Gets the changed event Id.
85 * @return The changed event Id
87 RecordId GetTodoId(void) const;
90 * Gets the calendar ID that the changed event belongs to.
92 * @return The calendar ID that the changed event belongs to
94 RecordId GetCalendarId(void) const;
97 * Gets the version of the change.
99 * @return The version of the change
101 int GetVersion(void) const;
104 * Sets the change type.
106 * @param[in] changeType The change type
108 void SetChangeType(RecordChangeType changeType);
113 * @param[in] todoId The event ID
115 void SetTodoId(RecordId todoId);
118 * Sets the calendar ID.
120 * @param[in] accountId The calendar ID
122 void SetCalendarId(RecordId calendarId);
127 * @param[in] version The version
129 void SetVersion(int version);
132 * Gets the Impl instance.
134 * @return The pointer to _CalTodoChangeInfoImpl
135 * @param[in] calTodoChangeInfo An instance of %CalTodoChangeInfo class
137 static _CalTodoChangeInfoImpl* GetInstance(CalTodoChangeInfo& calTodoChangeInfo);
140 * Gets the Impl instance.
142 * @return The pointer to const _CalTodoChangeInfoImpl
143 * @param[in] calTodoChangeInfo A const instance of %CalTodoChangeInfo class
145 static const _CalTodoChangeInfoImpl* GetInstance(const CalTodoChangeInfo& calTodoChangeInfo);
148 * Copying of objects using this copy assignment operator is allowed.
150 * @param[in] rhs An instance of _CalTodoChangeInfoImpl
152 _CalTodoChangeInfoImpl& operator =(const _CalTodoChangeInfoImpl& rhs);
155 RecordChangeType __changeType;
157 RecordId __calendarId;
160 }; // _CalTodoChangeInfoImpl
164 #endif //_FSCL_INTERNAL_CAL_TODO_CHANGE_INFO_IMPL_H_