Bind surface properties to adding floating surface
[apps/agl-service-windowmanager.git] / src / applist.cpp
index 64f5f64..5d7dce4 100644 (file)
@@ -25,11 +25,6 @@ using std::vector;
 namespace wm
 {
 
-struct FloatingSurface{
-    unsigned surface_id;
-    unsigned pid;
-};
-
 AppList::AppList()
     : req_list(0),
       app2client(0),
@@ -37,8 +32,6 @@ AppList::AppList()
 {
 }
 
-AppList::~AppList() {}
-
 void AppList::addClient(const string &appid, const string &role)
 {
     shared_ptr<WMClient> client = std::make_shared<WMClient>(appid, role);
@@ -98,7 +91,7 @@ unsigned AppList::currentRequestNumber() const
     return this->current_req;
 }
 
-WMError AppList::lookUpFloatingSurface(unsigned pid, unsigned *surface)
+WMError AppList::popFloatingSurface(unsigned pid, unsigned *surface)
 {
     WMError ret = WMError::NO_ENTRY;
 
@@ -115,11 +108,22 @@ WMError AppList::lookUpFloatingSurface(unsigned pid, unsigned *surface)
     return ret;
 }
 
-WMError AppList::lookUpFloatingSurface(const std::string &appid, unsigned *surface)
+WMError AppList::popFloatingSurface(const std::string &appid, unsigned *surface)
 {
+    HMI_ERROR("wm", "This function is not implemented");
     return WMError::SUCCESS;
 }
 
+void AppList::addFloatingClient(const std::string &appid, unsigned layer, const std::string &role)
+{
+}
+
+void AppList::addFloatingSurface(unsigned surface, unsigned pid)
+{
+    struct FloatingSurface fsurface{surface, pid};
+    this->floating_surfaces.push_back(fsurface);
+}
+
 WMError AppList::appendRole(const std::string &id, const std::string &role, unsigned surface)
 {
     WMError wm_err = WMError::NO_ENTRY;