/[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 109 by torben, Sun Aug 24 17:57:04 2008 UTC revision 135 by torben, Sun Dec 7 08:58:15 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");
# Line 50  string TogPlugin::CreateStationList() Line 51  string TogPlugin::CreateStationList()
51                  os << (*it).first << " - " << (*it).second.name << "\n";                  os << (*it).first << " - " << (*it).second.name << "\n";
52          }          }
53    
54          return Util::str_latin2gsm(os.str());          return os.str();
55  }  }
56    
57  void TogPlugin::Execute(IGsmModem& modem, SMS& sms)  void TogPlugin::Execute(IGsmModem& modem, SMS& sms)
# Line 105  void TogPlugin::Execute(IGsmModem& modem Line 106  void TogPlugin::Execute(IGsmModem& modem
106                  os << train.note << "\n";                  os << train.note << "\n";
107          }          }
108    
109          modem.SendSms(sms.sender, Util::str_latin2gsm(os.str()), true);          modem.SendSms(sms.sender, os.str(), true);
110    
111    
112    

Legend:
Removed from v.109  
changed lines
  Added in v.135

  ViewVC Help
Powered by ViewVC 1.1.20