aboutsummaryrefslogtreecommitdiffstats
path: root/src/applist.hpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-04 17:54:11 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-04 17:54:11 +0900
commit1e55798ce66d927f649284441202bc6ae1df328b (patch)
tree6038f5733eed19478e92d00a5b4b18f6d8174dff /src/applist.hpp
parente7326524e43bd9dfb37b5c75d85779476ee7cfe4 (diff)
Adopt error code and message into Window Manager
Change-Id: I942cc33350436bcdb477e7a5cda4a36e502044da Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/applist.hpp')
-rw-r--r--src/applist.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/applist.hpp b/src/applist.hpp
index 241f153..97f772b 100644
--- a/src/applist.hpp
+++ b/src/applist.hpp
@@ -20,9 +20,9 @@
#include <string>
#include <map>
#include <memory>
-//#include <experimental/optional>
#include "wm-client.hpp"
#include "request.hpp"
+#include "wm-error.h"
namespace wm
{
@@ -41,7 +41,7 @@ class AppList
void addClient(const std::string &appid, const std::string &role);
void addClient(const std::string &appid, unsigned layer, unsigned surface, const std::string &role);
void removeClient(const std::string &appid);
- bool contains(const std::string &appid);
+ WMError contains(const std::string &appid);
int countClient();
std::shared_ptr<WMClient> lookUpClient(const std::string &appid);
void removeSurface(unsigned surface);
@@ -54,8 +54,8 @@ class AppList
if appid is key to manage resources, it is better to select std::string
otherwise WMClient is better, IMO */
bool requestFinished();
- bool setAction(unsigned req_num, const struct WMAction &action);
- bool 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 struct WMAction &action);
+ WMError setAction(unsigned req_num, const std::string &appid, const std::string &role, const std::string &area, bool visible = true);
bool setEndDrawFinished(unsigned req_num, const std::string &appid, const std::string &role);
bool endDrawFullfilled(unsigned req_num);
void removeRequest(unsigned req_num);