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 FSclPhoneNumberContact.h
18 * @brief This is the header file for the %PhoneNumberContact class.
20 * This header file contains the declarations of the %PhoneNumberContact class.
22 #ifndef _FSCL_PHONE_NUMBER_CONTACT_H_
23 #define _FSCL_PHONE_NUMBER_CONTACT_H_
25 #include <FBaseResult.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
35 * @brief This class provides the summarized contact information with the phone number.
39 * @final This class is not intended for extension.
41 * The %PhoneNumberContact class provides the summarized contact information. @n
42 * This provides a part of the contact information such as the ID, person ID, addressbook ID, display name, ringtone, thumbnail, and phone number.
44 class _OSP_EXPORT_ PhoneNumberContact
45 : public Tizen::Base::Object
50 * This is the default constructor for this class.
54 PhoneNumberContact(void);
57 * Copying of objects using this copy constructor is allowed.
61 * @param[in] rhs An instance of %PhoneNumberContact to copy
63 PhoneNumberContact(const PhoneNumberContact& rhs);
66 * This destructor overrides Tizen::Base::Object::~Object().
70 virtual ~PhoneNumberContact(void);
73 * Checks whether the value of the specified instance is equal to the value of the current instance of Tizen::Base::Object.
77 * @return @c true if the value of the specified instance of Tizen::Base::Object is equal to the value of the current instance of %Tizen::Base::Object, @n
79 * @param[in] rhs An instance of Tizen::Base::Object to compare
81 virtual bool Equals(const Tizen::Base::Object& rhs) const;
84 * Gets the hash value of the current instance.
88 * @return The hash value of the current instance
90 virtual int GetHashCode(void) const;
93 * Gets the addressbook ID.
97 * @return The addressbook ID
99 AddressbookId GetAddressbookId(void) const;
102 * Gets the person ID.
106 * @return The person ID
108 PersonId GetPersonId(void) const;
111 * Gets the contact ID.
115 * @return The contact ID
117 RecordId GetContactId(void) const;
120 * Gets the display name.
124 * @return The display name
126 Tizen::Base::String GetDisplayName(void) const;
129 * Gets the ringtone path.
133 * @return The ringtone path, @n
134 * else an empty string if the ringtone path has not been set for this contact
136 Tizen::Base::String GetRingtonePath(void) const;
139 * Gets the thumbnail path.
143 * @return The thumbnail path, @n
144 * else an empty string if the thumbnail path has not been set for this contact
146 Tizen::Base::String GetThumbnailPath(void) const;
149 * Gets the phone number.
153 * @return A PhoneNumber instance
155 PhoneNumber GetPhoneNumber(void) const;
158 * Copying of objects using this copy assignment operator is allowed.
162 * @param[in] rhs An instance of %PhoneNumberContact to copy
164 PhoneNumberContact& operator =(const PhoneNumberContact& rhs);
167 friend class _PhoneNumberContactImpl;
168 class _PhoneNumberContactImpl* __pPhoneNumberContactImpl;
170 }; // PhoneNumberContact
174 #endif // _FSCL_PHONE_NUMBER_CONTACT_H_