Parent Directory | Revision Log
Util.*, HttpClient.*: make a new Http client based on libcurl and deprecate Util::readUrl WeatherPlugin.cpp, TrainInfo.cpp: Make use of HttpClient UrlTriggerPlugin.*: Make a new plugin which can trigger an external webapp. and return the response back to the requester
1 | #ifndef __URLTRIGGERPLUGIN_H__ |
2 | #define __URLTRIGGERPLUGIN_H__ |
3 | |
4 | |
5 | #include "Plugin.h" |
6 | |
7 | |
8 | class UrlTriggerPlugin : public Plugin |
9 | { |
10 | public: |
11 | UrlTriggerPlugin(std::string cmd, std::string url); |
12 | |
13 | virtual void Execute(ISmsTransceiver& modem, SMS& sms); |
14 | |
15 | virtual ~UrlTriggerPlugin() {} |
16 | private: |
17 | std::string command; |
18 | std::string URL; |
19 | }; |
20 | |
21 | |
22 | #endif // __URLTRIGGERPLUGIN_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |