Fix invalid markdown
[apps/agl-service-windowmanager.git] / src / wm_client.hpp
index 99ae499..7df4dea 100644 (file)
@@ -45,12 +45,19 @@ class WMClient
 
     std::string appID() const;
     std::string role() const;
+    void setRole(const std::string& role);
     unsigned layerID() const;
+    void setLayerID(unsigned id);
     unsigned surfaceID() const;
     void registerSurface(unsigned surface);
+    void activate();
+    void deactivate();
+    std::string area() const {return this->app_area;};
+    void setArea(const std::string area) {this->app_area = area;}
     WMError addSurface(unsigned surface);
     bool isSourceSizeSet();
     void setSurfaceSizeCorrectly();
+    bool isActive() { return this->is_active;}
     bool removeSurfaceIfExist(unsigned surface);
 
     bool subscribe(afb_req_t req, const std::string &event_name);
@@ -66,8 +73,9 @@ class WMClient
     std::string id;
     unsigned layer;
     bool is_source_set;
+    bool is_active;
     std::string main_role;
-    std::string area;
+    std::string app_area;
     unsigned surface; // currently, main application has only one surface.
     //std::vector<std::string> role_list;
     std::unordered_map<std::string, unsigned> role2surface;