TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / src / anbox / dbus / stub / application_manager.h
1 /*
2  * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
3  *
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.
7  *
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.
12  *
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/>.
15  *
16  */
17
18 #ifndef ANBOX_DBUS_SKELETON_APPLICATION_MANAGER_H_
19 #define ANBOX_DBUS_SKELETON_APPLICATION_MANAGER_H_
20
21 #include "anbox/application/manager.h"
22 #include "anbox/dbus/bus.h"
23
24 #include <memory>
25
26 namespace anbox {
27 namespace dbus {
28 namespace stub {
29 class ApplicationManager : public anbox::application::Manager {
30  public:
31   static std::shared_ptr<ApplicationManager> create_for_bus(const BusPtr& bus);
32
33   ~ApplicationManager();
34
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;
38
39   core::Property<bool>& ready() override;
40
41   void update_properties();
42
43  private:
44   ApplicationManager(const BusPtr& bus);
45
46   BusPtr bus_;
47   core::Property<bool> ready_;
48 };
49 }  // namespace stub
50 }  // namespace dbus
51 }  // namespace anbox
52
53 #endif