Parent Directory | Revision Log
Refactor IGsmModem, in order to ease adding another sms transceiver
1 | |
2 | #include "GsmModem.h" |
3 | |
4 | #include <time.h> |
5 | #include <sys/time.h> |
6 | |
7 | class SMS; |
8 | |
9 | class SmsDaemon |
10 | { |
11 | public: |
12 | SmsDaemon(IGsmModem& modem) |
13 | : _modem(modem) {} |
14 | |
15 | |
16 | void Start(); |
17 | private: |
18 | |
19 | void CreateLogMessage(SMS& sms,bool hasPlugin); |
20 | |
21 | void CheckSms(); |
22 | |
23 | void MainLoop(); |
24 | |
25 | IGsmModem& _modem; |
26 | timeval _lastSmsCheck; |
27 | }; |
ViewVC Help | |
Powered by ViewVC 1.1.20 |