sync with master
[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  *
51  * The %_AppControlProviderManagerImpl class manages all the application controls.
52  */
53 class _AppControlProviderManagerImpl
54         : public Tizen::Base::Object
55 {
56
57 public:
58         result SetAppControlProviderEventListener(IAppControlProviderEventListener* pListener);
59
60         result SendAppControlResult(RequestId reqId, const Tizen::Base::Collection::IList* pResultList);
61
62         result SendAppControlResult(RequestId reqId, AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pResultMap);
63
64         AppId GetClientAppId(RequestId reqId) const;
65
66         /**
67          * Internal GetImpl() method.
68          */
69         static const _AppControlProviderManagerImpl* GetInstance(const AppControlProviderManager& ac);
70
71         /**
72          * Internal GetImpl() method.
73          */
74         static _AppControlProviderManagerImpl* GetInstance(AppControlProviderManager& ac);
75
76 private:
77         /**
78          * This is the default constructor for this class.
79          */
80         _AppControlProviderManagerImpl(void);
81
82         /**
83          * This is the destructor for this class.
84          */
85         virtual ~_AppControlProviderManagerImpl(void);
86
87         /**
88          * This is the default copy constructor for this class.
89          */
90         _AppControlProviderManagerImpl(const _AppControlProviderManagerImpl& rhs);
91
92         /**
93         * This is the assignment operator for this class.
94         */
95         _AppControlProviderManagerImpl& operator =(const _AppControlProviderManagerImpl& rhs);
96
97         friend class AppControlProviderManager;
98 };
99
100 }} // Tizen::App
101
102 #endif // _FAPP_INTERNAL_APPCONTROL_PROVIDER_MANAGER_IMPL_H_
103