Merge branch 'devel/master' into tizen
[platform/core/uifw/dali-core.git] / dali / internal / update / common / property-owner.h
index f4329fa..769dc35 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_SCENE_GRAPH_PROPERTY_OWNER_H
 
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -35,6 +35,7 @@ namespace Internal
 namespace SceneGraph
 {
 class PropertyOwner;
+class ResetterManager;
 
 using OwnedPropertyContainer = OwnerContainer<PropertyBase*>;
 using OwnedPropertyIter      = OwnedPropertyContainer::Iterator;
@@ -212,16 +213,6 @@ public:
   const UniformMap& GetUniformMap() const;
 
   /**
-   * @copydoc UniformMap::AddUniformMapObserver
-   */
-  void AddUniformMapObserver(UniformMap::Observer& observer);
-
-  /**
-   * @copydoc UniformMap::RemoveUniformMapObserver
-   */
-  void RemoveUniformMapObserver(UniformMap::Observer& observer);
-
-  /**
    * Query whether playing an animation is possible or not.
    * @return true if playing an animation is possible.
    */
@@ -230,12 +221,31 @@ public:
     return true;
   }
 
+  /**
+   * @brief Install custom resetter messages to resetter manager.
+   * @pre ConnectToSceneGraph() Should be called before this API.
+   *
+   * @param[in] manager ResetterManager to add resetter.
+   */
+  virtual void AddInitializeResetter(ResetterManager& manager) const
+  {
+    // Do nothing
+  }
+
 protected:
   /**
    * Protected constructor.
    */
   PropertyOwner();
 
+  /**
+   * Method to inform derived classes when property maps have been modified.
+   */
+  virtual void OnMappingChanged()
+  {
+    // Default behaviour is to do nothing
+  }
+
 private:
   // Undefined
   PropertyOwner(const PropertyOwner&);