mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-27 00:48:31 -04:00
39 lines
1005 B
C++
39 lines
1005 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 "windows/AppWindow.hpp"
|
|
#include "Application.hpp"
|
|
#include <gui/widgets/GridLayout.hpp>
|
|
#include <gui/widgets/Item.hpp>
|
|
#include <Text.hpp>
|
|
#include <module-utils/date/include/date/date.h>
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <module-apps/application-calendar/data/dateCommon.hpp>
|
|
|
|
class MonthModel
|
|
{
|
|
public:
|
|
date::month month;
|
|
unsigned int lastDay;
|
|
// first week offset
|
|
uint32_t firstWeekDayNumb;
|
|
date::year year;
|
|
|
|
public:
|
|
MonthModel(date::year_month_day ymd);
|
|
MonthModel() = default;
|
|
virtual ~MonthModel() = default;
|
|
|
|
date::year getYear();
|
|
date::month getMonth();
|
|
uint32_t getLastDay();
|
|
uint32_t getFirstWeekOffset();
|
|
std::string getMonthYearText();
|
|
std::string getMonthText();
|
|
std::vector<std::string> split(const std::string &s, char delim);
|
|
};
|