|
SMACC2
|
SMACC2 Client for Google Calendar integration via gcalcli. More...
#include <cl_gcalcli.hpp>


Public Member Functions | |
| ClGcalcli () | |
| ClGcalcli (const GcalcliConfig &config) | |
| virtual | ~ClGcalcli ()=default |
| void | configure (const GcalcliConfig &config) |
| Set configuration before initialization. | |
| const GcalcliConfig & | getConfig () const |
| Get current configuration. | |
| template<typename TOrthogonal , typename TClient > | |
| void | onComponentInitialization () |
| Template method for component initialization with orthogonal context. | |
| CpGcalcliConnection * | getConnection () |
| CpCalendarPoller * | getPoller () |
| CpCalendarEventListener * | getEventListener () |
Public Member Functions inherited from smacc2::ISmaccClient | |
| ISmaccClient () | |
| virtual | ~ISmaccClient () |
| virtual void | onInitialize () |
| virtual std::string | getName () const |
| template<typename TComponent > | |
| TComponent * | getComponent () |
| template<typename TComponent > | |
| TComponent * | getComponent (std::string name) |
| template<typename TComponent > | |
| TComponent * | getComponent (int index) |
| virtual smacc2::introspection::TypeInfo::Ptr | getType () |
| ISmaccStateMachine * | getStateMachine () |
| template<typename TSmaccSignal , typename T > | |
| void | connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object) |
| template<typename SmaccClientType > | |
| void | requiresClient (SmaccClientType *&storage) |
| void | getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components) |
| const std::vector< std::shared_ptr< ISmaccComponent > > & | iterateComponents () const |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
Private Attributes | |
| GcalcliConfig | config_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccClient | |
| template<typename TOrthogonal , typename TClient > | |
| void | onComponentInitialization () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createComponent (TArgs... targs) |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createNamedComponent (std::string name, TArgs... targs) |
| rclcpp::Node::SharedPtr | getNode () |
| rclcpp::Logger | getLogger () |
Protected Attributes inherited from smacc2::ISmaccClient | |
| std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > | components_ |
SMACC2 Client for Google Calendar integration via gcalcli.
This client provides Google Calendar functionality through the gcalcli command-line tool. It follows the pure orchestrator pattern, creating and configuring components that implement the actual functionality.
Components:
Usage example:
Definition at line 53 of file cl_gcalcli.hpp.
| cl_gcalcli::ClGcalcli::ClGcalcli | ( | ) |
Definition at line 20 of file cl_gcalcli.cpp.
|
explicit |
Definition at line 22 of file cl_gcalcli.cpp.
|
virtualdefault |
| void cl_gcalcli::ClGcalcli::configure | ( | const GcalcliConfig & | config | ) |
Set configuration before initialization.
Definition at line 24 of file cl_gcalcli.cpp.
References config_.
|
inline |
|
inline |
Definition at line 91 of file cl_gcalcli.hpp.
References smacc2::ISmaccClient::getComponent().
Referenced by cl_gcalcli::CbMonitorConnection::onEntry(), cl_gcalcli::CbQuickAdd::onEntry(), cl_gcalcli::CbStatus::onEntry(), and cl_gcalcli::CbWaitConnection::onEntry().


|
inline |
Definition at line 95 of file cl_gcalcli.hpp.
References smacc2::ISmaccClient::getComponent().
Referenced by cl_gcalcli::CbDetectCalendarEvent::onEntry(), and cl_gcalcli::CbEventDetect::onEntry().


|
inline |
Definition at line 93 of file cl_gcalcli.hpp.
References smacc2::ISmaccClient::getComponent().
Referenced by cl_gcalcli::CbRefreshAgenda::onEntry(), and cl_gcalcli::CbStatus::onEntry().


|
inline |
Template method for component initialization with orthogonal context.
Definition at line 74 of file cl_gcalcli.hpp.
References config_, smacc2::ISmaccClient::createComponent(), and smacc2::ISmaccClient::getLogger().

|
private |
Definition at line 101 of file cl_gcalcli.hpp.
Referenced by configure(), getConfig(), and onComponentInitialization().