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 FScl_EmailImpl.h
18 * @brief This is the header file for the %_EmailImpl class.
20 * This header file contains the declarations of the %_EmailImpl class.
22 #ifndef _FSCL_EMAIL_IMPL_H_
23 #define _FSCL_EMAIL_IMPL_H_
26 #include <FBaseResult.h>
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
29 #include <FSclTypes.h>
31 namespace Tizen { namespace Social
36 class _OSP_EXPORT_ _EmailImpl
37 : public Tizen::Base::Object
42 _EmailImpl(EmailType type, const Tizen::Base::String& email);
44 _EmailImpl(const _EmailImpl& rhs);
46 virtual ~_EmailImpl(void);
48 virtual bool Equals(const Tizen::Base::Object& rhs) const;
50 virtual int GetHashCode(void) const;
52 void SetRecordId(int recordId);
54 int GetRecordId(void) const;
56 EmailType GetType(void) const;
58 void SetType(EmailType type);
60 Tizen::Base::String GetEmail(void) const;
62 result SetEmail(const Tizen::Base::String& email);
64 Tizen::Base::String GetLabel(void) const;
66 void SetLabel(const Tizen::Base::String& label);
68 bool IsEmpty(void) const;
70 _EmailImpl& operator =(const _EmailImpl& rhs);
72 bool operator ==(const _EmailImpl& rhs) const;
74 bool operator !=(const _EmailImpl& rhs) const;
76 static const _EmailImpl* GetInstance(const Email& email);
78 static _EmailImpl* GetInstance(Email& email);
83 Tizen::Base::String __label;
84 Tizen::Base::String __email;
89 #endif // _FSCL_EMAIL_H_