mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-20 11:59:12 -05:00
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.
33 lines
812 B
C++
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
|