Files
MuditaOS/module-apps/application-settings/windows/advanced/CPUModeTestWindow.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

35 lines
1.0 KiB
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#pragma once
#include "AppWindow.hpp"
#include <TextFixedSize.hpp>
#include <widgets/TextSpinnerBox.hpp>
#include <SystemManager/CpuSentinel.hpp>
namespace gui
{
class CPUModeTestWindow : public AppWindow
{
private:
static inline auto name = "CPU Mode Tester";
VBox *body = nullptr;
TextFixedSize *currentFreqValue = nullptr;
TextSpinnerBox *currentFreqSpinner = nullptr;
TextSpinnerBox *permanentFreqSpinner = nullptr;
std::shared_ptr<sys::CpuSentinel> cpuModeTester;
void createCurrentFreqBox();
void createPermanentFreqSettingBox();
void createNewFreqBox();
public:
explicit CPUModeTestWindow(app::ApplicationCommon *app);
void onClose(CloseReason reason) override;
void onBeforeShow(ShowMode mode, SwitchData *data) override;
};
} /* namespace gui */