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