1 #ifndef __DALI_INTERNAL_PROPERTY_NOTIFICATION_MANAGER_H__
2 #define __DALI_INTERNAL_PROPERTY_NOTIFICATION_MANAGER_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
24 #include <dali/internal/common/message.h>
25 #include <dali/internal/event/common/property-notifier.h>
33 class PropertyNotification;
36 * PropertyNotificationManager issues notifications to applications
37 * a condition of a property being met.
38 * It also monitors the lifetime of PropertyNotification objects and will
39 * only emit signals for PropertyNotification objects which are still valid.
41 class PropertyNotificationManager : public PropertyNotifier
46 * Create an PropertyNotificationManager.
47 * @return A newly allocated object.
49 static PropertyNotificationManager* New();
54 virtual ~PropertyNotificationManager();
57 * Called when a PropertyNotification is constructed.
59 void PropertyNotificationCreated( PropertyNotification& propertyNotification );
62 * Called when a PropertyNotification is destroyed.
64 void PropertyNotificationDestroyed( PropertyNotification& propertyNotification );
66 private: // private virtual overrides
69 * @copydoc PropertyNotifier::NotifyProperty
71 virtual void NotifyProperty( SceneGraph::PropertyNotification* propertyNotification, bool validity );
76 * Default constructor.
78 PropertyNotificationManager();
81 PropertyNotificationManager(const PropertyNotificationManager&);
84 PropertyNotificationManager& operator=(const PropertyNotificationManager& rhs);
88 std::set< PropertyNotification* > mPropertyNotifications; ///< All existing PropertyNotifications (not referenced)
92 } // namespace Internal
96 #endif // __DALI_INTERNAL_PROPERTY_NOTIFICATION_MANAGER_H__