const std::unordered_map<std::string, std::string> popCurrentState();
const std::unordered_map<std::string, std::string> getCurrentState();
const std::vector<unsigned> getIviIdList();
+ void addLayer(unsigned layer);
+ void removeLayer(unsigned layer);
+ void setArea(const std::string& app, const std::string& area);
private:
std::vector<unsigned> render_order;
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;