2 // Copyright (c) 2013 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_AccountImpl.h
18 * @brief This is the header file for the %_AccountImpl class.
20 * This header file contains the declarations of the %_AccountImpl class.
22 #ifndef _FSCL_INTERNAL_ACCOUNT_IMPL_H_
23 #define _FSCL_INTERNAL_ACCOUNT_IMPL_H_
25 #include <unique_ptr.h>
26 #include <FBaseColAllElementsDeleter.h>
27 #include <FBaseColHashMap.h>
28 #include <FBaseObject.h>
29 #include <FBaseString.h>
30 #include <FSclAccountProvider.h>
31 #include <FSclTypes.h>
33 namespace Tizen { namespace Base
41 namespace Tizen { namespace Social
47 : public Tizen::Base::Object
50 _AccountImpl(const Tizen::Base::String& userName);
52 _AccountImpl(const _AccountImpl& rhs);
54 virtual ~_AccountImpl(void);
56 virtual bool Equals(const Tizen::Base::Object& rhs) const;
58 virtual int GetHashCode(void) const;
60 AccountId GetId(void) const;
62 AccountProvider GetAccountProvider(void) const;
64 Tizen::Base::String GetUserName(void) const;
66 Tizen::Base::Collection::IMap* GetExtendedDataN(void) const;
68 void SetId(AccountId accountId);
70 void SetAccountProvider(const AccountProvider& accountProvider);
72 result SetUserName(const Tizen::Base::String& userName);
74 result SetExtendedData(const Tizen::Base::String& key, const Tizen::Base::String& value);
76 _AccountImpl& operator =(const _AccountImpl& rhs);
78 static const _AccountImpl* GetInstance(const Account& account);
80 static _AccountImpl* GetInstance(Account& account);
84 Tizen::Base::String __userName;
85 std::unique_ptr<Tizen::Base::Collection::HashMap, Tizen::Base::Collection::AllElementsDeleter> __pExtendedData;
86 AccountProvider __accountProvider;
92 #endif //_FSCL_INTERNAL_ACCOUNT_IMPL_H_