/[projects]/smsdaemon/SmsDaemon.cpp
ViewVC logotype

Diff of /smsdaemon/SmsDaemon.cpp

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

revision 158 by torben, Mon Dec 8 21:49:49 2008 UTC revision 205 by torben, Fri Dec 19 22:29:25 2008 UTC
# Line 52  void SmsDaemon::CheckSms() Line 52  void SmsDaemon::CheckSms()
52          for (unsigned int i=0; i<sms.size(); ++i)          for (unsigned int i=0; i<sms.size(); ++i)
53          {          {
54                  string cmd = sms[i].ExtractCommand();                  string cmd = sms[i].ExtractCommand();
55                            
56                  cmd = Util::str_tolower(cmd);                  cmd = Util::str_tolower(cmd);
57    
58                  Plugin* pl = manager->GetPlugin(cmd);                  Plugin* pl = manager->GetPlugin(cmd);
# Line 68  void SmsDaemon::CheckSms() Line 68  void SmsDaemon::CheckSms()
68                          _modem.SendSms(sms[i].GetSender(), "Unknown command!", false);                          _modem.SendSms(sms[i].GetSender(), "Unknown command!", false);
69                  }                  }
70    
                 _modem.DeleteSms(sms[i].GetIndex());  
71                  cmn->smsCounter.incomming++;                  cmn->smsCounter.incomming++;
72          }          }
73  }  }
# Line 117  void SmsDaemon::Start() Line 116  void SmsDaemon::Start()
116          Logger::logMessage("SMS daemon started");          Logger::logMessage("SMS daemon started");
117    
118          _modem.DeleteAllSms();          _modem.DeleteAllSms();
119            
120          try          try
121          {          {
122                  MainLoop();                  MainLoop();
# Line 131  void SmsDaemon::Start() Line 130  void SmsDaemon::Start()
130                  Logger::logMessage( "Caught unknown exception" );                  Logger::logMessage( "Caught unknown exception" );
131          }          }
132    
133            cmn->GetPluginManager()->DestroyPlugins();
134    
135          Logger::logMessage( cmn->getStatusMessage() );          Logger::logMessage( cmn->getStatusMessage() );
136  }  }

Legend:
Removed from v.158  
changed lines
  Added in v.205

  ViewVC Help
Powered by ViewVC 1.1.20