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 Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/public-api/common/set-wrapper.h>
23 #include <dali/internal/common/message.h>
24 #include <dali/internal/event/common/property-notifier.h>
32 class PropertyNotification;
35 * PropertyNotificationManager issues notifications to applications
36 * a condition of a property being met.
37 * It also monitors the lifetime of PropertyNotification objects and will
38 * only emit signals for PropertyNotification objects which are still valid.
40 class PropertyNotificationManager : public PropertyNotifier
45 * Create an PropertyNotificationManager.
46 * @return A newly allocated object.
48 static PropertyNotificationManager* New();
53 virtual ~PropertyNotificationManager();
56 * Called when a PropertyNotification is constructed.
58 void PropertyNotificationCreated( PropertyNotification& propertyNotification );
61 * Called when a PropertyNotification is destroyed.
63 void PropertyNotificationDestroyed( PropertyNotification& propertyNotification );
65 private: // private virtual overrides
68 * @copydoc PropertyNotifier::NotifyProperty
70 virtual void NotifyProperty( SceneGraph::PropertyNotification* propertyNotification, bool validity );
75 * Default constructor.
77 PropertyNotificationManager();
80 PropertyNotificationManager(const PropertyNotificationManager&);
83 PropertyNotificationManager& operator=(const PropertyNotificationManager& rhs);
87 std::set< PropertyNotification* > mPropertyNotifications; ///< All existing PropertyNotifications (not referenced)
91 } // namespace Internal
95 #endif // __DALI_INTERNAL_PROPERTY_NOTIFICATION_MANAGER_H__