Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / app / inc / FApp_IAppManager.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_IAppManager.h
19  * @brief                       This is the header file for the %_IAppManager interface.
20  *
21  * This header file contains the declarations of the %_IAppManager interface.
22  */
23
24 #ifndef _FAPP_INTERNAL_IAPP_MANAGER_
25 #define _FAPP_INTERNAL_IAPP_MANAGER_
26
27 #include <FAppTypes.h>
28 #include <FApp_Types.h>
29
30 namespace Tizen { namespace Base { class String; } }
31 namespace Tizen { namespace Base { namespace Collection { class ArrayList; } } }
32
33 namespace Tizen { namespace App
34 {
35 class _IAppManagerServiceEventListener;
36
37 class _IAppManager
38 {
39 public:
40         virtual ~_IAppManager() {}
41
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;
48
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;
52 };
53
54 }} // Tizen::App
55
56 #endif //_FAPP_INTERNAL_IAPP_MANAGER_