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_PhoneNumberContactImpl.h
19 * @brief This is the header file for the %_PhoneNumberContactImpl class.
21 * This header file contains the declarations of the %_PhoneNumberContactImpl class.
23 #ifndef _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_
24 #define _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FSclTypes.h>
29 #include <FSclPhoneNumber.h>
31 namespace Tizen { namespace Social
34 class PhoneNumberContact;
37 * @class _PhoneNumberContactImpl
38 * @brief This class provides summarized contact information.
43 class _PhoneNumberContactImpl
44 : public Tizen::Base::Object
47 _PhoneNumberContactImpl(void);
49 _PhoneNumberContactImpl(const _PhoneNumberContactImpl& rhs);
51 virtual ~_PhoneNumberContactImpl(void);
53 virtual bool Equals(const Tizen::Base::Object& rhs) const;
55 virtual int GetHashCode(void) const;
57 RecordId GetContactId(void) const;
59 PersonId GetPersonId(void) const;
61 Tizen::Base::String GetDisplayName(void) const;
63 Tizen::Base::String GetThumbnailPath(void) const;
65 Tizen::Base::String GetRingtonePath(void) const;
67 PhoneNumber GetPhoneNumber(void) const;
69 void SetPersonId(PersonId personId);
71 void SetAddressbookId(AddressbookId addressbookId);
73 AddressbookId GetAddressbookId(void) const;
75 void SetContactId(RecordId contactId);
77 void SetDisplayName(const Tizen::Base::String& displayName);
79 void SetThumbnailPath(const Tizen::Base::String& thumbnail);
81 void SetRingtonePath(const Tizen::Base::String& ringtone);
83 void SetPhoneNumberData(int recordId, PhoneNumberType type, const Tizen::Base::String& label, const Tizen::Base::String& number);
85 static _PhoneNumberContactImpl* GetInstance(PhoneNumberContact& simpleContact);
87 static const _PhoneNumberContactImpl* GetInstance(const PhoneNumberContact& simpleContact);
89 _PhoneNumberContactImpl& operator =(const _PhoneNumberContactImpl& rhs);
91 bool operator ==(const _PhoneNumberContactImpl& rhs) const;
94 AddressbookId __addressbookId;
97 Tizen::Base::String __displayName;
98 Tizen::Base::String __thumbnail;
99 Tizen::Base::String __ringtone;
100 PhoneNumber __phoneNumber;
101 }; // _PhoneNumberContactImpl
105 #endif // _FSCL_INTERNAL_PHONE_NUMBER_CONTACT_IMPL_H_