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

Diff of /smsdaemon/plugins/WeatherPlugin.cpp

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

revision 195 by torben, Wed Dec 17 23:43:26 2008 UTC revision 196 by torben, Thu Dec 18 06:53:29 2008 UTC
# Line 9  using namespace std; Line 9  using namespace std;
9  using namespace Util;  using namespace Util;
10    
11  WeatherPlugin::WeatherPlugin()  WeatherPlugin::WeatherPlugin()
12    : Plugin("vejr", "Find danish weather report on dmi.dk")                  : Plugin("vejr", "Find danish weather report on dmi.dk")
13  {  {
14  }  }
15    
# Line 19  void WeatherPlugin::Execute(ISmsTranscei Line 19  void WeatherPlugin::Execute(ISmsTranscei
19          try          try
20          {          {
21                  doc = HttpClient::GetString("http://www.dmi.dk/dmi/danmark.htm");                  doc = HttpClient::GetString("http://www.dmi.dk/dmi/danmark.htm");
22          } catch (httpexception&e ) {          }
23            catch (httpexception&e )
24            {
25                  modem.SendSms(sms.GetSender(), "could not retrieve data", true);                  modem.SendSms(sms.GetSender(), "could not retrieve data", true);
26                  return;                  return;
27          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.20