Merge "Export internal APIs needed by samsung-socil" into tizen_2.1
[framework/osp/social.git] / src / FScl_PhoneNumberContactImpl.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_PhoneNumberContactImpl.h
18  * @brief               This is the header file for the %_PhoneNumberContactImpl class.
19  *
20  * This header file contains the declarations of the %_PhoneNumberContactImpl class.
21  */
22 #ifndef _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_
23 #define _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_
24
25 #include <FBaseObject.h>
26 #include <FBaseString.h>
27 #include <FSclTypes.h>
28 #include <FSclPhoneNumber.h>
29
30 namespace Tizen { namespace Social
31 {
32
33 class PhoneNumberContact;
34
35 /**
36  * @class       _PhoneNumberContactImpl
37  * @brief       This class provides summarized contact information.
38  *
39  * @since       2.0
40  *
41  */
42 class _PhoneNumberContactImpl
43         : public Tizen::Base::Object
44 {
45 public:
46         _PhoneNumberContactImpl(void);
47
48         _PhoneNumberContactImpl(const _PhoneNumberContactImpl& rhs);
49
50         virtual ~_PhoneNumberContactImpl(void);
51
52         virtual bool Equals(const Tizen::Base::Object& rhs) const;
53
54         virtual int GetHashCode(void) const;
55
56         RecordId GetContactId(void) const;
57
58         PersonId GetPersonId(void) const;
59
60         Tizen::Base::String GetDisplayName(void) const;
61
62         Tizen::Base::String GetThumbnailPath(void) const;
63
64         Tizen::Base::String GetRingtonePath(void) const;
65
66         PhoneNumber GetPhoneNumber(void) const;
67
68         void SetPersonId(PersonId personId);
69
70         void SetAddressbookId(AddressbookId addressbookId);
71
72         AddressbookId GetAddressbookId(void) const;
73
74         void SetContactId(RecordId contactId);
75
76         void SetDisplayName(const Tizen::Base::String& displayName);
77
78         void SetThumbnailPath(const Tizen::Base::String& thumbnail);
79
80         void SetRingtonePath(const Tizen::Base::String& ringtone);
81
82         void SetPhoneNumberData(int recordId, PhoneNumberType type, const Tizen::Base::String& label, const Tizen::Base::String& number);
83
84         static _PhoneNumberContactImpl* GetInstance(PhoneNumberContact& simpleContact);
85
86         static const _PhoneNumberContactImpl* GetInstance(const PhoneNumberContact& simpleContact);
87
88         _PhoneNumberContactImpl& operator =(const _PhoneNumberContactImpl& rhs);
89
90         bool operator ==(const _PhoneNumberContactImpl& rhs) const;
91
92 private:
93         AddressbookId __addressbookId;
94         RecordId        __contactId;
95         PersonId        __personId;
96         Tizen::Base::String __displayName;
97         Tizen::Base::String __thumbnail;
98         Tizen::Base::String __ringtone;
99         PhoneNumber __phoneNumber;
100 };      // _PhoneNumberContactImpl
101
102 }}      // Tizen::Social
103
104 #endif // _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_