mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-20 00:03:56 +08:00
* pass AudibleAlert to setAlert * apply reviews * remove trailing underscore * add current_alert_type * common function get_alert * same freq as ui * small cleanup * setvolumne on change * static Alert::get * test_sounds * remove old test files * loop twice * assert loopsRemaining * assert stop * init to min_volumne * Revert "remove old test files" This reverts commit 12e8bfefae1ae7f8649d3eda1e4126ff8eb1fe17. * move to ui/soundd * move test to tests/test_sound.cc * remove old tests * cleanup * lower volume * Revert "remove old tests" This reverts commit e6bb12abfa3d5cd0aa8986d2b8da0b1edc7ea31b. * return Alert * cleanup * remove #include <optional> * cleanup .gitignore * revert to std::optional * Revert "revert to std::optional" This reverts commit a66291c51f3a846652837cc4a43d5d60dd81896b. * cleanup * remove volume check Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
26 lines
605 B
C++
26 lines
605 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
#include <fstream>
|
|
|
|
// no-op base hw class
|
|
class HardwareNone {
|
|
public:
|
|
static constexpr float MAX_VOLUME = 0.7;
|
|
static constexpr float MIN_VOLUME = 0.2;
|
|
|
|
static std::string get_os_version() { return ""; }
|
|
|
|
static void reboot() {}
|
|
static void poweroff() {}
|
|
static void set_brightness(int percent) {}
|
|
static void set_display_power(bool on) {}
|
|
|
|
static bool get_ssh_enabled() { return false; }
|
|
static void set_ssh_enabled(bool enabled) {}
|
|
|
|
static bool PC() { return false; }
|
|
static bool EON() { return false; }
|
|
static bool TICI() { return false; }
|
|
};
|