sync with tizen_2.0
[platform/framework/native/appfw.git] / src / app / FApp_AppControlProviderManagerImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file        FApp_AppControlProviderManagerImpl.h
20  * @brief       This is the header file for the %_AppControlProviderManagerImpl class.
21  *
22  * This header file contains the declarations of the %_AppControlProviderManagerImpl class.
23  */
24
25 #ifndef _FAPP_INTERNAL_APPCONTROL_PROVIDER_MANAGER_IMPL_H_
26 #define _FAPP_INTERNAL_APPCONTROL_PROVIDER_MANAGER_IMPL_H_
27
28 #include <FOspConfig.h>
29 #include <FBaseObject.h>
30 #include <FBaseDataType.h>
31 #include <FBaseColIListT.h>
32
33 namespace Tizen { namespace Base
34 {
35 class String;
36 class ByteBuffer;
37 }}
38
39 namespace Tizen { namespace Base { namespace Collection { class IList; } } }
40
41 namespace Tizen { namespace App
42 {
43
44 class AppControlProviderManager;
45 class IAppControlProviderEventListener;
46
47 /**
48  * @class       _AppControlProviderManagerImpl
49  * @brief       This class manages all the application controls.
50  * @since 2.1
51  *
52  * The %_AppControlProviderManagerImpl class manages all the application controls.
53  */
54 class _AppControlProviderManagerImpl
55         : public Tizen::Base::Object
56 {
57
58 public:
59         result SetAppControlProviderEventListener(IAppControlProviderEventListener* pListener);
60
61         result SendAppControlResult(RequestId reqId, const Tizen::Base::Collection::IList* pResultList);
62
63         result SendAppControlResult(RequestId reqId, AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pResultMap);
64
65         AppId GetClientAppId(RequestId reqId) const;
66
67         /** 
68          * Internal GetImpl() method.
69          */
70         static const _AppControlProviderManagerImpl* GetInstance(const AppControlProviderManager& ac);
71
72         /** 
73          * Internal GetImpl() method.
74          */
75         static _AppControlProviderManagerImpl* GetInstance(AppControlProviderManager& ac);
76
77 private:
78         /**
79          * This is the default constructor for this class.
80          */
81         _AppControlProviderManagerImpl(void);
82
83         /**
84          * This is the destructor for this class.
85          */
86         virtual ~_AppControlProviderManagerImpl(void);
87
88         /**
89          * This is the default copy constructor for this class.
90          */
91         _AppControlProviderManagerImpl(const _AppControlProviderManagerImpl& rhs);
92
93         /**
94          * This is the assignment operator for this class.
95          */
96         _AppControlProviderManagerImpl& operator =(const _AppControlProviderManagerImpl& rhs);
97
98         friend class AppControlProviderManager;
99 };
100
101 }} // Tizen::App
102
103 #endif // _FAPP_INTERNAL_APPCONTROL_PROVIDER_MANAGER_IMPL_H_
104