SMACC2
Loading...
Searching...
No Matches
cl_gcalcli::CpCalendarPoller Class Reference

Component that polls Google Calendar and parses event data. More...

#include <cp_calendar_poller.hpp>

Inheritance diagram for cl_gcalcli::CpCalendarPoller:
Inheritance graph
Collaboration diagram for cl_gcalcli::CpCalendarPoller:
Collaboration graph

Public Member Functions

 CpCalendarPoller ()
 
virtual ~CpCalendarPoller ()=default
 
void onInitialize () override
 
bool refreshAgenda ()
 Force an immediate agenda refresh.
 
std::vector< CalendarEvent > getEvents () const
 Get cached list of calendar events.
 
std::vector< CalendarEvent > findEvents (const std::string &pattern, bool use_regex=false) const
 Get events matching a title pattern.
 
std::vector< CalendarEvent > getEventsInWindow (std::chrono::system_clock::time_point start, std::chrono::system_clock::time_point end) const
 Get events happening within a time window.
 
std::vector< CalendarEvent > getActiveEvents () const
 Get currently active events.
 
std::chrono::system_clock::time_point getLastPollTime () const
 Get the time of the last successful poll.
 
template<typename T >
smacc2::SmaccSignalConnection onAgendaUpdated (void(T::*callback)(const std::vector< CalendarEvent > &), T *object)
 
template<typename TOrthogonal , typename TSourceObject >
void onStateOrthogonalAllocation ()
 Template method for type-safe event posting setup.
 
- Public Member Functions inherited from smacc2::ISmaccComponent
 ISmaccComponent ()
 
virtual ~ISmaccComponent ()
 
 ISmaccComponent (const ISmaccComponent &)=delete
 
ISmaccComponent & operator= (const ISmaccComponent &)=delete
 
 ISmaccComponent (ISmaccComponent &&)=delete
 
ISmaccComponent & operator= (ISmaccComponent &&)=delete
 
virtual std::string getName () const
 
- Public Member Functions inherited from smacc2::ISmaccUpdatable
 ISmaccUpdatable ()
 
 ISmaccUpdatable (rclcpp::Duration duration)
 
virtual ~ISmaccUpdatable ()=default
 
 ISmaccUpdatable (const ISmaccUpdatable &)=delete
 
ISmaccUpdatable & operator= (const ISmaccUpdatable &)=delete
 
 ISmaccUpdatable (ISmaccUpdatable &&)=delete
 
ISmaccUpdatable & operator= (ISmaccUpdatable &&)=delete
 
void executeUpdate (rclcpp::Node::SharedPtr node)
 
void setUpdatePeriod (rclcpp::Duration duration)
 

Public Attributes

smacc2::SmaccSignal< void(const std::vector< CalendarEvent > &)> onAgendaUpdated_
 
std::function< void(const std::vector< CalendarEvent > &)> postAgendaUpdatedEvent_
 

Protected Member Functions

void update () override
 Periodic update for polling (called by SignalDetector)
 
- Protected Member Functions inherited from smacc2::ISmaccComponent
template<typename TOrthogonal , typename TClient >
void onComponentInitialization ()
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
template<typename TOrthogonal , typename TSourceObject >
void onStateOrthogonalAllocation ()
 
template<typename TComponent >
void requiresComponent (TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
 
template<typename TComponent >
void requiresComponent (const std::string &name, TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
 
template<typename TClient >
void requiresClient (TClient *&requiredClientStorage)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createSiblingComponent (const TArgs &... targs)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createSiblingNamedComponent (const std::string &name, const TArgs &... targs)
 
rclcpp::Node::SharedPtr getNode ()
 
rclcpp::Logger getLogger () const
 
ISmaccStateMachine * getStateMachine ()
 
- Protected Member Functions inherited from smacc2::ISmaccUpdatable

Private Member Functions

std::vector< CalendarEvent > parseTsvOutput (const std::string &output)
 Parse TSV output into CalendarEvent structures.
 
std::optional< CalendarEvent > parseTsvLine (const std::string &line)
 Parse a single TSV line into a CalendarEvent.
 
std::optional< std::chrono::system_clock::time_point > parseDateTime (const std::string &date_str, const std::string &time_str)
 Parse date and time strings into time_point.
 
std::string generateEventId (const CalendarEvent &event)
 Generate a unique ID for an event.
 

Private Attributes

CpGcalcliConnection * connection_
 
std::vector< CalendarEvent > cached_events_
 
std::chrono::system_clock::time_point last_poll_time_
 
std::chrono::steady_clock::time_point last_poll_attempt_
 
bool initialized_
 
std::mutex events_mutex_
 

Additional Inherited Members

- Protected Attributes inherited from smacc2::ISmaccComponent
ISmaccStateMachine * stateMachine_ = nullptr
 
ISmaccClient * owner_ = nullptr
 

Detailed Description

Component that polls Google Calendar and parses event data.

This component periodically fetches the agenda from Google Calendar using gcalcli's TSV output format and parses it into CalendarEvent structures.

TSV Format: Start_Date | Start_Time | End_Date | End_Time | Title | Location | Description | Calendar

Definition at line 43 of file cp_calendar_poller.hpp.

Constructor & Destructor Documentation

◆ CpCalendarPoller()

cl_gcalcli::CpCalendarPoller::CpCalendarPoller ( )

Definition at line 25 of file cp_calendar_poller.cpp.

◆ ~CpCalendarPoller()

virtual cl_gcalcli::CpCalendarPoller::~CpCalendarPoller ( )
virtualdefault

Member Function Documentation

◆ findEvents()

std::vector< CalendarEvent > cl_gcalcli::CpCalendarPoller::findEvents ( const std::string & pattern,
bool use_regex = false ) const

Get events matching a title pattern.

Parameters
patternPattern to match (regex or exact based on use_regex)
use_regexIf true, use regex matching

Definition at line 111 of file cp_calendar_poller.cpp.

113{
114 std::lock_guard<std::mutex> lock(events_mutex_);
115
116 std::vector<CalendarEvent> matches;
117
118 if (use_regex)
119 {
120 try
121 {
122 boost::regex regex(pattern, boost::regex::icase);
123 for (const auto & event : cached_events_)
124 {
125 if (boost::regex_search(event.title, regex))
126 {
127 matches.push_back(event);
128 }
129 }
130 }
131 catch (const boost::regex_error & e)
132 {
133 RCLCPP_ERROR(getLogger(), "[CpCalendarPoller] Invalid regex pattern: %s", e.what());
134 }
135 }
136 else
137 {
138 for (const auto & event : cached_events_)
139 {
140 if (event.title.find(pattern) != std::string::npos)
141 {
142 matches.push_back(event);
143 }
144 }
145 }
146
147 return matches;
148}
std::vector< CalendarEvent > cached_events_
rclcpp::Logger getLogger() const

References cached_events_, events_mutex_, and smacc2::ISmaccComponent::getLogger().

Here is the call graph for this function:

◆ generateEventId()

std::string cl_gcalcli::CpCalendarPoller::generateEventId ( const CalendarEvent & event)
private

Generate a unique ID for an event.

Definition at line 386 of file cp_calendar_poller.cpp.

387{
388 // Generate a unique ID based on title and start time
389 auto start_t = std::chrono::system_clock::to_time_t(event.start_time);
390 std::stringstream ss;
391 ss << event.title << "_" << start_t << "_" << event.calendar_name;
392 return ss.str();
393}

References cl_gcalcli::CalendarEvent::start_time.

Referenced by parseTsvLine().

Here is the caller graph for this function:

◆ getActiveEvents()

std::vector< CalendarEvent > cl_gcalcli::CpCalendarPoller::getActiveEvents ( ) const

Get currently active events.

Definition at line 168 of file cp_calendar_poller.cpp.

169{
170 std::lock_guard<std::mutex> lock(events_mutex_);
171
172 std::vector<CalendarEvent> active;
173 for (const auto & event : cached_events_)
174 {
175 if (event.isActiveNow())
176 {
177 active.push_back(event);
178 }
179 }
180
181 return active;
182}

References cached_events_, and events_mutex_.

◆ getEvents()

std::vector< CalendarEvent > cl_gcalcli::CpCalendarPoller::getEvents ( ) const

Get cached list of calendar events.

Definition at line 105 of file cp_calendar_poller.cpp.

106{
107 std::lock_guard<std::mutex> lock(events_mutex_);
108 return cached_events_;
109}

References cached_events_, and events_mutex_.

◆ getEventsInWindow()

std::vector< CalendarEvent > cl_gcalcli::CpCalendarPoller::getEventsInWindow ( std::chrono::system_clock::time_point start,
std::chrono::system_clock::time_point end ) const

Get events happening within a time window.

Definition at line 150 of file cp_calendar_poller.cpp.

152{
153 std::lock_guard<std::mutex> lock(events_mutex_);
154
155 std::vector<CalendarEvent> matches;
156 for (const auto & event : cached_events_)
157 {
158 // Event overlaps with window if it starts before window end and ends after window start
159 if (event.start_time < end && event.end_time > start)
160 {
161 matches.push_back(event);
162 }
163 }
164
165 return matches;
166}

References cached_events_, and events_mutex_.

◆ getLastPollTime()

std::chrono::system_clock::time_point cl_gcalcli::CpCalendarPoller::getLastPollTime ( ) const

Get the time of the last successful poll.

Definition at line 184 of file cp_calendar_poller.cpp.

185{
186 std::lock_guard<std::mutex> lock(events_mutex_);
187 return last_poll_time_;
188}
std::chrono::system_clock::time_point last_poll_time_

References events_mutex_, and last_poll_time_.

◆ onAgendaUpdated()

template<typename T >
smacc2::SmaccSignalConnection cl_gcalcli::CpCalendarPoller::onAgendaUpdated ( void(T::* callback )(const std::vector< CalendarEvent > &),
T * object )
inline

Definition at line 90 of file cp_calendar_poller.hpp.

92 {
93 return this->getStateMachine()->createSignalConnection(onAgendaUpdated_, callback, object);
94 }
smacc2::SmaccSignal< void(const std::vector< CalendarEvent > &)> onAgendaUpdated_
ISmaccStateMachine * getStateMachine()
smacc2::SmaccSignalConnection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_gcalcli::CpCalendarEventListener::onInitialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onInitialize()

void cl_gcalcli::CpCalendarPoller::onInitialize ( )
overridevirtual

Reimplemented from smacc2::ISmaccComponent.

Definition at line 27 of file cp_calendar_poller.cpp.

28{
29 if (!initialized_)
30 {
32
33 if (connection_ == nullptr)
34 {
35 RCLCPP_ERROR(getLogger(), "[CpCalendarPoller] CpGcalcliConnection component not found!");
36 return;
37 }
38
39 last_poll_attempt_ = std::chrono::steady_clock::now();
40 initialized_ = true;
41
42 RCLCPP_INFO(getLogger(), "[CpCalendarPoller] Initialized");
43 }
44}
std::chrono::steady_clock::time_point last_poll_attempt_
void requiresComponent(TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT)

References connection_, smacc2::ISmaccComponent::getLogger(), initialized_, last_poll_attempt_, and smacc2::ISmaccComponent::requiresComponent().

Here is the call graph for this function:

◆ onStateOrthogonalAllocation()

template<typename TOrthogonal , typename TSourceObject >
void cl_gcalcli::CpCalendarPoller::onStateOrthogonalAllocation ( )
inline

Template method for type-safe event posting setup.

Definition at line 103 of file cp_calendar_poller.hpp.

104 {
105 postAgendaUpdatedEvent_ = [this](const std::vector<CalendarEvent> & events)
106 {
108 ev->events = events;
109 this->postEvent(ev);
110 };
111 }
std::function< void(const std::vector< CalendarEvent > &)> postAgendaUpdatedEvent_
boost::intrusive_ptr< EventType > makeEvent(Args &&... args)

References smacc2::makeEvent(), postAgendaUpdatedEvent_, and smacc2::ISmaccComponent::postEvent().

Here is the call graph for this function:

◆ parseDateTime()

std::optional< std::chrono::system_clock::time_point > cl_gcalcli::CpCalendarPoller::parseDateTime ( const std::string & date_str,
const std::string & time_str )
private

Parse date and time strings into time_point.

Parameters
date_strDate string (MM/DD/YYYY or similar)
time_strTime string (HH:MM or similar)

Definition at line 298 of file cp_calendar_poller.cpp.

300{
301 std::tm tm = {};
302
303 // Parse date - gcalcli TSV uses YYYY-MM-DD format
304 std::istringstream date_stream(date_str);
305 char sep1, sep2;
306 int year, month, day;
307
308 if (date_stream >> year >> sep1 >> month >> sep2 >> day && sep1 == '-' && sep2 == '-')
309 {
310 // YYYY-MM-DD format (gcalcli TSV)
311 tm.tm_year = year - 1900;
312 tm.tm_mon = month - 1;
313 tm.tm_mday = day;
314 }
315 else
316 {
317 // Try MM/DD/YYYY format as fallback
318 date_stream.clear();
319 date_stream.str(date_str);
320 if (date_stream >> month >> sep1 >> day >> sep2 >> year && sep1 == '/' && sep2 == '/')
321 {
322 tm.tm_mon = month - 1;
323 tm.tm_mday = day;
324 tm.tm_year = year - 1900;
325 }
326 else
327 {
328 RCLCPP_DEBUG(getLogger(), "[CpCalendarPoller] Failed to parse date: %s", date_str.c_str());
329 return std::nullopt;
330 }
331 }
332
333 // Parse time - gcalcli TSV uses 24-hour HH:MM format
334 if (!time_str.empty())
335 {
336 std::istringstream time_stream(time_str);
337 char colon;
338 int hour, minute;
339
340 if (time_stream >> hour >> colon >> minute && colon == ':')
341 {
342 tm.tm_hour = hour;
343 tm.tm_min = minute;
344
345 // Check for am/pm suffix (for non-TSV formats)
346 std::string rest;
347 std::getline(time_stream, rest);
348 if (!rest.empty())
349 {
350 // Remove leading spaces
351 size_t start = rest.find_first_not_of(" ");
352 if (start != std::string::npos)
353 {
354 rest = rest.substr(start);
355 }
356 // Check for am/pm
357 if (rest == "pm" || rest == "PM" || rest == "p" || rest == "P")
358 {
359 if (hour != 12) tm.tm_hour += 12;
360 }
361 else if (rest == "am" || rest == "AM" || rest == "a" || rest == "A")
362 {
363 if (hour == 12) tm.tm_hour = 0;
364 }
365 }
366 }
367 else
368 {
369 RCLCPP_DEBUG(getLogger(), "[CpCalendarPoller] Failed to parse time: %s", time_str.c_str());
370 return std::nullopt;
371 }
372 }
373
374 tm.tm_sec = 0;
375 tm.tm_isdst = -1; // Let mktime determine DST
376
377 std::time_t time = std::mktime(&tm);
378 if (time == -1)
379 {
380 return std::nullopt;
381 }
382
383 return std::chrono::system_clock::from_time_t(time);
384}

References smacc2::ISmaccComponent::getLogger().

Referenced by parseTsvLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseTsvLine()

std::optional< CalendarEvent > cl_gcalcli::CpCalendarPoller::parseTsvLine ( const std::string & line)
private

Parse a single TSV line into a CalendarEvent.

Definition at line 237 of file cp_calendar_poller.cpp.

238{
239 // TSV columns: Start_Date | Start_Time | End_Date | End_Time | Title | Location | Description | Calendar
240 std::vector<std::string> fields;
241 std::istringstream stream(line);
242 std::string field;
243
244 while (std::getline(stream, field, '\t'))
245 {
246 fields.push_back(field);
247 }
248
249 // We need at least 5 fields (date/time + title)
250 if (fields.size() < 5)
251 {
252 RCLCPP_DEBUG(
253 getLogger(), "[CpCalendarPoller] Skipping line with insufficient fields: %s", line.c_str());
254 return std::nullopt;
255 }
256
257 CalendarEvent event;
258
259 // Parse start time
260 auto start = parseDateTime(fields[0], fields[1]);
261 if (!start.has_value())
262 {
263 RCLCPP_DEBUG(
264 getLogger(), "[CpCalendarPoller] Failed to parse start time: %s %s", fields[0].c_str(),
265 fields[1].c_str());
266 return std::nullopt;
267 }
268 event.start_time = start.value();
269
270 // Parse end time
271 auto end = parseDateTime(fields[2], fields[3]);
272 if (!end.has_value())
273 {
274 RCLCPP_DEBUG(
275 getLogger(), "[CpCalendarPoller] Failed to parse end time: %s %s", fields[2].c_str(),
276 fields[3].c_str());
277 return std::nullopt;
278 }
279 event.end_time = end.value();
280
281 // Title (required)
282 event.title = fields[4];
283
284 // Optional fields
285 if (fields.size() > 5) event.location = fields[5];
286 if (fields.size() > 6) event.description = fields[6];
287 if (fields.size() > 7) event.calendar_name = fields[7];
288
289 // Check for all-day event (typically has no time or 00:00)
290 event.is_all_day = (fields[1].empty() || fields[1] == "00:00" || fields[1] == "12:00am");
291
292 // Generate ID
293 event.id = generateEventId(event);
294
295 return event;
296}
std::optional< std::chrono::system_clock::time_point > parseDateTime(const std::string &date_str, const std::string &time_str)
Parse date and time strings into time_point.
std::string generateEventId(const CalendarEvent &event)
Generate a unique ID for an event.

References generateEventId(), smacc2::ISmaccComponent::getLogger(), and parseDateTime().

Referenced by parseTsvOutput().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseTsvOutput()

std::vector< CalendarEvent > cl_gcalcli::CpCalendarPoller::parseTsvOutput ( const std::string & output)
private

Parse TSV output into CalendarEvent structures.

Definition at line 213 of file cp_calendar_poller.cpp.

214{
215 std::vector<CalendarEvent> events;
216 std::istringstream stream(output);
217 std::string line;
218
219 while (std::getline(stream, line))
220 {
221 // Skip empty lines
222 if (line.empty() || line.find_first_not_of(" \t\r\n") == std::string::npos)
223 {
224 continue;
225 }
226
227 auto event = parseTsvLine(line);
228 if (event.has_value())
229 {
230 events.push_back(event.value());
231 }
232 }
233
234 return events;
235}
std::optional< CalendarEvent > parseTsvLine(const std::string &line)
Parse a single TSV line into a CalendarEvent.

References parseTsvLine().

Referenced by refreshAgenda().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshAgenda()

bool cl_gcalcli::CpCalendarPoller::refreshAgenda ( )

Force an immediate agenda refresh.

Returns
true if refresh was successful

Definition at line 46 of file cp_calendar_poller.cpp.

47{
49 {
50 RCLCPP_WARN(getLogger(), "[CpCalendarPoller] Cannot refresh - not connected");
51 return false;
52 }
53
54 const auto & config = connection_->getConfig();
55
56 // Build the agenda command with TSV output
57 std::stringstream args;
58 args << "agenda --tsv --nocolor";
59 args << " --nodeclined";
60
61 // Add date range
62 auto now = std::chrono::system_clock::now();
63 auto end = now + std::chrono::hours(24 * config.agenda_days);
64
65 auto now_t = std::chrono::system_clock::to_time_t(now);
66 auto end_t = std::chrono::system_clock::to_time_t(end);
67
68 std::tm now_tm{}, end_tm{};
69 localtime_r(&now_t, &now_tm);
70 localtime_r(&end_t, &end_tm);
71
72 args << " \"" << std::put_time(&now_tm, "%m/%d/%Y") << "\"";
73 args << " \"" << std::put_time(&end_tm, "%m/%d/%Y") << "\"";
74
75 auto result = connection_->executeGcalcli(args.str(), 30000);
76
77 if (result.exit_code != 0 || result.timed_out)
78 {
79 RCLCPP_WARN(
80 getLogger(), "[CpCalendarPoller] Agenda fetch failed: %s", result.stdout_output.c_str());
81 return false;
82 }
83
84 // Parse the TSV output
85 auto events = parseTsvOutput(result.stdout_output);
86
87 {
88 std::lock_guard<std::mutex> lock(events_mutex_);
89 cached_events_ = events;
90 last_poll_time_ = std::chrono::system_clock::now();
91 }
92
93 RCLCPP_DEBUG(getLogger(), "[CpCalendarPoller] Refreshed agenda: %zu events", events.size());
94
95 // Emit signal and post event
96 onAgendaUpdated_(events);
98 {
100 }
101
102 return true;
103}
std::vector< CalendarEvent > parseTsvOutput(const std::string &output)
Parse TSV output into CalendarEvent structures.
const GcalcliConfig & getConfig() const
Get the gcalcli configuration.
bool isConnected() const
Check if connected to Google Calendar.
smacc2::client_core_components::SubprocessResult executeGcalcli(const std::string &args, int timeout_ms=30000)
Execute a gcalcli command.

References cached_events_, connection_, events_mutex_, cl_gcalcli::CpGcalcliConnection::executeGcalcli(), cl_gcalcli::CpGcalcliConnection::getConfig(), smacc2::ISmaccComponent::getLogger(), cl_gcalcli::CpGcalcliConnection::isConnected(), last_poll_time_, onAgendaUpdated_, parseTsvOutput(), and postAgendaUpdatedEvent_.

Referenced by update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void cl_gcalcli::CpCalendarPoller::update ( )
overrideprotectedvirtual

Periodic update for polling (called by SignalDetector)

Implements smacc2::ISmaccUpdatable.

Definition at line 190 of file cp_calendar_poller.cpp.

191{
192 if (!initialized_ || !connection_)
193 {
194 return;
195 }
196
197 if (!connection_->isConnected())
198 {
199 return;
200 }
201
202 const auto & config = connection_->getConfig();
203 auto now = std::chrono::steady_clock::now();
204 auto elapsed = std::chrono::duration_cast<std::chrono::seconds>(now - last_poll_attempt_);
205
206 if (elapsed >= config.poll_interval)
207 {
209 last_poll_attempt_ = now;
210 }
211}
bool refreshAgenda()
Force an immediate agenda refresh.

References connection_, cl_gcalcli::CpGcalcliConnection::getConfig(), initialized_, cl_gcalcli::CpGcalcliConnection::isConnected(), last_poll_attempt_, and refreshAgenda().

Here is the call graph for this function:

Member Data Documentation

◆ cached_events_

std::vector<CalendarEvent> cl_gcalcli::CpCalendarPoller::cached_events_
private

◆ connection_

CpGcalcliConnection* cl_gcalcli::CpCalendarPoller::connection_
private

Definition at line 143 of file cp_calendar_poller.hpp.

Referenced by onInitialize(), refreshAgenda(), and update().

◆ events_mutex_

std::mutex cl_gcalcli::CpCalendarPoller::events_mutex_
mutableprivate

◆ initialized_

bool cl_gcalcli::CpCalendarPoller::initialized_
private

Definition at line 147 of file cp_calendar_poller.hpp.

Referenced by onInitialize(), and update().

◆ last_poll_attempt_

std::chrono::steady_clock::time_point cl_gcalcli::CpCalendarPoller::last_poll_attempt_
private

Definition at line 146 of file cp_calendar_poller.hpp.

Referenced by onInitialize(), and update().

◆ last_poll_time_

std::chrono::system_clock::time_point cl_gcalcli::CpCalendarPoller::last_poll_time_
private

Definition at line 145 of file cp_calendar_poller.hpp.

Referenced by getLastPollTime(), and refreshAgenda().

◆ onAgendaUpdated_

smacc2::SmaccSignal<void(const std::vector<CalendarEvent> &)> cl_gcalcli::CpCalendarPoller::onAgendaUpdated_

Definition at line 86 of file cp_calendar_poller.hpp.

Referenced by refreshAgenda().

◆ postAgendaUpdatedEvent_

std::function<void(const std::vector<CalendarEvent> &)> cl_gcalcli::CpCalendarPoller::postAgendaUpdatedEvent_

Definition at line 97 of file cp_calendar_poller.hpp.

Referenced by onStateOrthogonalAllocation(), and refreshAgenda().


The documentation for this class was generated from the following files: