-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
// CLASS HEADER
#include <dali/public-api/object/property-notification.h>
// INTERNAL INCLUDES
-#include <dali/public-api/math/quaternion.h>
+#include <dali/internal/event/common/property-notification-impl.h>
#include <dali/public-api/math/degree.h>
+#include <dali/public-api/math/quaternion.h>
#include <dali/public-api/math/radian.h>
#include <dali/public-api/math/vector2.h>
#include <dali/public-api/object/handle.h>
-#include <dali/internal/event/common/property-notification-impl.h>
#include <stdio.h>
namespace Dali
{
-
-PropertyNotification::PropertyNotification()
-{
-}
+PropertyNotification::PropertyNotification() = default;
PropertyNotification::PropertyNotification(Internal::PropertyNotification* propertyNotification)
: BaseHandle(propertyNotification)
{
}
-PropertyNotification PropertyNotification::DownCast( BaseHandle handle )
+PropertyNotification PropertyNotification::DownCast(BaseHandle handle)
{
- return PropertyNotification( dynamic_cast<Dali::Internal::PropertyNotification*>(handle.GetObjectPtr()) );
+ return PropertyNotification(dynamic_cast<Dali::Internal::PropertyNotification*>(handle.GetObjectPtr()));
}
-PropertyNotification::~PropertyNotification()
-{
-}
+PropertyNotification::~PropertyNotification() = default;
+
+PropertyNotification::PropertyNotification(const PropertyNotification& copy) = default;
+
+PropertyNotification& PropertyNotification::operator=(const PropertyNotification& rhs) = default;
+
+PropertyNotification::PropertyNotification(PropertyNotification&& rhs) noexcept = default;
+
+PropertyNotification& PropertyNotification::operator=(PropertyNotification&& rhs) noexcept = default;
PropertyCondition PropertyNotification::GetCondition()
{
return GetImplementation(*this).GetTargetProperty();
}
-void PropertyNotification::SetNotifyMode( NotifyMode mode )
+void PropertyNotification::SetNotifyMode(NotifyMode mode)
{
- GetImplementation(*this).SetNotifyMode( mode );
+ GetImplementation(*this).SetNotifyMode(mode);
}
PropertyNotification::NotifyMode PropertyNotification::GetNotifyMode()
return GetImplementation(*this).GetNotifyResult();
}
-PropertyNotifySignalV2& PropertyNotification::NotifySignal()
+PropertyNotifySignalType& PropertyNotification::NotifySignal()
{
return GetImplementation(*this).NotifySignal();
}