Class CbQuickAdd

Inheritance Relationships

Base Type

  • public smacc2::SmaccAsyncClientBehavior

Class Documentation

class CbQuickAdd : public smacc2::SmaccAsyncClientBehavior

Async behavior that adds an event using gcalcli quick add.

This behavior uses gcalcli’s “quick” command to add events using natural language. Posts success on completion or failure on error.

Example:

configure<OrCalendar, CbQuickAdd>("Team meeting tomorrow at 3pm for 1 hour");

Public Functions

explicit CbQuickAdd(const std::string &text, const std::string &calendar = "")

Construct with event description.

Parameters:
  • text – Natural language event description

  • calendar – Optional specific calendar name

virtual ~CbQuickAdd() = default
void onEntry() override