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>
36 class TransitionLifecycleController;
40 std::unique_ptr<TransitionLifecycleController> instance = nullptr;
41 std::once_flag onceFlag;
44 class TransitionLifecycleController : public ConnectionTracker
47 static TransitionLifecycleController& GetInstance()
49 std::call_once(onceFlag, []() {
50 instance.reset(new TransitionLifecycleController);
52 return *(instance.get());
55 void AddTransitions(Dali::Toolkit::TransitionSet transitions);
59 void RemoveTransitions(Dali::Toolkit::TransitionSet &transitions);
62 * Construct a new TransitionLifecycleController.
64 TransitionLifecycleController() = default;
67 TransitionLifecycleController(const TransitionLifecycleController&) = delete;
70 TransitionLifecycleController& operator=(const TransitionLifecycleController& rhs) = delete;
73 std::vector<Dali::Toolkit::TransitionSet> mTransitionList;
76 } // namespace Internal
78 } // namespace Toolkit
82 #endif // DALI_TOOLKIT_INTERNAL_TRANSITION_PLAYLIST_H