namespace wm
{
-struct FloatingSurface{
- unsigned surface_id;
- unsigned pid;
-};
-
AppList::AppList()
: req_list(0),
app2client(0),
{
}
-AppList::~AppList() {}
-
void AppList::addClient(const string &appid, const string &role)
{
shared_ptr<WMClient> client = std::make_shared<WMClient>(appid, role);
return this->current_req;
}
-WMError AppList::lookUpFloatingSurface(unsigned pid, unsigned *surface)
+WMError AppList::popFloatingSurface(unsigned pid, unsigned *surface)
{
WMError ret = WMError::NO_ENTRY;
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;