Logo

Cake Planner

Backend

event_model.hpp

File Header Information

FieldValue
SPDX CommentUnified Event Model
SPDX TypeSOURCE
ContributorZHENG Robert
License IDMIT
Fileevent_model.hpp
DescriptionUnified Event Model
Version0.15.0
Date2026-01-24
AuthorZHENG Robert (robert@hase-zheng.net)
CopyrightCopyright (c) 2026 ZHENG Robert
LicenseMIT

Table of Contents

API Documentation

struct EventRating

EventRating struct.


struct Event

Event struct.


bool create(const QString& userId)

Function implementation.


static std::vector getRange(const QString &start, const QString &end, const QString &userId)

Function implementation.


static std::optional getById(const QString& eventId, const QString& currentUserId)

Function implementation.


static bool deleteEvent(const QString& eventId, const QString& currentUserId)

Function implementation.


static bool rateEvent(const QString& eventId, const QString& userId, int stars, const QString& comment)

Function implementation.


static std::vector getRanked(const QString& userId, int limit = 50)

Function implementation.


std::string toIcsString() const

Function implementation.