mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 02:19:00 -05:00
Fix of the issue that Meditation and Power Nap apps would crash during active sessions due to bad optional access introduced in previous time displaying fix.
19 lines
491 B
C++
19 lines
491 B
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <time/time_constants.hpp>
|
|
#include <cstdint>
|
|
|
|
namespace gui
|
|
{
|
|
class AbstractProgressTime
|
|
{
|
|
public:
|
|
virtual ~AbstractProgressTime() = default;
|
|
virtual void updateTime(std::uint32_t currentSeconds) = 0;
|
|
virtual std::chrono::seconds getRefreshTime() = 0;
|
|
};
|
|
} // namespace gui
|