Files
MuditaOS/module-apps/application-calllog/data/CallLogSwitchData.hpp
Michał Kamoń 48f7cf171d [EGD-6755] Add updated notification icons
This PR adds/updates notification icons to latest version provided
by designs.

Also this PR provides new implementation for CallLogDetailsWindow.
The window was using one of the icons updated. To avoid making
temporary corrections on the icon's hardcoded (x,y,w,h) properties,
the entire window was redesign to use up-to-date ModuitaOS GUI
features.
2021-05-19 08:10:49 +02:00

33 lines
812 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 <CalllogRecord.hpp>
#include <SwitchData.hpp>
namespace calllog
{
inline constexpr auto CALLLOG_SWITCH_DATA_STR = "CallLogSwitchData";
class CallLogSwitchData : public gui::SwitchData
{
protected:
CalllogRecord record;
public:
CallLogSwitchData() = delete;
explicit CallLogSwitchData(CalllogRecord record)
: SwitchData(CALLLOG_SWITCH_DATA_STR), record{std::move(record)}
{}
virtual ~CallLogSwitchData() = default;
[[nodiscard]] auto getRecord() const noexcept -> const CalllogRecord &
{
return record;
};
};
} // namespace calllog