Update wm_client and applist
[apps/agl-service-windowmanager.git] / src / wm_client.hpp
index 0b5abe1..369f084 100644 (file)
@@ -42,6 +42,8 @@ class WMClient
     WMClient(const std::string &appid, unsigned layer,
             unsigned surface, const std::string &role);
     WMClient(const std::string &appid, const std::string &role);
+    WMClient(const std::string &appid, unsigned layer,
+        const std::string& layer_name, unsigned surface, const std::string &role);
     ~WMClient() = default;
 
     std::string appID() const;
@@ -53,7 +55,7 @@ class WMClient
     std::string role(unsigned surface) const;
     const std::vector<std::string> &roles() const;
     void setRole(const std::string& role);
-    void registerLayer(unsigned layer);
+    void appendRole(const std::string& role);
     bool addSurface(const std::string& role, unsigned surface);
     bool removeSurfaceIfExist(unsigned surface);
     bool removeRole(const std::string& role);