2 * Copyright 2020 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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 #ifndef __APPLICATION_MANAGER_H__
19 #define __APPLICATION_MANAGER_H__
21 #include <boost/optional.hpp>
28 class IApplicationManager {
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 virtual boost::optional<pid_t> get_pid_by_appid(const std::string& appid) = 0;
42 #endif /* __APPLICATION_MANAGER_H__ */