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

Configuration for gcalcli client. More...

#include <types.hpp>

Collaboration diagram for cl_gcalcli::GcalcliConfig:
Collaboration graph

Public Attributes

std::string gcalcli_path = "gcalcli"
 Path to gcalcli executable (default: "gcalcli" from PATH)
 
std::optional< std::string > config_folder
 Optional config folder for gcalcli (if not using default)
 
std::vector< std::string > calendars
 Calendars to monitor (empty = all calendars)
 
std::chrono::seconds poll_interval {30}
 How often to poll for agenda updates.
 
std::chrono::seconds heartbeat_interval {60}
 How often to check connection health (heartbeat)
 
int agenda_days = 7
 Number of days ahead to fetch in agenda.
 
int max_consecutive_failures = 3
 Number of consecutive failures before connection is considered lost.
 

Detailed Description

Configuration for gcalcli client.

Definition at line 101 of file types.hpp.

Member Data Documentation

◆ agenda_days

int cl_gcalcli::GcalcliConfig::agenda_days = 7

Number of days ahead to fetch in agenda.

Definition at line 119 of file types.hpp.

◆ calendars

std::vector<std::string> cl_gcalcli::GcalcliConfig::calendars

Calendars to monitor (empty = all calendars)

Definition at line 110 of file types.hpp.

Referenced by cl_gcalcli::CpGcalcliConnection::executeGcalcli().

◆ config_folder

std::optional<std::string> cl_gcalcli::GcalcliConfig::config_folder

Optional config folder for gcalcli (if not using default)

Definition at line 107 of file types.hpp.

Referenced by cl_gcalcli::CpGcalcliConnection::executeGcalcli().

◆ gcalcli_path

std::string cl_gcalcli::GcalcliConfig::gcalcli_path = "gcalcli"

Path to gcalcli executable (default: "gcalcli" from PATH)

Definition at line 104 of file types.hpp.

Referenced by cl_gcalcli::CpGcalcliConnection::executeGcalcli(), and cl_gcalcli::CpGcalcliConnection::onInitialize().

◆ heartbeat_interval

std::chrono::seconds cl_gcalcli::GcalcliConfig::heartbeat_interval {60}

How often to check connection health (heartbeat)

Definition at line 116 of file types.hpp.

116{60};

Referenced by cl_gcalcli::CpGcalcliConnection::update().

◆ max_consecutive_failures

int cl_gcalcli::GcalcliConfig::max_consecutive_failures = 3

Number of consecutive failures before connection is considered lost.

Definition at line 122 of file types.hpp.

Referenced by cl_gcalcli::CpGcalcliConnection::handleConnectionStateChange().

◆ poll_interval

std::chrono::seconds cl_gcalcli::GcalcliConfig::poll_interval {30}

How often to poll for agenda updates.

Definition at line 113 of file types.hpp.

113{30};

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