- unsigned currentSequenceNumber();
- unsigned getSequenceNumber(const std::string &appid);
- unsigned addAllocateRequest(WMRequest req);
- /* TODO: consider, which is better WMClient or std::string appid?
- if appid is key to manage resources, it is better to select std::string
- otherwise WMClient is better, IMO */
- bool requestFinished();
- bool setAction(unsigned request_seq, const std::string &appid, const std::string &role, const std::string &area);
- bool setEndDrawFinished(unsigned request_seq, const std::string &appid, const std::string &role);
- bool endDrawFullfilled(unsigned request_seq);
- void removeRequest(unsigned request_seq);
- void next();
- bool haveRequest();
+ unsigned currentRequestNumber() const;
+ unsigned getRequestNumber(const std::string &appid) const;
+ 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, 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);
+ void next();
+ bool haveRequest() const;