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_AccountProviderImpl.h
18 * @brief This is the header file for the %_AccountProviderImpl class.
20 * This header file contains the declarations of the %_AccountProviderImpl class.
22 #ifndef _FSCL_INTERNAL_ACCOUNT_PROVIDER_IMPL_H_
23 #define _FSCL_INTERNAL_ACCOUNT_PROVIDER_IMPL_H_
25 #include <unique_ptr.h>
26 #include <FAppTypes.h>
27 #include <FBaseColAllElementsDeleter.h>
28 #include <FBaseColArrayList.h>
29 #include <FBaseObject.h>
30 #include <FBaseString.h>
31 #include <FSclTypes.h>
33 namespace Tizen { namespace Base
41 namespace Tizen { namespace Social
44 class AccountProvider;
46 class _AccountProviderImpl
47 : public Tizen::Base::Object
50 _AccountProviderImpl(void);
52 _AccountProviderImpl(const _AccountProviderImpl& rhs);
54 virtual ~_AccountProviderImpl(void);
56 virtual bool Equals(const Tizen::Base::Object& rhs) const;
58 virtual int GetHashCode(void) const;
60 result AddCapability(const Tizen::Base::String& capability);
62 Tizen::App::AppId GetAppId(void) const;
64 Tizen::Base::Collection::IList* GetCapabilitiesN(void) const;
66 Tizen::Base::String GetDisplayName(void) const;
68 Tizen::Base::String GetIconPath(void) const;
70 Tizen::Base::String GetSmallIconPath(void) const;
72 bool IsMultipleAccountSupported(void) const;
74 void SetAppId(const Tizen::App::AppId& appId);
76 void SetDisplayName(const Tizen::Base::String& displayName);
78 void SetIconPath(const Tizen::Base::String& iconPath);
80 void SetSmallIconPath(const Tizen::Base::String& smallIconPath);
82 void SetMultipleAccountsSupport(bool isSupported);
84 _AccountProviderImpl& operator =(const _AccountProviderImpl& rhs);
86 bool operator ==(const _AccountProviderImpl& rhs) const;
88 bool operator !=(const _AccountProviderImpl& rhs) const;
90 static const _AccountProviderImpl* GetInstance(const AccountProvider& accountProvider);
92 static _AccountProviderImpl* GetInstance(AccountProvider& accountProvider);
95 Tizen::App::AppId __appId;
96 std::unique_ptr<Tizen::Base::Collection::ArrayList, Tizen::Base::Collection::AllElementsDeleter> __pCapabilityList;
97 Tizen::Base::String __displayName;
98 Tizen::Base::String __iconPath;
99 Tizen::Base::String __smallIconPath;
100 bool __isMultipleAccountSupported;
102 }; // _AccountProviderImpl
106 #endif //_FSCL_INTERNAL_ACCOUNT_PROVIDER_IMPL_H_