Dali 3D User Interface Engine
property-notification-manager.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 // CLASS HEADER
20 
21 // INTERNAL INCLUDES
24 
25 namespace Dali
26 {
27 
28 namespace Internal
29 {
30 
32 {
33  return new PropertyNotificationManager;
34 }
35 
37 {
38 }
39 
41 {
42  mPropertyNotifications.PushBack( &propertyNotification );
43 }
44 
46 {
48  DALI_ASSERT_ALWAYS( iter != mPropertyNotifications.End() && "PropertyNotification not found" );
49 
51 }
52 
54 {
57 
58  // walk the collection of PropertyNotifications
59  for( ; iter != endIter; ++iter )
60  {
61  // found one with the matching SceneGraph::PropertyNotification?
62  if( (*iter)->CompareSceneObject( propertyNotification ) )
63  {
64  // allow application to access the value that triggered this emit incase of NotifyOnChanged mode
65  (*iter)->SetNotifyResult(validity);
66  // yes..emit signal
67  (*iter)->EmitSignalNotify();
68  break;
69  }
70  }
71 }
72 
74 {
75 }
76 
77 } // namespace Internal
78 
79 } // namespace Dali
80 
Dali Docs Home
Read more about Dali