X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_layer.hpp;h=2a5f9bdc3449e0c3d030a368555d5fc565b2ae46;hb=58561703d4053dfd454fe564b59215ce025c4a12;hp=3362ba78cc826a77b29f4617a2f3c5caa781b36d;hpb=b73c8310f2ca06b356135ef3a1b17e5cb6e2ec5d;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_layer.hpp b/src/wm_layer.hpp index 3362ba7..2a5f9bd 100644 --- a/src/wm_layer.hpp +++ b/src/wm_layer.hpp @@ -38,6 +38,9 @@ class LayerState const std::unordered_map popCurrentState(); const std::unordered_map getCurrentState(); const std::vector getIviIdList(); + void addLayer(unsigned layer); + void removeLayer(unsigned layer); + void setArea(const std::string& app, const std::string& area); private: std::vector render_order; @@ -62,9 +65,10 @@ class WMLayer MANAGEMENT_TYPE layerType() { return this->type; } void appendArea(const std::string& area); void removeLayerID(unsigned id); - LayerState getLayerState() const { return before_state; } - WMError setLayerState(const LayerState& l); - bool checkIDBelongTo(unsigned id); + LayerState& getLayerState() { return before_state; } + WMError setLayerState(const LayerState& l); + bool hasLayerID(unsigned id); + bool hasRole(const std::string& role); private: LayerState before_state; LayerState state;