/[projects]/smsdaemon/plugins/EchoPlugin.cpp
ViewVC logotype

Annotation of /smsdaemon/plugins/EchoPlugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations) (download)
Mon Jun 9 20:56:03 2008 UTC (15 years, 11 months ago) by torben
File size: 242 byte(s)
Restructured the plugins a little and implemented a spam plugin.


1 torben 26 #include "EchoPlugin.h"
2     #include "GsmModem.h"
3    
4 torben 28 EchoPlugin::EchoPlugin()
5     : Plugin("echo", "Echoes all extra text back to the sender")
6     {
7     }
8 torben 26
9     void EchoPlugin::Execute(GsmModem& modem, SMS& sms)
10     {
11     modem.SendSms(sms.sender, GetSmsData(sms) );
12     }

  ViewVC Help
Powered by ViewVC 1.1.20