Waiting for the surface of new app is created before setting the size
[apps/agl-service-windowmanager.git] / src / app.hpp
index b7d6815..13bc421 100644 (file)
@@ -128,6 +128,14 @@ struct id_allocator {
    }
 };
 
+typedef struct CarInfo {
+    bool parking_brake_stt;
+    bool accel_pedal_stt;
+    double accel_pedal_pos;
+    const char *car_stt;
+    bool headlamp_stt;
+} CarInfo;
+
 struct App {
 
    typedef std::unordered_map<uint32_t, struct compositor::rect> rect_map;
@@ -234,6 +242,8 @@ struct App {
    void surface_created(uint32_t surface_id);
    void surface_removed(uint32_t surface_id);
 
+   void setAccelPedalPos(double val);
+
 private:
    PolicyManager pm_;
    LayoutManager lm_;
@@ -241,6 +251,7 @@ private:
    std::unordered_map<std::string, std::string> app2role_;
    std::unordered_map<std::string, std::string> role2app_;
    std::unordered_map<int, int> appid2role_;
+   CarInfo crr_car_info_;
 
    int allocateSurface();
    void setSurfaceSize(const char* role, const char* area);