Files
MuditaOS/module-apps/locks/windows/PinLockBaseWindow.hpp
Przemyslaw Brudny 182f694ac2 [EGD-6637] Cleanup locks structure
Renaming existing locks namespace and created proper directory
structure.
2021-04-27 16:19:02 +02:00

34 lines
1.0 KiB
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 Image;
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