/[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 90 by torben, Mon Jun 16 10:21:02 2008 UTC revision 114 by torben, Sun Nov 2 20:14:20 2008 UTC
# 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");
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["hø"] = StationInfo("HØ","Højslev");          _stationInfo["ho"] = StationInfo("HØ","Højslev");
25          _stationInfo["sk"] = StationInfo("SK","Skive");          _stationInfo["sk"] = StationInfo("SK","Skive");
26  }  }
27    
# Line 60  void TogPlugin::Execute(IGsmModem& modem Line 61  void TogPlugin::Execute(IGsmModem& modem
61          data = Util::str_gsm2latin(data);;          data = Util::str_gsm2latin(data);;
62          data = Util::str_tolower(data);          data = Util::str_tolower(data);
63    
64            
65          if (data == "")          if (data == "")
66          {          {
67                  modem.SendSms(sms.sender, "Usage: tog <stationskode>\ntog list - liste over stationer", false);                  modem.SendSms(sms.sender, "Usage: tog <stationskode>\ntog list - liste over stationer", false);

Legend:
Removed from v.90  
changed lines
  Added in v.114

  ViewVC Help
Powered by ViewVC 1.1.20