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_PhoneNumberContactImpl.h
18 * @brief This is the header file for the %_PhoneNumberContactImpl class.
20 * This header file contains the declarations of the %_PhoneNumberContactImpl class.
22 #ifndef _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_
23 #define _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_
25 #include <FBaseObject.h>
26 #include <FBaseString.h>
27 #include <FSclTypes.h>
28 #include <FSclPhoneNumber.h>
30 namespace Tizen { namespace Social
33 class PhoneNumberContact;
36 * @class _PhoneNumberContactImpl
37 * @brief This class provides summarized contact information.
42 class _PhoneNumberContactImpl
43 : public Tizen::Base::Object
46 _PhoneNumberContactImpl(void);
48 _PhoneNumberContactImpl(const _PhoneNumberContactImpl& rhs);
50 virtual ~_PhoneNumberContactImpl(void);
52 virtual bool Equals(const Tizen::Base::Object& rhs) const;
54 virtual int GetHashCode(void) const;
56 RecordId GetContactId(void) const;
58 PersonId GetPersonId(void) const;
60 Tizen::Base::String GetDisplayName(void) const;
62 Tizen::Base::String GetThumbnailPath(void) const;
64 Tizen::Base::String GetRingtonePath(void) const;
66 PhoneNumber GetPhoneNumber(void) const;
68 void SetPersonId(PersonId personId);
70 void SetAddressbookId(AddressbookId addressbookId);
72 AddressbookId GetAddressbookId(void) const;
74 void SetContactId(RecordId contactId);
76 void SetDisplayName(const Tizen::Base::String& displayName);
78 void SetThumbnailPath(const Tizen::Base::String& thumbnail);
80 void SetRingtonePath(const Tizen::Base::String& ringtone);
82 void SetPhoneNumberData(int recordId, PhoneNumberType type, const Tizen::Base::String& label, const Tizen::Base::String& number);
84 static _PhoneNumberContactImpl* GetInstance(PhoneNumberContact& simpleContact);
86 static const _PhoneNumberContactImpl* GetInstance(const PhoneNumberContact& simpleContact);
88 _PhoneNumberContactImpl& operator =(const _PhoneNumberContactImpl& rhs);
90 bool operator ==(const _PhoneNumberContactImpl& rhs) const;
93 AddressbookId __addressbookId;
96 Tizen::Base::String __displayName;
97 Tizen::Base::String __thumbnail;
98 Tizen::Base::String __ringtone;
99 PhoneNumber __phoneNumber;
100 }; // _PhoneNumberContactImpl
104 #endif // _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_