mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-27 00:48:31 -04:00
26 lines
924 B
C++
26 lines
924 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
#include "Application.hpp"
|
|
#include "application-calendar/widgets/CalendarStyle.hpp"
|
|
#include "InternalModel.hpp"
|
|
#include <ListItem.hpp>
|
|
#include <ListItemProvider.hpp>
|
|
#include <module-db/Interface/EventsRecord.hpp>
|
|
|
|
class DayEventsInternalModel : public app::InternalModel<gui::ListItem *>, public gui::ListItemProvider
|
|
{
|
|
app::Application *application = nullptr;
|
|
|
|
public:
|
|
DayEventsInternalModel(app::Application *app);
|
|
|
|
void loadData(std::unique_ptr<std::vector<EventsRecord>> records);
|
|
|
|
[[nodiscard]] unsigned int getMinimalItemHeight() const override;
|
|
[[nodiscard]] unsigned int requestRecordsCount() override;
|
|
gui::ListItem *getItem(gui::Order order) override;
|
|
void requestRecords(const uint32_t offset, const uint32_t limit) override;
|
|
};
|