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
41 namespace Tizen { namespace App
46 typedef result (*LaunchCbType)(void* data, _AppArg* pArg, _AppArg* pResArg, service_result_e res, int prop, int reqId);
49 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
50 // _LaunchInfo handles the launch request from this process
51 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
52 const long LAUNCH_INFO_MAGIC = 0x494C;
57 _LaunchInfo(_AppArg* pArg, LaunchCbType pCb, void* pData, int prop)
58 : magic(LAUNCH_INFO_MAGIC)
70 _LaunchInfo(const _LaunchInfo& rhs);
71 _LaunchInfo& operator =(const _LaunchInfo& rhs);
77 const LaunchCbType launchCb;
83 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
84 // _InAppRequestManager manges In-process AppControl request
85 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
89 _InProcessInfo(const Tizen::Base::String& aId, const Tizen::Base::String& oId, int prop, bool legacy, Tizen::Base::Runtime::_LibraryImpl& lib, Tizen::Base::Runtime::IEventListener* pListener)
95 , pListener(pListener)
100 ~_InProcessInfo(void);
103 _InProcessInfo(const _InProcessInfo& rhs);
104 _InProcessInfo& operator =(const _InProcessInfo& rhs);
108 const Tizen::Base::String providerId;
109 const Tizen::Base::String operationId;
111 Tizen::Base::Runtime::_LibraryImpl* pLib; // non-empty
112 Tizen::Base::Runtime::IEventListener* pListener;
117 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
118 // _RequestManager manges out-of-process launch request and handles the return arguments
119 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
123 _ResultInfo(_AppArg& arg)
134 _ResultInfo(const _ResultInfo& rhs);
135 _ResultInfo& operator =(const _ResultInfo& rhs);
145 #endif // _FAPP_INTERNAL_LAUNCH_INFO_H_