Parent Directory | Revision Log
Added basic infra structure for an embedded http engine
1 | #ifndef __SMSDAEMON_H__ |
2 | #define __SMSDAEMON_H__ |
3 | |
4 | #include "ISmsTransceiver.h" |
5 | |
6 | |
7 | #include <time.h> |
8 | #include <sys/time.h> |
9 | |
10 | class SMS; |
11 | class EmbeddedHttp; |
12 | |
13 | class SmsDaemon |
14 | { |
15 | public: |
16 | SmsDaemon(ISmsTransceiver& modem) |
17 | : _modem(modem) {} |
18 | |
19 | |
20 | void Start(); |
21 | private: |
22 | |
23 | void CreateLogMessage(SMS& sms,bool hasPlugin); |
24 | |
25 | void CheckSms(); |
26 | |
27 | void MainLoop(); |
28 | |
29 | void ReloadConfig(); |
30 | |
31 | ISmsTransceiver& _modem; |
32 | timeval _lastSmsCheck; |
33 | EmbeddedHttp* embeddedHttp; |
34 | }; |
35 | |
36 | |
37 | #endif // __SMSDAEMON_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |