pull out request from applist
[apps/agl-service-windowmanager.git] / src / applist.hpp
index f91e7c8..e0d67fc 100644 (file)
 #include <memory>
 //#include <experimental/optional>
 #include "windowmanager-client.hpp"
+#include "request.hpp"
 
 namespace wm {
 
 /* using std::experimental::nullopt;
 using std::experimental::optional; */
 
-typedef enum Task{
-    TASK_ALLOCATE,
-    TASK_RELEASE
-}ResourceTask;
-
-struct WMTrigger {
-    std::string appid;
-    std::string role;
-    std::string area;
-    Task task;
-};
-
-struct WMAction
-{
-    std::string appid;
-    std::string role;
-    std::string area;
-    bool end_draw_finished;
-};
-
-struct WMRequest
-{
-    WMRequest();
-    explicit WMRequest(std::string appid, std::string role,
-        std::string area, ResourceTask task);
-    virtual ~WMRequest();
-    WMRequest(const WMRequest &obj);
-
-    unsigned seq_num;
-    struct WMTrigger trigger;
-    std::vector<struct WMAction> sync_draw_req;
-};
-
 class  AppList {
 public:
     AppList();