Files
MuditaOS/module-apps/apps-common/widgets/ActiveIconFactory.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

27 lines
994 B
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 "ImageBox.hpp"
#include <ApplicationCommon.hpp>
#include <module-db/Interface/ContactRecord.hpp>
namespace gui
{
class ActiveIconFactory
{
app::ApplicationCommon *app;
public:
explicit ActiveIconFactory(app::ApplicationCommon *app);
[[nodiscard]] auto makeCustomIcon(const UTF8 &image,
std::function<bool(Item &)> onActivated,
std::string navBarActivatedName) -> ImageBox *;
[[nodiscard]] auto makeSMSIcon(const utils::PhoneNumber::View &number) -> ImageBox *;
[[nodiscard]] auto makeCallIcon(const utils::PhoneNumber::View &number) -> ImageBox *;
[[nodiscard]] auto makeAddContactIcon(const std::shared_ptr<ContactRecord> &contact) -> ImageBox *;
};
} // namespace gui