mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-18 20:14:12 -04:00
- add ChangeDateAndTimeWindow, - extract EventTimeItem to common widgets folder and rename it to TimeWidget, - extract EventDateItem to common widgets folder and rename it to DateWidget, - replace timeWidget with common TimeWidget in NightshiftWindow, - refactor time setting in DesktopMainWindow and TopBar, - Remove dead code from EventManager (GetNextAlarmTimestamp and HandleAlarmTrigger)
30 lines
1007 B
C++
30 lines
1007 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 "application-calendar/widgets/CalendarStyle.hpp"
|
|
#include "application-calendar/widgets/CalendarListItem.hpp"
|
|
#include "module-apps/application-calendar/ApplicationCalendar.hpp"
|
|
#include "Application.hpp"
|
|
#include "InternalModel.hpp"
|
|
#include <ListItemProvider.hpp>
|
|
|
|
class EventDetailModel : public app::InternalModel<gui::CalendarListItem *>, public gui::ListItemProvider
|
|
{
|
|
app::Application *application = nullptr;
|
|
|
|
public:
|
|
EventDetailModel(app::Application *app);
|
|
|
|
void loadData(std::shared_ptr<EventsRecord> record);
|
|
|
|
[[nodiscard]] auto requestRecordsCount() -> unsigned int override;
|
|
[[nodiscard]] unsigned int getMinimalItemHeight() const override;
|
|
gui::ListItem *getItem(gui::Order order) override;
|
|
void requestRecords(const uint32_t offset, const uint32_t limit) override;
|
|
|
|
private:
|
|
void createData();
|
|
};
|