Update copyright year to 2015 for public api: core
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-notification.cpp
1 /*
2  * Copyright (c) 2015 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
19 #include <dali/public-api/object/property-notification.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/public-api/math/quaternion.h>
23 #include <dali/public-api/math/degree.h>
24 #include <dali/public-api/math/radian.h>
25 #include <dali/public-api/math/vector2.h>
26 #include <dali/public-api/object/handle.h>
27 #include <dali/internal/event/common/property-notification-impl.h>
28 #include <stdio.h>
29
30 namespace Dali
31 {
32
33 PropertyNotification::PropertyNotification()
34 {
35 }
36
37 PropertyNotification::PropertyNotification(Internal::PropertyNotification* propertyNotification)
38 : BaseHandle(propertyNotification)
39 {
40 }
41
42 PropertyNotification PropertyNotification::DownCast( BaseHandle handle )
43 {
44   return PropertyNotification( dynamic_cast<Dali::Internal::PropertyNotification*>(handle.GetObjectPtr()) );
45 }
46
47 PropertyNotification::~PropertyNotification()
48 {
49 }
50
51 PropertyNotification::PropertyNotification(const PropertyNotification& copy)
52 : BaseHandle(copy)
53 {
54 }
55
56 PropertyNotification& PropertyNotification::operator=(const PropertyNotification& rhs)
57 {
58   BaseHandle::operator=(rhs);
59   return *this;
60 }
61
62 PropertyCondition PropertyNotification::GetCondition()
63 {
64   return GetImplementation(*this).GetCondition();
65 }
66
67 const PropertyCondition& PropertyNotification::GetCondition() const
68 {
69   return GetImplementation(*this).GetCondition();
70 }
71
72 Dali::Handle PropertyNotification::GetTarget() const
73 {
74   return GetImplementation(*this).GetTarget();
75 }
76
77 Property::Index PropertyNotification::GetTargetProperty() const
78 {
79   return GetImplementation(*this).GetTargetProperty();
80 }
81
82 void PropertyNotification::SetNotifyMode( NotifyMode mode )
83 {
84   GetImplementation(*this).SetNotifyMode( mode );
85 }
86
87 PropertyNotification::NotifyMode PropertyNotification::GetNotifyMode()
88 {
89   return GetImplementation(*this).GetNotifyMode();
90 }
91
92 bool PropertyNotification::GetNotifyResult() const
93 {
94   return GetImplementation(*this).GetNotifyResult();
95 }
96
97 PropertyNotifySignalType& PropertyNotification::NotifySignal()
98 {
99   return GetImplementation(*this).NotifySignal();
100 }
101
102 } // namespace Dali