1 #ifndef DALI_TOOLKIT_INTERNAL_TRANSITION_PLAYLIST_H
2 #define DALI_TOOLKIT_INTERNAL_TRANSITION_PLAYLIST_H
5 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
28 #include <dali-toolkit/public-api/transition/transition-set.h>
37 class TransitionLifecycleController : public ConnectionTracker
40 static TransitionLifecycleController& GetInstance();
42 void AddTransitions(Dali::Toolkit::TransitionSet transitions);
46 void RemoveTransitions(Dali::Toolkit::TransitionSet &transitions);
49 * Construct a new TransitionLifecycleController.
51 TransitionLifecycleController() = default;
54 TransitionLifecycleController(const TransitionLifecycleController&) = delete;
57 TransitionLifecycleController& operator=(const TransitionLifecycleController& rhs) = delete;
60 std::vector<Dali::Toolkit::TransitionSet> mTransitionList;
61 static std::unique_ptr<TransitionLifecycleController> mInstance;
62 static std::once_flag mOnceFlag;
65 } // namespace Internal
67 } // namespace Toolkit
71 #endif // DALI_TOOLKIT_INTERNAL_TRANSITION_PLAYLIST_H