2 // Copyright (c) 2012 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.
18 * @file FApp_AppControlEventArg.h
19 * @brief This is the header file of _AppControlEventArg class.
22 #ifndef _FAPP_INTERNAL_APP_CONTROL_EVENT_ARG_H_
23 #define _FAPP_INTERNAL_APP_CONTROL_EVENT_ARG_H_
25 #include <FBaseObject.h>
26 #include <FOspConfig.h>
27 #include <FAppTypes.h>
28 #include <FBaseRtIEventArg.h>
30 namespace Tizen { namespace Base { namespace Collection {
35 namespace Tizen { namespace App
39 class IAppControlResponseListener;
42 * @enum AppControlResposeType
44 enum _AppControlResponseType
46 _APPCONTROL_RESPONSETYPE_START,
47 _APPCONTROL_RESPONSETYPE_COMPLETE
51 * @class _AppControlEventArg
54 class _AppControlEventArg
55 : public Tizen::Base::Object
56 , public Tizen::Base::Runtime::IEventArg
59 _AppControlEventArg(int reqId, _AppArg* p, int res)
66 virtual ~_AppControlEventArg(void);
68 int GetRequestId(void) const
73 _AppArg* GetAppArg(void) const
78 int GetResult(void) const
84 _AppControlEventArg(const _AppControlEventArg& rhs);
86 _AppControlEventArg& operator =(const _AppControlEventArg& rhs);
92 }; // _AppControlEventArg
95 * @class _NativeAppControlEventArg
98 class _NativeAppControlEventArg
99 : public Tizen::Base::Object
100 , public Tizen::Base::Runtime::IEventArg
103 _NativeAppControlEventArg(int reqId, int res, Tizen::Base::Collection::IMap* pArgs, int prop);
105 virtual ~_NativeAppControlEventArg(void);
107 int GetRequestId(void) const
112 int GetResult(void) const
117 const Tizen::Base::Collection::IMap* GetArgs(void) const
122 int GetProperty(void) const
130 Tizen::Base::Collection::IMap* __pArgs;
131 const int __property;
132 }; // _NativeAppControlEventArg
135 * @class _AppControlStartEventArg
138 class _AppControlStartEventArg
139 : public Tizen::Base::Object
140 , public Tizen::Base::Runtime::IEventArg
143 _AppControlStartEventArg(int reqId, const AppId& appId, const Tizen::Base::String& operationId)
146 , __operationId(operationId)
150 virtual ~_AppControlStartEventArg(void)
154 int GetRequestId(void) const
159 AppId GetAppId(void) const
164 Tizen::Base::String GetOperationId(void) const
166 return __operationId;
170 _AppControlStartEventArg(const _AppControlStartEventArg& rhs);
172 _AppControlStartEventArg& operator =(const _AppControlStartEventArg& rhs);
177 Tizen::Base::String __operationId;
178 }; // _AppControlStartEventArg
181 * @class _AppControlResponseEventArg
184 class _AppControlResponseEventArg
185 : public Tizen::Base::Object
186 , public Tizen::Base::Runtime::IEventArg
189 _AppControlResponseEventArg(IAppControlResponseListener* pResponseListener, _AppControlResponseType type, const AppId& appId, const Tizen::Base::String& operationId, result res, AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData, int reqId, bool isSubMode)
190 : __pResponseListener(pResponseListener)
192 , __appId(appId.GetPointer())
193 , __operationId(operationId.GetPointer())
195 , __appControlResult(appControlResult)
196 , __pExtraData(pExtraData)
198 , __isSubMode(isSubMode)
202 virtual ~_AppControlResponseEventArg(void)
207 IAppControlResponseListener* GetListener(void) const
209 return __pResponseListener;
212 _AppControlResponseType GetType(void) const
217 const AppId& GetAppId(void) const
222 const Tizen::Base::String& GetOperationId(void) const
224 return __operationId;
227 result GetResult(void) const
232 AppCtrlResult GetAppControlResult(void) const
234 return __appControlResult;
237 const Tizen::Base::Collection::IMap* GetExtraData(void) const
242 int GetRequestId(void) const
247 bool IsSubMode(void) const
253 _AppControlResponseEventArg(const _AppControlResponseEventArg& rhs);
255 _AppControlResponseEventArg& operator =(const _AppControlResponseEventArg& rhs);
258 IAppControlResponseListener* __pResponseListener;
259 const _AppControlResponseType __type;
261 const Tizen::Base::String __operationId;
263 const AppCtrlResult __appControlResult;
264 const Tizen::Base::Collection::IMap* __pExtraData;
266 const bool __isSubMode;
267 }; // _AppControlEventArg
271 #endif // _FAPP_INTERNAL_APP_CONTROL_EVENT_ARG_H_