-bool AppList::setAction(unsigned request_seq, const string &appid, const string &role, const string &area){
+struct WMTrigger AppList::getRequest(unsigned req_num){
+ for(auto& x : req_list){
+ if (req_num == x.seq_num)
+ {
+ return x.trigger;
+ }
+ }
+}
+
+const vector<struct WMAction>& AppList::getActions(unsigned req_num){
+ for (auto &x : req_list)
+ {
+ if (req_num == x.seq_num)
+ {
+ return x.sync_draw_req;
+ }
+ }
+}
+
+bool AppList::setAction(unsigned req_num, const struct WMAction &action){
+ bool result = false;
+ for (auto &x : req_list)
+ {
+ if (req_num != x.seq_num)
+ {
+ continue;
+ }
+ x.sync_draw_req.push_back(action);
+ result = true;
+ break;
+ }
+
+ return result;
+}
+
+bool AppList::setAction(unsigned req_num, const string &appid, const string &role, const string &area, bool visible){