2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FScl_EmailImpl.h
19 * @brief This is the header file for the %_EmailImpl class.
21 * This header file contains the declarations of the %_EmailImpl class.
23 #ifndef _FSCL_EMAIL_IMPL_H_
24 #define _FSCL_EMAIL_IMPL_H_
27 #include <FBaseResult.h>
28 #include <FBaseObject.h>
29 #include <FBaseString.h>
30 #include <FSclTypes.h>
32 namespace Tizen { namespace Social
37 class _OSP_EXPORT_ _EmailImpl
38 : public Tizen::Base::Object
43 _EmailImpl(EmailType type, const Tizen::Base::String& email);
45 _EmailImpl(const _EmailImpl& rhs);
47 virtual ~_EmailImpl(void);
49 virtual bool Equals(const Tizen::Base::Object& rhs) const;
51 virtual int GetHashCode(void) const;
53 void SetRecordId(int recordId);
55 int GetRecordId(void) const;
57 EmailType GetType(void) const;
59 void SetType(EmailType type);
61 Tizen::Base::String GetEmail(void) const;
63 result SetEmail(const Tizen::Base::String& email);
65 Tizen::Base::String GetLabel(void) const;
67 void SetLabel(const Tizen::Base::String& label);
69 bool IsEmpty(void) const;
71 _EmailImpl& operator =(const _EmailImpl& rhs);
73 bool operator ==(const _EmailImpl& rhs) const;
75 bool operator !=(const _EmailImpl& rhs) const;
77 static const _EmailImpl* GetInstance(const Email& email);
79 static _EmailImpl* GetInstance(Email& email);
84 Tizen::Base::String __label;
85 Tizen::Base::String __email;
90 #endif // _FSCL_EMAIL_H_