/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * 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.
#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)
-: BaseHandle(copy)
-{
-}
+PropertyNotification::PropertyNotification(const PropertyNotification& copy) = default;
-PropertyNotification& PropertyNotification::operator=(const PropertyNotification& rhs)
-{
- BaseHandle::operator=(rhs);
- return *this;
-}
+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();
}