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_LaunchInfo.h
19 * @brief This is the header file for the _LaunchInfo class.
22 #ifndef _FAPP_INTERNAL_LAUNCH_INFO_H_
23 #define _FAPP_INTERNAL_LAUNCH_INFO_H_
25 #include <app_service.h>
27 #include <FOspConfig.h>
28 #include <FBaseObject.h>
29 #include <FBaseString.h>
30 #include <FAppTypes.h>
32 namespace Tizen { namespace Base
40 namespace Tizen { namespace App
42 class _IAppControlPluginProvider;
45 typedef result (*LaunchCbType)(void* data, _AppArg* pArg, _AppArg* pResArg, service_result_e res, int prop, int reqId);
48 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
49 // _DataControlInfo handles the launch request from this process
50 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
51 const long LAUNCH_INFO_MAGIC = 0x494C;
53 class _DataControlInfo
56 _DataControlInfo(_AppArg* pArg, LaunchCbType pCb, void* pData, int prop)
57 : magic(LAUNCH_INFO_MAGIC)
66 ~_DataControlInfo(void);
69 _DataControlInfo(const _DataControlInfo& rhs);
70 _DataControlInfo& operator =(const _DataControlInfo& rhs);
76 const LaunchCbType launchCb;
79 }; // _DataControlInfo
82 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
83 // _InAppRequestManager manges In-process AppControl request
84 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
88 _InProcessInfo(const Tizen::Base::String& aId, const Tizen::Base::String& oId, int prop, bool legacy, _IAppControlPluginProvider* pProvider, Tizen::Base::Runtime::IEventListener* pListener)
93 , pProvider(pProvider)
94 , pListener(pListener)
99 // implicit process info
100 _InProcessInfo(bool legacy, _IAppControlPluginProvider* pProvider, Tizen::Base::Runtime::IEventListener* pListener)
103 , pProvider(pProvider)
104 , pListener(pListener)
109 ~_InProcessInfo(void);
112 _InProcessInfo(const _InProcessInfo& rhs);
113 _InProcessInfo& operator =(const _InProcessInfo& rhs);
117 const Tizen::Base::String providerId;
118 const Tizen::Base::String operationId;
120 _IAppControlPluginProvider* pProvider;
121 Tizen::Base::Runtime::IEventListener* pListener;
126 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
127 // _RequestManager manges out-of-process launch request and handles the return arguments
128 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
132 _ResultInfo(_AppArg& arg)
141 _ResultInfo(const _ResultInfo& rhs);
142 _ResultInfo& operator =(const _ResultInfo& rhs);
152 #endif // _FAPP_INTERNAL_LAUNCH_INFO_H_