1 #ifndef DALI_INTERNAL_SCENE_GRAPH_CONNECTION_CHANGE_PROPAGATOR_H
2 #define DALI_INTERNAL_SCENE_GRAPH_CONNECTION_CHANGE_PROPAGATOR_H
5 * Copyright (c) 2015 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.
20 #include <dali/public-api/common/dali-vector.h>
31 * This class maintains a list of observers that are informed when
32 * it's owner changes it's connections.
34 class ConnectionChangePropagator
41 * Inform the observer of the object that it's connections have changed
42 * @param[in] object The connection owner
44 virtual void ConnectionsChanged(PropertyOwner& object) = 0;
47 * Inform the observer of the object that a connected object has
48 * changed it's uniform map in some way.
50 virtual void ConnectedUniformMapChanged() = 0;
56 ConnectionChangePropagator();
61 ~ConnectionChangePropagator();
66 void Add(Observer& observer);
71 void Remove(Observer& observer);
74 * Inform the observers that the connections to the object have changed
75 * @param[in] object The connection owner
77 void ConnectionsChanged(PropertyOwner& object);
80 * Inform the observers that the uniform map of this or a connected object
83 void ConnectedUniformMapChanged();
86 typedef Dali::Vector<Observer*> Observers;
87 typedef Observers::Iterator ObserversIterator;
97 #endif // DALI_INTERNAL_SCENE_GRAPH_CONNECTION_CHANGE_PROPAGATOR_H