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 ApplicationManager(const BusPtr& bus, const std::shared_ptr<anbox::application::Manager> &impl);
32 ~ApplicationManager();
34 void launch(const android::Intent &intent,
35 const graphics::Rect &launch_bounds = graphics::Rect::Invalid,
36 const wm::Stack::Id &stack = wm::Stack::Id::Default) override;
38 core::Property<bool>& ready() override;
41 static const sd_bus_vtable vtable[];
42 static int method_launch(sd_bus_message *m, void *userdata, sd_bus_error *ret_error);
43 static int property_ready_get(sd_bus *bus, const char *path, const char *interface,
44 const char *property, sd_bus_message *reply, void *userdata,
45 sd_bus_error *ret_error);
48 std::shared_ptr<anbox::application::Manager> impl_;
49 sd_bus_slot *obj_slot_ = nullptr;
51 } // namespace skeleton