Files
MuditaOS/module-apps/application-desktop/windows/PinLockBaseWindow.hpp
Jakub Pyszczak d818fc7044 [EGD-5613] Fix pin lock window
Minor fixes in pin lock window caused by gcc10 asan leak detection.
2021-02-09 11:33:41 +01:00

33 lines
1022 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "LockWindow.hpp"
namespace gui
{
class PinLockBaseWindow : public LockWindow
{
public:
PinLockBaseWindow(app::Application *app, std::string name) : LockWindow(app, name)
{}
top_bar::Configuration configureTopBar(top_bar::Configuration appConfiguration) override;
void buildImages(const std::string &lockImg, const std::string &infoImg);
[[nodiscard]] auto getToken(Token token) const -> std::string;
void restore() noexcept override;
void setImagesVisible(bool lockImg, bool infoImg);
void setTitleBar(bool isVisible, bool isIceActive);
gui::HBox *iceBox = nullptr;
gui::Image *infoImage = nullptr;
gui::Image *lockImage = nullptr;
private:
void buildBottomBar() override;
void buildTitleBar() override;
};
} // namespace gui