// // Copyright (c) 2012 Samsung Electronics Co., Ltd. // // Licensed under the Apache License, Version 2.0 (the License); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /** * @file FScl_EmailContactImpl.h * @brief This is the header file for the %_EmailContactImpl class. * * This header file contains the declarations of the %_EmailContactImpl class. */ #ifndef _FSCL_INTERNAL_EMAIL_CONTACT_IMPL_H_ #define _FSCL_INTERNAL_EMAIL_CONTACT_IMPL_H_ #include #include #include #include namespace Tizen { namespace Social { class EmailContact; /** * @class _EmailContactImpl * @brief This class provides summarized contact information. * * @since 2.0 * */ class _EmailContactImpl : public Tizen::Base::Object { public: /** * This is default constructor for the class. * * @since 2.0 */ _EmailContactImpl(void); /** * Copying of objects using this copy constructor is allowed. * * @since 2.0 */ _EmailContactImpl(const _EmailContactImpl& rhs); /** * This destructor overrides Tizen::Base::Object::~Object(). * * @since 2.0 */ virtual ~_EmailContactImpl(void); virtual bool Equals(const Tizen::Base::Object& rhs) const; virtual int GetHashCode(void) const; RecordId GetContactId(void) const; PersonId GetPersonId(void) const; Tizen::Base::String GetDisplayName(void) const; Tizen::Base::String GetThumbnailPath(void) const; Tizen::Base::String GetRingtonePath(void) const; Email GetEmail(void) const; void SetPersonId(PersonId personId); void SetAddressbookId(AddressbookId addressbookId); AddressbookId GetAddressbookId(void) const; void SetContactId(RecordId contactId); void SetDisplayName(const Tizen::Base::String& displayName); void SetThumbnailPath(const Tizen::Base::String& thumbnail); void SetRingtonePath(const Tizen::Base::String& ringtone); void SetEmailData(int recordId, EmailType type, const Tizen::Base::String& label, const Tizen::Base::String& email); static _EmailContactImpl* GetInstance(EmailContact& simpleContact); static const _EmailContactImpl* GetInstance(const EmailContact& simpleContact); _EmailContactImpl& operator =(const _EmailContactImpl& rhs); bool operator ==(const _EmailContactImpl& rhs) const; private: AddressbookId __addressbookId; RecordId __contactId; PersonId __personId; Tizen::Base::String __displayName; Tizen::Base::String __thumbnail; Tizen::Base::String __ringtone; Email __email; }; // _EmailContactImpl }} // Tizen::Social #endif // _FSCL_INTERNAL_EMAIL_CONTACT_IMPL_H_