/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
unsigned int ConstraintBase::mTotalInstanceCount = 0;
#endif
-ConstraintBase::ConstraintBase( PropertyOwnerContainer& ownerSet )
-: mRemoveAction( Dali::Constraint::DEFAULT_REMOVE_ACTION ),
+ConstraintBase::ConstraintBase( PropertyOwnerContainer& ownerSet, RemoveAction removeAction )
+: mRemoveAction( removeAction ),
mFirstApply( true ),
mDisconnected( true ),
- mObservedOwners( ownerSet )
+ mObservedOwners( ownerSet ),
+ mLifecycleObserver( nullptr )
{
#ifdef DEBUG_ENABLED
++mCurrentInstanceCount;
StopObservation();
}
+ if( mLifecycleObserver != nullptr )
+ {
+ mLifecycleObserver->ObjectDestroyed();
+ }
+
#ifdef DEBUG_ENABLED
--mCurrentInstanceCount;
#endif
}
-void ConstraintBase::ResetDefaultProperties( BufferIndex updateBufferIndex )
-{
- DALI_ASSERT_DEBUG( false );
-}
-
unsigned int ConstraintBase::GetCurrentInstanceCount()
{
#ifdef DEBUG_ENABLED