Update wm_layer
[apps/agl-service-windowmanager.git] / src / wm_layer_control.hpp
index 10b2082..df6c863 100644 (file)
@@ -44,7 +44,6 @@ class LayerControlCallbacks {
     LayerControlCallbacks(const LayerControlCallbacks &obj) = default;
 
     // callback functions
-    void test(unsigned i) { HMI_DEBUG("test %d", i); }
     std::function<void(unsigned, unsigned)> surfaceCreated;
     /* std::function<void(unsigned)> surfaceDestroyed;
     std::function<void(unsigned)> layerCreated;
@@ -64,6 +63,8 @@ class LayerControl
     WMError init(const LayerControlCallbacks& cb);
     void createNewLayer(unsigned id);
     unsigned getNewLayerID(const std::string& role, std::string* layer_name);
+    std::shared_ptr<WMLayer> getWMLayer(unsigned layer);
+    // std::shared_ptr<WMLayer> getWMLayer(std::string layer_name);
     struct rect getAreaSize(const std::string& area);
     void setupArea(double scaling);
     Screen getScreenInfo();
@@ -74,6 +75,7 @@ class LayerControl
     // std::vector<unsigned> getRenderOrder(const std::string& layer_name);
     WMError updateLayer(LayerState& layer_state);
     WMError commitChange();
+    // WMError renderWMLayers();
     void undoUpdate();
     WMError layoutChange(const WMAction& action);
     WMError visibilityChange(const WMAction &action);
@@ -89,6 +91,7 @@ class LayerControl
     WMError loadAreaDb(const std::string& path);
 
     std::vector<std::shared_ptr<WMLayer>> wm_layers;
+    std::unordered_map<unsigned, unsigned> lid2wmlid;
     std::unordered_map<std::string, struct rect> area2size;
     unsigned screenID;
     struct ilmScreenProperties screen_prop;