SMACC2
Loading...
Searching...
No Matches
events.hpp
Go to the documentation of this file.
1// Copyright 2024 RobosoftAI Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <boost/statechart/event.hpp>
18#include <string>
19#include <vector>
20
21#include <cl_gcalcli/types.hpp>
22
23namespace cl_gcalcli
24{
25namespace sc = boost::statechart;
26
32template <typename TSource, typename TOrthogonal>
33struct EvConnectionLost : sc::event<EvConnectionLost<TSource, TOrthogonal>>
34{
35};
36
42template <typename TSource, typename TOrthogonal>
43struct EvConnectionRestored : sc::event<EvConnectionRestored<TSource, TOrthogonal>>
44{
45};
46
52template <typename TSource, typename TOrthogonal>
53struct EvAuthenticationRequired : sc::event<EvAuthenticationRequired<TSource, TOrthogonal>>
54{
55};
56
63template <typename TSource, typename TOrthogonal>
64struct EvCalendarEventDetected : sc::event<EvCalendarEventDetected<TSource, TOrthogonal>>
65{
67 std::string matched_pattern;
68};
69
76template <typename TSource, typename TOrthogonal>
77struct EvCalendarEventStarted : sc::event<EvCalendarEventStarted<TSource, TOrthogonal>>
78{
80};
81
87template <typename TSource, typename TOrthogonal>
88struct EvCalendarEventEnded : sc::event<EvCalendarEventEnded<TSource, TOrthogonal>>
89{
91};
92
98template <typename TSource, typename TOrthogonal>
99struct EvAgendaUpdated : sc::event<EvAgendaUpdated<TSource, TOrthogonal>>
100{
101 std::vector<CalendarEvent> events;
102};
103
104} // namespace cl_gcalcli
Represents a Google Calendar event.
Definition types.hpp:40
Event posted when the agenda is updated.
Definition events.hpp:100
std::vector< CalendarEvent > events
Definition events.hpp:101
Event posted when gcalcli authentication is required.
Definition events.hpp:54
Event posted when a calendar event matches a watched pattern.
Definition events.hpp:65
Event posted when a calendar event ends.
Definition events.hpp:89
Event posted when a calendar event starts.
Definition events.hpp:78
Event posted when gcalcli connection is lost.
Definition events.hpp:34
Event posted when gcalcli connection is restored.
Definition events.hpp:44