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

Diff of /smsdaemon/plugins/SpamPlugin.cpp

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

revision 142 by torben, Sun Dec 7 15:51:02 2008 UTC revision 158 by torben, Mon Dec 8 21:49:49 2008 UTC
# Line 1  Line 1 
1  #include "SpamPlugin.h"  #include "SpamPlugin.h"
2  #include "IGsmModem.h"  #include "ISmsTransceiver.h"
3  #include "Sms.h"  #include "Sms.h"
4    
5  #include "util.h"  #include "Util.h"
6  #include "common.h"  #include "Logger.h"
7  #include <sstream>  #include <sstream>
8  #include <stdlib.h>  #include <stdlib.h>
9    
# Line 18  SpamPlugin::SpamPlugin() Line 18  SpamPlugin::SpamPlugin()
18    
19  const string USAGE = "Usage: spam <recipient> <nr> message";  const string USAGE = "Usage: spam <recipient> <nr> message";
20    
21  void SpamPlugin::Execute(IGsmModem& modem, SMS& sms)  void SpamPlugin::Execute(ISmsTransceiver& modem, SMS& sms)
22  {  {
23          string cmd = sms.ExtractParameters();          string cmd = sms.ExtractParameters();
24    
# Line 45  void SpamPlugin::Execute(IGsmModem& mode Line 45  void SpamPlugin::Execute(IGsmModem& mode
45                    
46          ostringstream os;          ostringstream os;
47          os << "Spamming " << nr << " " << count << " times.";          os << "Spamming " << nr << " " << count << " times.";
48          Common::instance()->logMessage(os.str());          Logger::logMessage(os.str());
49    
50          string message;          string message;
51          for (unsigned i=2; i<parts.size(); ++i)          for (unsigned i=2; i<parts.size(); ++i)

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

  ViewVC Help
Powered by ViewVC 1.1.20