Replace int with pid_t where applicable
[platform/core/uifw/multi-assistant-service.git] / inc / application_manager.h
1 /*
2  * Copyright 2020 Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 #ifndef __APPLICATION_MANAGER_H__
19 #define __APPLICATION_MANAGER_H__
20
21 #include <boost/optional.hpp>
22 #include <string>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 class IApplicationManager {
29 public:
30         virtual bool is_application_running(pid_t pid) = 0;
31         virtual bool is_application_running(const std::string& appid) = 0;
32         virtual bool bring_app_to_foreground(const std::string& appid) = 0;
33         virtual bool launch_app_async(const std::string& appid, bool background) = 0;
34         virtual boost::optional<std::string> get_appid_by_pid(pid_t pid) = 0;
35 };
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif /* __APPLICATION_MANAGER_H__ */