diff options
Diffstat (limited to 'src/uscxml/Factory.cpp')
-rw-r--r-- | src/uscxml/Factory.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/uscxml/Factory.cpp b/src/uscxml/Factory.cpp index c2177d9..f975f39 100644 --- a/src/uscxml/Factory.cpp +++ b/src/uscxml/Factory.cpp @@ -39,9 +39,11 @@ # include "uscxml/plugins/invoker/filesystem/dirmon/DirMonInvoker.h" # include "uscxml/plugins/invoker/system/SystemInvoker.h" # include "uscxml/plugins/invoker/xhtml/XHTMLInvoker.h" -# include "uscxml/plugins/invoker/smtp/SMTPInvoker.h" # include "uscxml/plugins/invoker/imap/IMAPInvoker.h" +# ifdef CURL_HAS_SMTP +# include "uscxml/plugins/invoker/smtp/SMTPInvoker.h" +# endif #ifdef PROTOBUF_FOUND //# include "uscxml/plugins/ioprocessor/modality/MMIHTTPIOProcessor.h" @@ -269,6 +271,13 @@ Factory::Factory() { #endif #endif +#ifdef CURL_HAS_SMTP + { + SMTPInvoker* invoker = new SMTPInvoker(); + registerInvoker(invoker); + } +#endif + // these are always available { NULLDataModel* dataModel = new NULLDataModel(); @@ -280,10 +289,6 @@ Factory::Factory() { registerInvoker(invoker); } { - SMTPInvoker* invoker = new SMTPInvoker(); - registerInvoker(invoker); - } - { IMAPInvoker* invoker = new IMAPInvoker(); registerInvoker(invoker); } |