Mercurial > minori
diff include/core/date.h @ 317:b1f4d1867ab1
services: VERY initial Kitsu support
it only supports user authentication for now, but it's definitely
a start.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 04:07:10 -0400 |
parents | 3ec7804abf17 |
children | d928ec7b6a0d |
line wrap: on
line diff
--- a/include/core/date.h Tue Jun 11 15:11:09 2024 -0400 +++ b/include/core/date.h Wed Jun 12 04:07:10 2024 -0400 @@ -4,9 +4,14 @@ #include "json/json_fwd.hpp" #include <optional> +#include <string> class QDate; +/* TODO: refactor constructors, as they aren't meant + * to be used in this way and may cause problems down + * the line */ + class Date { public: using Year = unsigned int; @@ -29,6 +34,7 @@ Date(); Date(Year y); Date(Year y, Month m, Day d); + Date(const std::string& str); Date(const QDate& date); Date(const nlohmann::json& json); bool IsValid() const;