2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FScl_ContactEventImpl.h
19 * @brief This is the header file for the %_ContactEventImpl class.
21 * This header file contains the declarations of the %_ContactEventImpl class.
23 #ifndef _FSCL_INTERNAL_CONTACT_EVENT_IMPL_H_
24 #define _FSCL_INTERNAL_CONTACT_EVENT_IMPL_H_
26 #include <FBaseResult.h>
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
29 #include <FBaseDateTime.h>
30 #include <FSclTypes.h>
32 namespace Tizen { namespace Social
37 class _OSP_EXPORT_ _ContactEventImpl
38 : public Tizen::Base::Object
41 _ContactEventImpl(void);
43 _ContactEventImpl(const _ContactEventImpl& rhs);
45 virtual ~_ContactEventImpl(void);
47 virtual bool Equals(const Tizen::Base::Object& rhs) const;
49 virtual int GetHashCode(void) const;
51 ContactEventType GetType(void) const;
53 Tizen::Base::DateTime GetDate(void) const;
55 Tizen::Base::String GetLabel(void) const;
57 void SetType(ContactEventType type);
59 void SetLabel(const Tizen::Base::String& label);
61 void SetDate(const Tizen::Base::DateTime& date);
63 _ContactEventImpl& operator =(const _ContactEventImpl& rhs);
65 bool operator ==(const _ContactEventImpl& rhs) const;
67 bool operator !=(const _ContactEventImpl& rhs) const;
69 bool IsDateChanged(void) const;
71 static const _ContactEventImpl* GetInstance(const ContactEvent& contactEvent);
73 static _ContactEventImpl* GetInstance(ContactEvent& contactEvent);
76 ContactEventType __type;
77 Tizen::Base::DateTime __date;
78 Tizen::Base::String __label;
80 }; // _ContactEventImpl
84 #endif // _FSCL_CONTACT_EVENT_H_