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 FSclContactEvent.h
18 * @brief This is the header file for the %ContactEvent class.
20 * This header file contains the declarations of the %ContactEvent class.
22 #ifndef _FSCL_CONTACT_EVENT_H_
23 #define _FSCL_CONTACT_EVENT_H_
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FBaseDateTime.h>
29 #include <FSclTypes.h>
31 namespace Tizen { namespace Social
36 * @brief This class represents an event.
40 * @final This class is not intended for extension.
42 * The %ContactEvent class represents an event. An event consists of the event date, type, and label.
45 class _OSP_EXPORT_ ContactEvent
46 : public Tizen::Base::Object
50 * This is the default constructor for this class.
57 * Copying of objects using this copy constructor is allowed.
61 * @param[in] rhs An instance of %ContactEvent to copy
63 ContactEvent(const ContactEvent& rhs);
66 * This destructor overrides Tizen::Base::Object::~Object().
70 virtual ~ContactEvent(void);
73 * Checks whether the value of the specified instance is equal to the value of the current instance of Tizen::Base::Object.
77 * @return @c true if the value of the specified instance of Tizen::Base::Object is equal to the value of the current instance of %Tizen::Base::Object, @n
79 * @param[in] rhs An instance of Tizen::Base::Object to compare
81 virtual bool Equals(const Tizen::Base::Object& rhs) const;
84 * Gets the hash value of the current instance of Tizen::Base::Object.
88 * @return The integer value that indicates the hash value of the current instance of Tizen::Base::Object
90 virtual int GetHashCode(void) const;
93 * Gets the event type.
97 * @return The event type
99 ContactEventType GetType(void) const;
102 * Gets the event date.
106 * @return The event date
108 Tizen::Base::DateTime GetDate(void) const;
111 * Gets the label of an event.
115 * @return The event label
118 Tizen::Base::String GetLabel(void) const;
121 * Sets the event type.
125 * @param[in] type The event type
127 void SetType(ContactEventType type);
130 * Sets the label of an event.
134 * @param[in] label The event label
137 void SetLabel(const Tizen::Base::String& label);
140 * Sets the event date. @n
141 * The time portion of Tizen::Base::DateTime is ignored. The default time is 00:00:00.
145 * @param[in] date The event date
147 void SetDate(const Tizen::Base::DateTime& date);
150 * Copying of objects using this copy assignment operator is allowed.
154 * @param[in] rhs An instance of %ContactEvent to copy
156 ContactEvent& operator =(const ContactEvent& rhs);
159 * Checks whether the data in the specified instance of %ContactEvent is equal to the data in the current instance.
163 * @return @c true if the data in the specified instance equals the data in the current instance, @n
165 * @param[in] rhs An instance of %ContactEvent
167 bool operator ==(const ContactEvent& rhs) const;
170 * Checks whether the data in the specified instance of %ContactEvent is not equal to the data in the current instance.
174 * @return @c true if the data in the specified instance is not equal to the data in the current instance, @n
176 * @param[in] rhs An instance of %ContactEvent
178 bool operator !=(const ContactEvent& rhs) const;
181 friend class _ContactEventImpl;
182 class _ContactEventImpl* __pContactEventImpl;
188 #endif // _FSCL_CONTACT_EVENT_H_