fix first AppControl result handling
[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
31 namespace Tizen { namespace Base
32 {
33 class String;
34 class ByteBuffer;
35 }}
36
37 namespace Tizen { namespace Base { namespace Collection { class IList; } } }
38 namespace Tizen { namespace Base { namespace Collection { class IMap; } } }
39
40 namespace Tizen { namespace App
41 {
42
43 class AppControlProviderManager;
44 class IAppControlProviderEventListener;
45 class _AppArg;
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 {
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         ~_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         result SendAppControlResultPrimitive(RequestId reqId, _AppArg& arg, int ret);
97
98         friend class AppControlProviderManager;
99 };
100
101 }} // Tizen::App
102
103 #endif // _FAPP_INTERNAL_APPCONTROL_PROVIDER_MANAGER_IMPL_H_
104