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

Annotation of /smsdaemon/plugins/EchoPlugin.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (hide annotations) (download)
Mon Jun 9 18:15:53 2008 UTC (15 years, 11 months ago) by torben
File MIME type: text/plain
File size: 391 byte(s)
Added first basic edition of smsdaemon.

So far sending & receiving sms works and a basic sample plugin is implemented.

1 torben 26 #ifndef __ECHOPLUGIN_H__
2     #define __ECHOPLUGIN_H__
3    
4     #include <string>
5    
6    
7     #include "Plugin.h"
8    
9    
10     class EchoPlugin : public Plugin
11     {
12     public:
13    
14     virtual void Execute(GsmModem& modem, SMS& sms);
15    
16     virtual std::string GetCommand() {return "echo";}
17    
18     virtual std::string GetDescription() {return "Echoes all extra text back to the sender";}
19    
20     virtual ~EchoPlugin() {}
21    
22     };
23    
24    
25     #endif // __ECHOPLUGIN_H__

  ViewVC Help
Powered by ViewVC 1.1.20