diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-07-26 19:05:33 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-07-26 19:05:33 (GMT) |
commit | 720bbe5c1b8c0789b5c7ad9ffca33e52bf77f1da (patch) | |
tree | 8f692eb636ddb21649097e053f8504a2dab70a01 /src/uscxml/plugins/invoker | |
parent | 8ff01ac995c8b95fa2695b6ff7e3e985bd4579d6 (diff) | |
download | uscxml-720bbe5c1b8c0789b5c7ad9ffca33e52bf77f1da.zip uscxml-720bbe5c1b8c0789b5c7ad9ffca33e52bf77f1da.tar.gz uscxml-720bbe5c1b8c0789b5c7ad9ffca33e52bf77f1da.tar.bz2 |
Started calendar invoker and bug fixes
Diffstat (limited to 'src/uscxml/plugins/invoker')
-rw-r--r-- | src/uscxml/plugins/invoker/CMakeLists.txt | 20 | ||||
-rw-r--r-- | src/uscxml/plugins/invoker/calendar/CalendarInvoker.cpp | 44 | ||||
-rw-r--r-- | src/uscxml/plugins/invoker/calendar/CalendarInvoker.h | 40 |
3 files changed, 104 insertions, 0 deletions
diff --git a/src/uscxml/plugins/invoker/CMakeLists.txt b/src/uscxml/plugins/invoker/CMakeLists.txt index e836275..67d356a 100644 --- a/src/uscxml/plugins/invoker/CMakeLists.txt +++ b/src/uscxml/plugins/invoker/CMakeLists.txt @@ -127,6 +127,26 @@ if (FFMPEG_FOUND) endif() +# calendar invoker + +if (LIBICAL_FOUND) + file(GLOB_RECURSE CALENDAR_INVOKER + calendar/*.cpp + calendar/*.h + ) + source_group("Invoker\\caledar" FILES ${CALENDAR_INVOKER}) + if (BUILD_AS_PLUGINS) + add_library( + invoker_calendar SHARED + ${CALENDAR_INVOKER}) + target_link_libraries(invoker_calendar uscxml) + set_target_properties(invoker_calendar PROPERTIES FOLDER "Plugin Invoker") + else() + list (APPEND USCXML_FILES ${CALENDAR_INVOKER}) + endif() +endif() + + # UMUNDO invoker if (UMUNDO_FOUND) diff --git a/src/uscxml/plugins/invoker/calendar/CalendarInvoker.cpp b/src/uscxml/plugins/invoker/calendar/CalendarInvoker.cpp new file mode 100644 index 0000000..7ea3fc3 --- /dev/null +++ b/src/uscxml/plugins/invoker/calendar/CalendarInvoker.cpp @@ -0,0 +1,44 @@ +#include "CalendarInvoker.h" +#include <glog/logging.h> + +#ifdef BUILD_AS_PLUGINS +#include <Pluma/Connector.hpp> +#endif + +namespace uscxml { + +#ifdef BUILD_AS_PLUGINS +PLUMA_CONNECTOR +bool connect(pluma::Host& host) { + host.add( new CalendarInvokerProvider() ); + return true; +} +#endif + +CalendarInvoker::CalendarInvoker() { +} + +CalendarInvoker::~CalendarInvoker() { +}; + +boost::shared_ptr<InvokerImpl> CalendarInvoker::create(InterpreterImpl* interpreter) { + boost::shared_ptr<CalendarInvoker> invoker = boost::shared_ptr<CalendarInvoker>(new CalendarInvoker()); + invoker->_interpreter = interpreter; + return invoker; +} + +Data CalendarInvoker::getDataModelVariables() { + Data data; + return data; +} + +void CalendarInvoker::send(const SendRequest& req) { +} + +void CalendarInvoker::cancel(const std::string sendId) { +} + +void CalendarInvoker::invoke(const InvokeRequest& req) { +} + +}
\ No newline at end of file diff --git a/src/uscxml/plugins/invoker/calendar/CalendarInvoker.h b/src/uscxml/plugins/invoker/calendar/CalendarInvoker.h new file mode 100644 index 0000000..45dc8d0 --- /dev/null +++ b/src/uscxml/plugins/invoker/calendar/CalendarInvoker.h @@ -0,0 +1,40 @@ +#ifndef CALENDARINVOKER_H_W09J90F0 +#define CALENDARINVOKER_H_W09J90F0 + +#include <uscxml/Interpreter.h> + +#ifdef BUILD_AS_PLUGINS +#include "uscxml/plugins/Plugins.h" +#endif + +namespace uscxml { + +class CalendarInvoker : public InvokerImpl { +public: + CalendarInvoker(); + virtual ~CalendarInvoker(); + virtual boost::shared_ptr<InvokerImpl> create(InterpreterImpl* interpreter); + + virtual std::set<std::string> getNames() { + std::set<std::string> names; + names.insert("calendar"); + names.insert("http://uscxml.tk.informatik.tu-darmstadt.de/#calendar"); + return names; + } + + virtual Data getDataModelVariables(); + virtual void send(const SendRequest& req); + virtual void cancel(const std::string sendId); + virtual void invoke(const InvokeRequest& req); + +protected: +}; + +#ifdef BUILD_AS_PLUGINS +PLUMA_INHERIT_PROVIDER(CalendarInvoker, InvokerImpl); +#endif + +} + + +#endif /* end of include guard: CALENDARINVOKER_H_W09J90F0 */ |