Merge "Export internal APIs needed by samsung-socil" into tizen_2.1
[framework/osp/social.git] / src / FScl_EmailImpl.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_EmailImpl.h
18 * @brief        This is the header file for the %_EmailImpl class.
19 *
20 * This header file contains the declarations of the %_EmailImpl class.
21 */
22 #ifndef _FSCL_EMAIL_IMPL_H_
23 #define _FSCL_EMAIL_IMPL_H_
24
25 #include <contacts.h>
26 #include <FBaseResult.h>
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
29 #include <FSclTypes.h>
30
31 namespace Tizen { namespace Social
32 {
33
34 class Email;
35
36 class _OSP_EXPORT_ _EmailImpl
37         : public Tizen::Base::Object
38 {
39 public:
40         _EmailImpl(void);
41
42         _EmailImpl(EmailType type, const Tizen::Base::String& email);
43
44         _EmailImpl(const _EmailImpl& rhs);
45
46         virtual ~_EmailImpl(void);
47
48         virtual bool Equals(const Tizen::Base::Object& rhs) const;
49
50         virtual int GetHashCode(void) const;
51
52         void SetRecordId(int recordId);
53
54         int GetRecordId(void) const;
55
56         EmailType GetType(void) const;
57
58         void SetType(EmailType type);
59
60         Tizen::Base::String GetEmail(void) const;
61
62         result SetEmail(const Tizen::Base::String& email);
63
64         Tizen::Base::String GetLabel(void) const;
65
66         void SetLabel(const Tizen::Base::String& label);
67
68         bool IsEmpty(void) const;
69
70         _EmailImpl& operator =(const _EmailImpl& rhs);
71
72         bool operator ==(const _EmailImpl& rhs) const;
73
74         bool operator !=(const _EmailImpl& rhs) const;
75
76         static const _EmailImpl* GetInstance(const Email& email);
77
78         static _EmailImpl* GetInstance(Email& email);
79
80 private:
81         int __recordId;
82         EmailType __type;
83         Tizen::Base::String __label;
84         Tizen::Base::String __email;
85 }; // _EmailImpl
86
87 }} // Tizen::Social
88
89 #endif // _FSCL_EMAIL_H_