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

Annotation of /smsdaemon/plugins/TogPlugin.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 323 - (hide annotations) (download)
Wed Sep 16 09:08:40 2009 UTC (14 years, 8 months ago) by torben
File MIME type: text/plain
File size: 522 byte(s)
First attempt at making TogPlugin use my xml service 

1 torben 44 #ifndef __TOGPLUGIN_H__
2     #define __TOGPLUGIN_H__
3    
4    
5     #include "Plugin.h"
6 torben 52 #include <map>
7 torben 44
8 torben 52 struct StationInfo
9     {
10     StationInfo() {}
11 torben 323 StationInfo(int i, std::string n);
12 torben 44
13 torben 323 int id;
14 torben 52 std::string name;
15     };
16    
17 torben 44 class TogPlugin : public Plugin
18     {
19     public:
20     TogPlugin();
21    
22 torben 149 virtual void Execute(ISmsTransceiver& modem, SMS& sms);
23 torben 44
24 torben 323 int GetStationId(std::string code, std::string& stationName);
25 torben 52 std::string CreateStationList();
26 torben 44
27     virtual ~TogPlugin() {}
28 torben 52 private:
29     std::map<std::string, StationInfo> _stationInfo;
30 torben 44 };
31    
32    
33     #endif // __TOGPLUGIN_H__

  ViewVC Help
Powered by ViewVC 1.1.20