// 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 "CalendarListItem.hpp" #include namespace gui { class VBox; class CalendarTimeItem : public CalendarListItem { public: CalendarTimeItem(const std::string &description, TimeWidget::Type type, const std::function &bottomBarTemporaryMode, const std::function &bottomBarRestoreFromTemporaryMode, TimePoint dateFrom, TimePoint dateTill); void setConnectionToSecondItem(CalendarTimeItem *item); void setConnectionToDateItem(CalendarDateItem *item); auto getFromTillDate() const -> std::shared_ptr; private: TimeWidget *timeWidget = nullptr; VBox *vBox = nullptr; }; } /* namespace gui */