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

Diff of /smsdaemon/plugins/TogPlugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 148 by torben, Sun Dec 7 15:51:02 2008 UTC revision 149 by torben, Sun Dec 7 20:58:41 2008 UTC
# Line 1  Line 1 
1  #include "TogPlugin.h"  #include "TogPlugin.h"
2  #include "IGsmModem.h"  #include "ISmsTransceiver.h"
3  #include "Sms.h"  #include "Sms.h"
4    
5  #include "TrainInfo.h"  #include "TrainInfo.h"
# Line 16  using namespace std; Line 16  using namespace std;
16  TogPlugin::TogPlugin()  TogPlugin::TogPlugin()
17    : Plugin("tog", "Henter tog info fra bane.dk")    : Plugin("tog", "Henter tog info fra bane.dk")
18  {  {
19          _stationInfo["ar"] = StationInfo("AR","Århus");          _stationInfo["ar"] = StationInfo("AR","�rhus");
20          _stationInfo["la"] = StationInfo("LG","Langå");          _stationInfo["la"] = StationInfo("LG","Lang�");
21          _stationInfo["ul"] = StationInfo("UP","Ulstrup");          _stationInfo["ul"] = StationInfo("UP","Ulstrup");
22          _stationInfo["bj"] = StationInfo("BJ","Bjerringbro");          _stationInfo["bj"] = StationInfo("BJ","Bjerringbro");
23          _stationInfo["vi"] = StationInfo("VG","Viborg");          _stationInfo["vi"] = StationInfo("VG","Viborg");
24          _stationInfo["ho"] = StationInfo("HØ","Højslev");          _stationInfo["ho"] = StationInfo("H�","H�jslev");
25          _stationInfo["sk"] = StationInfo("SK","Skive");          _stationInfo["sk"] = StationInfo("SK","Skive");
26  }  }
27    
# Line 54  string TogPlugin::CreateStationList() Line 54  string TogPlugin::CreateStationList()
54          return os.str();          return os.str();
55  }  }
56    
57  void TogPlugin::Execute(IGsmModem& modem, SMS& sms)  void TogPlugin::Execute(ISmsTransceiver& modem, SMS& sms)
58  {  {
59          string data = sms.ExtractParameters();          string data = sms.ExtractParameters();
60    

Legend:
Removed from v.148  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.20