|
SMACC2
|
Represents a Google Calendar event. More...
#include <types.hpp>

Public Member Functions | |
| bool | isActiveNow () const |
| Check if the event is currently active (ongoing) | |
| bool | hasStartedWithinMinutes (int minutes) const |
| Check if the event has started within the last N minutes. | |
| bool | willStartWithinMinutes (int minutes) const |
| Check if the event will start within the next N minutes. | |
| bool | hasEnded () const |
| Check if the event has ended. | |
| int | minutesUntilStart () const |
| Get minutes until event starts (negative if already started) | |
Public Attributes | |
| std::string | id |
| std::string | title |
| std::string | calendar_name |
| std::string | location |
| std::string | description |
| std::chrono::system_clock::time_point | start_time |
| std::chrono::system_clock::time_point | end_time |
| bool | is_all_day = false |
|
inline |
Check if the event has ended.
Definition at line 81 of file types.hpp.
References end_time.
|
inline |
Check if the event has started within the last N minutes.
Definition at line 62 of file types.hpp.
References end_time, and start_time.
|
inline |
Check if the event is currently active (ongoing)
Definition at line 53 of file types.hpp.
References end_time, and start_time.
|
inline |
Get minutes until event starts (negative if already started)
Definition at line 90 of file types.hpp.
References start_time.
|
inline |
Check if the event will start within the next N minutes.
Definition at line 72 of file types.hpp.
References start_time.
| std::chrono::system_clock::time_point cl_gcalcli::CalendarEvent::end_time |
Definition at line 47 of file types.hpp.
Referenced by hasEnded(), hasStartedWithinMinutes(), and isActiveNow().
| std::chrono::system_clock::time_point cl_gcalcli::CalendarEvent::start_time |
Definition at line 46 of file types.hpp.
Referenced by cl_gcalcli::CpCalendarPoller::generateEventId(), hasStartedWithinMinutes(), isActiveNow(), minutesUntilStart(), and willStartWithinMinutes().
| std::string cl_gcalcli::CalendarEvent::title |
Definition at line 42 of file types.hpp.
Referenced by cl_gcalcli::CpCalendarEventListener::matchesPattern(), cl_gcalcli::CbDetectCalendarEvent::onEventStarted(), and cl_gcalcli::CbEventDetect::onEventStarted().