remove return on void function
[framework/osp/social.git] / src / FScl_EmailContactImpl.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_EmailContactImpl.h
18  * @brief               This is the header file for the %_EmailContactImpl class.
19  *
20  * This header file contains the declarations of the %_EmailContactImpl class.
21  */
22 #ifndef _FSCL_INTERNAL_EMAIL_CONTACT_IMPL_H_
23 #define _FSCL_INTERNAL_EMAIL_CONTACT_IMPL_H_
24
25 #include <FBaseObject.h>
26 #include <FBaseString.h>
27 #include <FSclTypes.h>
28 #include <FSclEmail.h>
29
30 namespace Tizen { namespace Social
31 {
32
33 class EmailContact;
34
35 /**
36  * @class       _EmailContactImpl
37  * @brief       This class provides summarized contact information.
38  *
39  * @since       2.0
40  *
41  */
42 class _EmailContactImpl
43         : public Tizen::Base::Object
44 {
45 public:
46         /**
47          * This is default constructor for the class.
48          *
49          * @since       2.0
50          */
51         _EmailContactImpl(void);
52
53         /**
54          * Copying of objects using this copy constructor is allowed.
55          *
56          * @since       2.0
57          */
58         _EmailContactImpl(const _EmailContactImpl& rhs);
59
60         /**
61          * This destructor overrides Tizen::Base::Object::~Object().
62          *
63          * @since       2.0
64          */
65         virtual ~_EmailContactImpl(void);
66
67         virtual bool Equals(const Tizen::Base::Object& rhs) const;
68
69         virtual int GetHashCode(void) const;
70
71         RecordId GetContactId(void) const;
72
73         PersonId GetPersonId(void) const;
74
75         Tizen::Base::String GetDisplayName(void) const;
76
77         Tizen::Base::String GetThumbnailPath(void) const;
78
79         Tizen::Base::String GetRingtonePath(void) const;
80
81         Email GetEmail(void) const;
82
83         void SetPersonId(PersonId personId);
84
85         void SetAddressbookId(AddressbookId addressbookId);
86
87         AddressbookId GetAddressbookId(void) const;
88
89         void SetContactId(RecordId contactId);
90
91         void SetDisplayName(const Tizen::Base::String& displayName);
92
93         void SetThumbnailPath(const Tizen::Base::String& thumbnail);
94
95         void SetRingtonePath(const Tizen::Base::String& ringtone);
96
97         void SetEmailData(int recordId, EmailType type, const Tizen::Base::String& label, const Tizen::Base::String& email);
98
99         static _EmailContactImpl* GetInstance(EmailContact& simpleContact);
100
101         static const _EmailContactImpl* GetInstance(const EmailContact& simpleContact);
102
103         _EmailContactImpl& operator =(const _EmailContactImpl& rhs);
104
105         bool operator ==(const _EmailContactImpl& rhs) const;
106
107 private:
108         AddressbookId __addressbookId;
109         RecordId        __contactId;
110         PersonId        __personId;
111         Tizen::Base::String __displayName;
112         Tizen::Base::String __thumbnail;
113         Tizen::Base::String __ringtone;
114         Email __email;
115 };      // _EmailContactImpl
116
117 }}      // Tizen::Social
118
119 #endif // _FSCL_INTERNAL_EMAIL_CONTACT_IMPL_H_