Change function name
[apps/agl-service-windowmanager.git] / src / applist.hpp
index 59f37ba..86c9903 100644 (file)
@@ -39,7 +39,7 @@ class AppList
     AppList(const AppList &obj) = delete;
 
     // Client Database Interface
-    /* TODO: consider, which is better WMClient as parameter?
+    /* TODO: consider, which is better WMClient as parameter or not
        If the WMClient should be more flexible, I think this param should be WMClient class
     */
     void addClient(const std::string &appid, unsigned layer, unsigned surface, const std::string &role);
@@ -48,13 +48,14 @@ class AppList
     int  countClient() const;
     std::shared_ptr<WMClient> lookUpClient(const std::string &appid);
     void removeSurface(unsigned surface);
+    std::string getAppID(unsigned surface, const std::string &role, bool *found) const;
 
     // Request Interface
     unsigned currentRequestNumber() const;
     unsigned getRequestNumber(const std::string &appid) const;
-    unsigned addAllocateRequest(WMRequest req);
+    unsigned addRequest(WMRequest req);
     WMError setAction(unsigned req_num, const struct WMAction &action);
-    WMError setAction(unsigned req_num, const std::string &appid, const std::string &role, const std::string &area, bool visible = true);
+    WMError setAction(unsigned req_num, const std::string &appid, const std::string &role, const std::string &area, TaskVisible visible);
     bool setEndDrawFinished(unsigned req_num, const std::string &appid, const std::string &role);
     bool endDrawFullfilled(unsigned req_num);
     void removeRequest(unsigned req_num);