Fix for CompatTC Fail
[framework/osp/social.git] / src / FScl_ContactEventImpl.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 //
16 /**
17 * @file         FScl_ContactEventImpl.h
18 * @brief        This is the header file for the %_ContactEventImpl class.
19 *
20 * This header file contains the declarations of the %_ContactEventImpl class.
21 */
22 #ifndef _FSCL_INTERNAL_CONTACT_EVENT_IMPL_H_
23 #define _FSCL_INTERNAL_CONTACT_EVENT_IMPL_H_
24
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FBaseDateTime.h>
29 #include <FSclTypes.h>
30
31 namespace Tizen { namespace Social
32 {
33
34 class ContactEvent;
35
36 class _OSP_EXPORT_ _ContactEventImpl
37         : public Tizen::Base::Object
38 {
39 public:
40         _ContactEventImpl(void);
41
42         _ContactEventImpl(const _ContactEventImpl& rhs);
43
44         virtual ~_ContactEventImpl(void);
45
46         virtual bool Equals(const Tizen::Base::Object& rhs) const;
47
48         virtual int GetHashCode(void) const;
49
50         ContactEventType GetType(void) const;
51
52         Tizen::Base::DateTime GetDate(void) const;
53
54         Tizen::Base::String GetLabel(void) const;
55
56         void SetType(ContactEventType type);
57
58         void SetLabel(const Tizen::Base::String& label);
59
60         void SetDate(const Tizen::Base::DateTime& date);
61
62         _ContactEventImpl& operator =(const _ContactEventImpl& rhs);
63
64         bool operator ==(const _ContactEventImpl& rhs) const;
65
66         bool operator !=(const _ContactEventImpl& rhs) const;
67
68         bool IsDateChanged(void) const;
69
70         static const _ContactEventImpl* GetInstance(const ContactEvent& contactEvent);
71
72         static _ContactEventImpl* GetInstance(ContactEvent& contactEvent);
73
74 private:
75         ContactEventType __type;
76         Tizen::Base::DateTime __date;
77         Tizen::Base::String __label;
78         bool __isDateChanged;
79 }; // _ContactEventImpl
80
81 }} // Tizen::Social
82
83 #endif // _FSCL_CONTACT_EVENT_H_