Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-notification.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 // CLASS HEADER
18 #include <dali/public-api/object/property-notification.h>
19
20 // INTERNAL INCLUDES
21 #include <dali/public-api/math/quaternion.h>
22 #include <dali/public-api/math/degree.h>
23 #include <dali/public-api/math/radian.h>
24 #include <dali/public-api/math/vector2.h>
25 #include <dali/public-api/object/handle.h>
26 #include <dali/internal/event/common/property-notification-impl.h>
27 #include <stdio.h>
28
29 namespace Dali
30 {
31
32 PropertyNotification::PropertyNotification()
33 {
34 }
35
36 PropertyNotification::PropertyNotification(Internal::PropertyNotification* propertyNotification)
37 : BaseHandle(propertyNotification)
38 {
39 }
40
41 PropertyNotification PropertyNotification::DownCast( BaseHandle handle )
42 {
43   return PropertyNotification( dynamic_cast<Dali::Internal::PropertyNotification*>(handle.GetObjectPtr()) );
44 }
45
46 PropertyNotification::~PropertyNotification()
47 {
48 }
49
50 PropertyCondition PropertyNotification::GetCondition()
51 {
52   return GetImplementation(*this).GetCondition();
53 }
54
55 const PropertyCondition& PropertyNotification::GetCondition() const
56 {
57   return GetImplementation(*this).GetCondition();
58 }
59
60 Dali::Handle PropertyNotification::GetTarget() const
61 {
62   return GetImplementation(*this).GetTarget();
63 }
64
65 Property::Index PropertyNotification::GetTargetProperty() const
66 {
67   return GetImplementation(*this).GetTargetProperty();
68 }
69
70 void PropertyNotification::SetNotifyMode( NotifyMode mode )
71 {
72   GetImplementation(*this).SetNotifyMode( mode );
73 }
74
75 PropertyNotification::NotifyMode PropertyNotification::GetNotifyMode()
76 {
77   return GetImplementation(*this).GetNotifyMode();
78 }
79
80 bool PropertyNotification::GetNotifyResult() const
81 {
82   return GetImplementation(*this).GetNotifyResult();
83 }
84
85 PropertyNotifySignalV2& PropertyNotification::NotifySignal()
86 {
87   return GetImplementation(*this).NotifySignal();
88 }
89
90 } // namespace Dali