2 * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published
6 * by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranties of
10 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11 * PURPOSE. See the GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef ANBOX_DBUS_SKELETON_APPLICATION_MANAGER_H_
19 #define ANBOX_DBUS_SKELETON_APPLICATION_MANAGER_H_
21 #include "anbox/application/manager.h"
22 #include "anbox/dbus/bus.h"
29 class ApplicationManager : public anbox::application::Manager {
31 static std::shared_ptr<ApplicationManager> create_for_bus(const BusPtr& bus);
33 ~ApplicationManager();
35 void launch(const android::Intent &intent,
36 const graphics::Rect &launch_bounds = graphics::Rect::Invalid,
37 const wm::Stack::Id &stack = wm::Stack::Id::Default) override;
39 core::Property<bool>& ready() override;
41 void update_properties();
44 ApplicationManager(const BusPtr& bus);
47 core::Property<bool> ready_;