Files
MuditaOS/module-apps/application-calendar/windows/AllEventsWindow.hpp
Tomas Rogala 80768bf4a5 [EGD-4708] Add backend of multiday events handling
-sql req for multiday events handling
-Add UT
-Add markEventsInDays method
-Add new query for day filter
2021-01-26 06:34:12 +01:00

35 lines
1.2 KiB
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-calendar/models/AllEventsModel.hpp"
#include "application-calendar/widgets/CalendarListView.hpp"
#include "application-calendar/widgets/CalendarStyle.hpp"
#include "windows/AppWindow.hpp"
#include "Application.hpp"
#include <ListView.hpp>
namespace gui
{
class AllEventsWindow : public gui::AppWindow
{
gui::Image *leftArrowImage = nullptr;
gui::Image *newDayEventImage = nullptr;
TimePoint dateFilter = TimePointNow();
gui::ListView *allEventsList = nullptr;
std::shared_ptr<AllEventsModel> allEventsModel = nullptr;
public:
AllEventsWindow(app::Application *app, std::string name);
void onBeforeShow(gui::ShowMode mode, gui::SwitchData *data) override;
bool onDatabaseMessage(sys::Message *msgl) override;
bool onInput(const gui::InputEvent &inputEvent) override;
void rebuild() override;
void buildInterface() override;
auto handleSwitchData(SwitchData *data) -> bool override;
};
} // namespace gui