diff Framework/Layers/LayerSourceBase.h @ 267:89d02de83c03 am-2

added declaretion of messages handled/emitted
author am@osimis.io
date Wed, 22 Aug 2018 14:59:20 +0200
parents abc1c6231947
children 3897f9f28cfa
line wrap: on
line diff
--- a/Framework/Layers/LayerSourceBase.h	Tue Aug 21 18:14:22 2018 +0200
+++ b/Framework/Layers/LayerSourceBase.h	Wed Aug 22 14:59:20 2018 +0200
@@ -13,7 +13,7 @@
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Affero General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  **/
@@ -43,7 +43,13 @@
 
     LayerSourceBase(MessageBroker& broker)
       : ILayerSource(broker)
-    {}
+    {
+      DeclareEmittableMessage(MessageType_LayerSource_GeometryReady);
+      DeclareEmittableMessage(MessageType_LayerSource_GeometryError);
+      DeclareEmittableMessage(MessageType_LayerSource_ContentChanged);
+      DeclareEmittableMessage(MessageType_LayerSource_SliceChanged);
+      DeclareEmittableMessage(MessageType_LayerSource_LayerReady);
+    }
 
   };
 }