Add remote display support
[apps/agl-service-windowmanager.git] / src / wm_layer.hpp
index 97cf8a8..1521309 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
+ * Copyright (c) 2019 Konsulko Group
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -65,6 +66,8 @@ class WMLayer
     WMError setLayerState(const LayerState& l);
     bool hasLayerID(unsigned id);
     bool hasRole(const std::string& role);
+    void setRemote(const bool newRemote) { remote = newRemote; }
+    bool isRemote(void) { return remote; }
 
     // Manipulation
     void addLayerToState(unsigned layer);
@@ -90,6 +93,7 @@ class WMLayer
     std::vector<unsigned>    id_list;
     unsigned id_begin;
     unsigned id_end;
+    bool remote = false;
 };
 
 } // namespace wm