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_ContactEventImpl.h
18 * @brief This is the header file for the %_ContactEventImpl class.
20 * This header file contains the declarations of the %_ContactEventImpl class.
22 #ifndef _FSCL_INTERNAL_CONTACT_EVENT_IMPL_H_
23 #define _FSCL_INTERNAL_CONTACT_EVENT_IMPL_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 class _OSP_EXPORT_ _ContactEventImpl
37 : public Tizen::Base::Object
40 _ContactEventImpl(void);
42 _ContactEventImpl(const _ContactEventImpl& rhs);
44 virtual ~_ContactEventImpl(void);
46 virtual bool Equals(const Tizen::Base::Object& rhs) const;
48 virtual int GetHashCode(void) const;
50 ContactEventType GetType(void) const;
52 Tizen::Base::DateTime GetDate(void) const;
54 Tizen::Base::String GetLabel(void) const;
56 void SetType(ContactEventType type);
58 void SetLabel(const Tizen::Base::String& label);
60 void SetDate(const Tizen::Base::DateTime& date);
62 _ContactEventImpl& operator =(const _ContactEventImpl& rhs);
64 bool operator ==(const _ContactEventImpl& rhs) const;
66 bool operator !=(const _ContactEventImpl& rhs) const;
68 bool IsDateChanged(void) const;
70 static const _ContactEventImpl* GetInstance(const ContactEvent& contactEvent);
72 static _ContactEventImpl* GetInstance(ContactEvent& contactEvent);
75 ContactEventType __type;
76 Tizen::Base::DateTime __date;
77 Tizen::Base::String __label;
79 }; // _ContactEventImpl
83 #endif // _FSCL_CONTACT_EVENT_H_