diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-05-02 19:12:26 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-05-02 19:12:26 +1000 |
| commit | 1573a8c4cde1cd9528b422b2dcc598e37ffe94a7 (patch) | |
| tree | d162822b8fd7054f81bace0c7a65ab4d5e6f93ef /src/ui/include/ui_events.hpp | |
| parent | a231fd1c8afedbeb14b0bc77d76bad61db986059 (diff) | |
| download | tangara-fw-1573a8c4cde1cd9528b422b2dcc598e37ffe94a7.tar.gz | |
WIP merge cyclically dependent components into one big component
Diffstat (limited to 'src/ui/include/ui_events.hpp')
| -rw-r--r-- | src/ui/include/ui_events.hpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/ui/include/ui_events.hpp b/src/ui/include/ui_events.hpp deleted file mode 100644 index 3d794edc..00000000 --- a/src/ui/include/ui_events.hpp +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 jacqueline <me@jacqueline.id.au> - * - * SPDX-License-Identifier: GPL-3.0-only - */ - -#pragma once - -#include <memory> -#include "database.hpp" -#include "gpios.hpp" -#include "index.hpp" -#include "nvs.hpp" -#include "screen.hpp" -#include "tinyfsm.hpp" - -namespace ui { - -// TODO(jacqueline): is this needed? is this good? -/* - * Event emitted by the main task on heartbeat. - */ -struct OnStorageChange : tinyfsm::Event { - bool is_mounted; -}; - -struct OnSystemError : tinyfsm::Event {}; - -struct OnLuaError : tinyfsm::Event { - std::string message; -}; - -struct DumpLuaStack : tinyfsm::Event {}; - -namespace internal { - -struct InitDisplay : tinyfsm::Event { - drivers::IGpios& gpios; - drivers::NvsStorage& nvs; -}; - -struct ReindexDatabase : tinyfsm::Event {}; - -struct BackPressed : tinyfsm::Event {}; -struct ShowNowPlaying : tinyfsm::Event {}; - -struct ModalConfirmPressed : tinyfsm::Event {}; -struct ModalCancelPressed : tinyfsm::Event {}; - -struct DismissAlerts : tinyfsm::Event {}; - -} // namespace internal - -} // namespace ui |
