1 #ifndef DALI_INTERNAL_ADAPTOR_SYSTEM_WINDOWS_TIMER_H
2 #define DALI_INTERNAL_ADAPTOR_SYSTEM_WINDOWS_TIMER_H
5 * Copyright (c) 2023 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.
22 #include <dali/internal/system/common/timer-impl.h>
32 typedef IntrusivePtr<TimerWin> TimerWinPtr;
35 * @brief TimerWin class provides an Timer Windows implementation.
37 class TimerWin : public Timer
40 static TimerWinPtr New(uint32_t milliSec);
44 * @param[in] milliSec Interval in milliseconds.
46 TimerWin(uint32_t milliSec);
55 * @copydoc Dali::Timer::Start()
57 void Start() override;
60 * @copydoc Dali::Timer::Stop()
65 * @copydoc Dali::Timer::Pause()
67 void Pause() override;
70 * @copydoc Dali::Timer::Resume()
72 void Resume() override;
75 * @copydoc Dali::Timer::SetInterval()
77 void SetInterval(uint32_t interval, bool restart) override;
80 * @copydoc Dali::Timer::GetInterval()
82 uint32_t GetInterval() const override;
85 * @copydoc Dali::Timer::IsRunning()
87 bool IsRunning() const override;
94 private: // Implementation
96 TimerWin(const TimerWin&) = delete;
97 TimerWin& operator=(const TimerWin&) = delete;
100 * Resets any stored timer data.
102 void ResetTimerData();
105 // To hide away implementation details
110 } // namespace Adaptor
112 } // namespace Internal
116 #endif // DALI_INTERNAL_ADAPTOR_SYSTEM_WINDOWS_TIMER_H