X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapplist.hpp;h=b4ac9e0b4367ee00588a7a52eae3cd19e088d065;hb=refs%2Fheads%2Fsandbox%2Fknimitz%2Fset_role_pid_ver;hp=a5a895a795adb0b96c7a58fbbece93751c82a210;hpb=61f72b854becd30d15447b6c675a673dffb65372;p=apps%2Fagl-service-windowmanager.git diff --git a/src/applist.hpp b/src/applist.hpp index a5a895a..b4ac9e0 100644 --- a/src/applist.hpp +++ b/src/applist.hpp @@ -20,9 +20,9 @@ #include #include #include -#include "wm-client.hpp" +#include "wm_client.hpp" #include "request.hpp" -#include "wm-error.h" +#include "wm_error.hpp" namespace wm { @@ -51,14 +51,17 @@ class AppList int countClient() const; std::shared_ptr lookUpClient(const std::string &appid); void removeSurface(unsigned surface); - WMError lookUpFloatingSurface(unsigned pid, unsigned *surface); - WMError lookUpFloatingSurface(const std::string &appid, unsigned *surface); WMError appendRole(const std::string &appid, const std::string &role, unsigned surface); + + // Floating surface & client control void addFloatingClient(const std::string &appid, unsigned layer, const std::string &role); + void addFloatingSurface(unsigned surface, unsigned pid); + WMError popFloatingSurface(unsigned pid, unsigned *surface); + WMError popFloatingSurface(const std::string &appid, unsigned *surface); + void removeFloatingSurface(unsigned surface); // Request Interface - unsigned - currentRequestNumber() const; + unsigned currentRequestNumber() const; unsigned getRequestNumber(const std::string &appid) const; unsigned addAllocateRequest(WMRequest req); /* TODO: consider, which is better WMClient or std::string appid? @@ -72,11 +75,12 @@ class AppList void next(); bool haveRequest() const; - struct WMTrigger getRequest(unsigned req_num); - const std::vector &getActions(unsigned req_num); + struct WMTrigger getRequest(unsigned req_num, bool* found); + const std::vector &getActions(unsigned req_num, bool* found); void clientDump(); void reqDump(); + void dumpFloatingSurfaces(); private: std::vector req_list;