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_AddressImpl.h
18 * @brief This is the header file for the %_AddressImpl class.
20 * This header file contains the declarations of the %_AddressImpl class.
22 #ifndef _FSCL_INTERNAL_ADDRESS_IMPL_H_
23 #define _FSCL_INTERNAL_ADDRESS_IMPL_H_
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FSclTypes.h>
30 namespace Tizen { namespace Social
35 class _OSP_EXPORT_ _AddressImpl
36 : public Tizen::Base::Object
41 _AddressImpl(const _AddressImpl& rhs);
43 virtual ~_AddressImpl(void);
45 virtual bool Equals(const Tizen::Base::Object& rhs) const;
47 virtual int GetHashCode(void) const;
49 AddressType GetType(void) const;
51 Tizen::Base::String GetExtended(void) const;
53 Tizen::Base::String GetStreet(void) const;
55 Tizen::Base::String GetCity(void) const;
57 Tizen::Base::String GetState(void) const;
59 Tizen::Base::String GetPostalCode(void) const;
61 Tizen::Base::String GetCountry(void) const;
63 Tizen::Base::String GetPostOfficeBoxNumber(void) const;
65 void SetType(AddressType type);
67 void SetExtended(const Tizen::Base::String& extended);
69 void SetStreet(const Tizen::Base::String& street);
71 void SetCity(const Tizen::Base::String& city);
73 void SetState(const Tizen::Base::String& state);
75 void SetPostalCode(const Tizen::Base::String& postalCode);
77 void SetCountry(const Tizen::Base::String& country);
79 void SetPostOfficeBoxNumber(const Tizen::Base::String& postOfficeBoxNumber);
81 Tizen::Base::String GetLabel(void) const;
83 void SetLabel(const Tizen::Base::String& label);
85 _AddressImpl& operator =(const _AddressImpl& rhs);
87 bool IsEmpty(void) const;
89 bool operator ==(const _AddressImpl& rhs) const;
91 bool operator !=(const _AddressImpl& rhs) const;
93 static const _AddressImpl* GetInstance(const Address& address);
95 static _AddressImpl* GetInstance(Address& Address);
99 Tizen::Base::String __label;
100 Tizen::Base::String __extended;
101 Tizen::Base::String __street;
102 Tizen::Base::String __city;
103 Tizen::Base::String __state;
104 Tizen::Base::String __postalCode;
105 Tizen::Base::String __country;
106 Tizen::Base::String __postOfficeBoxNumber;
112 #endif //_FSCL_INTERNAL_ADDRESS_IMPL_H_