/[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 195 by torben, Mon Dec 15 09:27:56 2008 UTC revision 196 by torben, Thu Dec 18 06:53:29 2008 UTC
# Line 21  StationInfo::StationInfo(std::string c, Line 21  StationInfo::StationInfo(std::string c,
21    
22    
23  TogPlugin::TogPlugin()  TogPlugin::TogPlugin()
24    : Plugin("tog", "Henter tog info fra bane.dk")                  : Plugin("tog", "Henter tog info fra bane.dk")
25  {  {
26          _stationInfo["ar"] = StationInfo("AR","Århus");          _stationInfo["ar"] = StationInfo("AR","Århus");
27          _stationInfo["la"] = StationInfo("LG","Langå");          _stationInfo["la"] = StationInfo("LG","Langå");
# Line 71  void TogPlugin::Execute(ISmsTransceiver& Line 71  void TogPlugin::Execute(ISmsTransceiver&
71          if (data == "")          if (data == "")
72          {          {
73                  modem.SendSms(sms.GetSender(), "Usage: tog <stationskode>\ntog list - liste over stationer", false);                  modem.SendSms(sms.GetSender(), "Usage: tog <stationskode>\ntog list - liste over stationer", false);
74                  return;                  return;
75          }          }
76    
77          if (data == "list")          if (data == "list")
# Line 94  void TogPlugin::Execute(ISmsTransceiver& Line 94  void TogPlugin::Execute(ISmsTransceiver&
94          {          {
95                  infos = GetTrainInfo( code , "" );                  infos = GetTrainInfo( code , "" );
96          }          }
97          catch(std::exception& e)          catch (std::exception& e)
98          {          {
99                  modem.SendSms(sms.GetSender(), e.what(), false );                  modem.SendSms(sms.GetSender(), e.what(), false );
100                  return;                  return;

Legend:
Removed from v.195  
changed lines
  Added in v.196

  ViewVC Help
Powered by ViewVC 1.1.20