3 |
|
|
4 |
#include <string> |
#include <string> |
5 |
|
|
6 |
class IGsmModem; |
class ISmsTransceiver; |
7 |
|
|
8 |
/* A Task is some piece of code that must be executed regularly, no matter whether |
/* A Task is some piece of code that must be executed regularly, no matter whether |
9 |
* the daemon has received any SMS. |
* the daemon has received any SMS. |
30 |
|
|
31 |
std::string GetName() {return _name;} |
std::string GetName() {return _name;} |
32 |
|
|
33 |
virtual void ExecuteTask(IGsmModem& modem) = 0; |
virtual void ExecuteTask(ISmsTransceiver& modem) = 0; |
34 |
|
|
35 |
bool IsTemporary() { return _isTemporary; } |
bool IsTemporary() { return _isTemporary; } |
36 |
bool IsFinished() { return _isFinished; } |
bool IsFinished() { return _isFinished; } |