Parent Directory | Revision Log
Refactoring / rename: IGsmModem -> ISmsTransceiver GsmModem -> ModemTransceiver DebugGsmModem -> DebugTransceiver Move DebugTransceiver to its own files.
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 | StationInfo(std::string c, std::string n) | ||
12 | : code(c), name(n) {} | ||
13 | torben | 44 | |
14 | torben | 52 | std::string code; |
15 | std::string name; | ||
16 | }; | ||
17 | |||
18 | torben | 44 | class TogPlugin : public Plugin |
19 | { | ||
20 | public: | ||
21 | TogPlugin(); | ||
22 | |||
23 | torben | 149 | virtual void Execute(ISmsTransceiver& modem, SMS& sms); |
24 | torben | 44 | |
25 | std::string GetRealStationCode(std::string code, std::string& stationName); | ||
26 | torben | 52 | std::string CreateStationList(); |
27 | torben | 44 | |
28 | virtual ~TogPlugin() {} | ||
29 | torben | 52 | private: |
30 | std::map<std::string, StationInfo> _stationInfo; | ||
31 | torben | 44 | }; |
32 | |||
33 | |||
34 | #endif // __TOGPLUGIN_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |