Merge branch 'sandbox/knimitz/format_code' into sandbox/knimitz/lock
[apps/agl-service-windowmanager.git] / src / request.cpp
index 415a80d..069f8ff 100644 (file)
  * limitations under the License.
  */
 
-#include "applist.hpp"
+#include "request.hpp"
 
-namespace wm {
+namespace wm
+{
 
 using std::string;
 
-WMRequest::WMRequest(string appid, string role, string area, Task task){
+WMRequest::WMRequest() {}
 
+WMRequest::WMRequest(string appid, string role, string area, Task task)
+    : req_num(0),
+      trigger{appid, role, area, task},
+      sync_draw_req(0)
+{
 }
 
-WMRequest::~WMRequest(){
-
+WMRequest::~WMRequest()
+{
 }
 
-WMRequest::WMRequest(const WMRequest &obj){
-
+WMRequest::WMRequest(const WMRequest &obj)
+{
+    this->req_num = obj.req_num;
+    this->trigger = obj.trigger;
+    this->sync_draw_req = obj.sync_draw_req;
 }
 
-
-}
\ No newline at end of file
+} // namespace wm
\ No newline at end of file