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_IAppManager.h
19 * @brief This is the header file for the %_IAppManager interface.
21 * This header file contains the declarations of the %_IAppManager interface.
24 #ifndef _FAPP_INTERNAL_IAPP_MANAGER_
25 #define _FAPP_INTERNAL_IAPP_MANAGER_
27 #include <FAppTypes.h>
28 #include <FApp_Types.h>
30 namespace Tizen { namespace Base { class String; } }
31 namespace Tizen { namespace Base { namespace Collection { class ArrayList; } } }
33 namespace Tizen { namespace App
35 class _IAppManagerServiceEventListener;
40 virtual ~_IAppManager() {}
42 virtual result LaunchApplication(const AppId& appId, int req) = 0;
43 virtual result TerminateApplication(const AppId& appId) = 0;
44 virtual bool IsRunning(const AppId& appId) = 0;
45 virtual result GetRunningAppList(Tizen::Base::Collection::ArrayList* pArray) = 0;
46 virtual result RegisterApplication(const Tizen::Base::String& packageId, const Tizen::Base::String& executableName, _AppType appType, int pid) = 0;
47 virtual result UnregisterApplication(int pid) = 0;
49 virtual result InitEventListener(_IAppManagerServiceEventListener* pListener) = 0;
50 virtual result AddEventListener(int clientId) = 0;//, _IAppManagerServiceEventListener* pListener) = 0;
51 virtual result RemoveEventListener(int clientId) = 0;//, _IAppManagerServiceEventListener* pListener) = 0;
56 #endif //_FAPP_INTERNAL_IAPP_MANAGER_