52 CbEventDetect(
const std::string & pattern,
bool use_regex =
false,
int minutes_before = 0);
Async behavior that waits for a calendar event's start time to arrive.
std::optional< CalendarEvent > detected_event_
CpCalendarEventListener * listener_
std::optional< CalendarEvent > getDetectedEvent() const
Get the detected event (if any)
virtual ~CbEventDetect()=default
CbEventDetect(const std::string &pattern, bool use_regex=false, int minutes_before=0)
Construct with pattern configuration.
void onEventStarted(const CalendarEvent &event)
Callback when an event starts.
SMACC2 Client for Google Calendar integration via gcalcli.
Component that listens for calendar events and triggers notifications.
Represents a Google Calendar event.