~aleteoryx/muditaos

ref: 67a24efb29bbfec16b8d9a248fc28df8bbbf1b87 muditaos/module-apps/application-meditation/data/MeditationParams.hpp -rw-r--r-- 457 bytes
67a24efb — Lefucjusz [BH-2019] Fix crash after deleting WAV alarm sound 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <cstdint>
#include <functional>

template <typename T>
struct SettingsParam
{
    T initValue;
    std::function<void(T newValue)> onChangeCallback{nullptr};
};

struct MeditationParams
{
    SettingsParam<std::int32_t> meditationDuration;
    SettingsParam<std::chrono::minutes> intervalChime;
};