diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-09-08 15:28:36 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-09-08 15:29:08 +0900 |
commit | 2f2639950dec4b97984fd6776a850e5d4703ef52 (patch) | |
tree | 83a61ec7fa6fc729974d116feddbd03b4e1909e4 /src/wm_layer.hpp | |
parent | f5001e404097c3e55ed9fad207036c55d11f5c8d (diff) |
Update wm_layer
* add getUuid
* add getWMLayer
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_layer.hpp')
-rw-r--r-- | src/wm_layer.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/wm_layer.hpp b/src/wm_layer.hpp index b14be46..4002c4b 100644 --- a/src/wm_layer.hpp +++ b/src/wm_layer.hpp @@ -56,11 +56,14 @@ class WMLayer STACK }; - explicit WMLayer(json_object* j); + explicit WMLayer(json_object* j, unsigned uuid); ~WMLayer() = default; + + // Status & Setting API unsigned getNewLayerID(const std::string& role); unsigned idBegin() { return this->id_begin; } unsigned idEnd() { return this->id_end; } + unsigned getUuid() { return this->uuid; } const std::string& layerName(); MANAGEMENT_TYPE layerType() { return this->type; } void appendArea(const std::string& area); @@ -69,9 +72,15 @@ class WMLayer WMError setLayerState(const LayerState& l); bool hasLayerID(unsigned id); bool hasRole(const std::string& role); + + // Manipulation + void addLayer(unsigned layer); + WMError commitChange(); + private: LayerState tmp_state; LayerState state; + unsigned uuid; std::string name = ""; // Layer name MANAGEMENT_TYPE type; std::string role_list; |