/[projects]/smsdaemon/tasks/SpamTask.h
ViewVC logotype

Contents of /smsdaemon/tasks/SpamTask.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 678 - (show annotations) (download)
Tue Apr 27 21:06:53 2010 UTC (14 years ago) by torben
File MIME type: text/plain
File size: 678 byte(s)
undo previous unintentional commit
1 #ifndef __SPAMTASK_H__
2 #define __SPAMTASK_H__
3
4 #include <string>
5 #include "Task.h"
6
7
8 class SpamTask : public Task
9 {
10 public:
11 SpamTask();
12 virtual ~SpamTask() {}
13
14 virtual void ExecuteTask(ISmsTransceiver& modem);
15
16
17 void SetDestination(std::string& destination)
18 {
19 _destination = destination;
20 }
21 void SetNumber(int number)
22 {
23 _number = number;
24 }
25 void SetInterval(int interval)
26 {
27 _interval = (interval*60); //recalculate from minutes to seconds
28 }
29 void SetMessage(std::string& message)
30 {
31 _message = message;
32 }
33 private:
34
35 std::string _destination;
36 int _number;
37 int _interval;
38 std::string _message;
39
40 int _counter;
41 int _lastsent;
42
43
44 };
45
46
47 #endif // __SPAMTASK_H__

  ViewVC Help
Powered by ViewVC 1.1.20