SMACC2
Loading...
Searching...
No Matches
cl_gcalcli::EventWatch Struct Reference

Event watch configuration for CpCalendarEventListener. More...

#include <types.hpp>

Collaboration diagram for cl_gcalcli::EventWatch:
Collaboration graph

Public Attributes

std::string pattern
 Pattern to match event titles (regex or exact)
 
bool use_regex = false
 True = regex matching, False = exact string matching.
 
int minutes_before = 0
 Trigger N minutes before event starts (0 = at start time)
 
bool trigger_on_start = true
 Post event when event starts.
 
bool trigger_on_end = false
 Post event when event ends.
 
bool continuous = false
 Keep watching (true) or one-shot (false)
 

Detailed Description

Event watch configuration for CpCalendarEventListener.

Definition at line 128 of file types.hpp.

Member Data Documentation

◆ continuous

bool cl_gcalcli::EventWatch::continuous = false

Keep watching (true) or one-shot (false)

Definition at line 146 of file types.hpp.

Referenced by cl_gcalcli::CbDetectCalendarEvent::onEntry(), and cl_gcalcli::CbEventDetect::onEntry().

◆ minutes_before

int cl_gcalcli::EventWatch::minutes_before = 0

Trigger N minutes before event starts (0 = at start time)

Definition at line 137 of file types.hpp.

Referenced by cl_gcalcli::CbDetectCalendarEvent::onEntry(), cl_gcalcli::CbEventDetect::onEntry(), and cl_gcalcli::CpCalendarEventListener::shouldTriggerStart().

◆ pattern

std::string cl_gcalcli::EventWatch::pattern

◆ trigger_on_end

bool cl_gcalcli::EventWatch::trigger_on_end = false

Post event when event ends.

Definition at line 143 of file types.hpp.

Referenced by cl_gcalcli::CbDetectCalendarEvent::onEntry(), and cl_gcalcli::CbEventDetect::onEntry().

◆ trigger_on_start

bool cl_gcalcli::EventWatch::trigger_on_start = true

Post event when event starts.

Definition at line 140 of file types.hpp.

Referenced by cl_gcalcli::CbDetectCalendarEvent::onEntry(), and cl_gcalcli::CbEventDetect::onEntry().

◆ use_regex

bool cl_gcalcli::EventWatch::use_regex = false

The documentation for this struct was generated from the following file: