Parent Directory | Revision Log
Refactored some of the main.cpp code into SmsDaemon class.
1 | |
2 | #include "GsmModem.h" |
3 | |
4 | #include "Sms.h" |
5 | |
6 | |
7 | |
8 | class SmsDaemon |
9 | { |
10 | public: |
11 | SmsDaemon(GsmModem& modem) |
12 | : _modem(modem) {} |
13 | |
14 | |
15 | void Start(); |
16 | private: |
17 | |
18 | void CreateLogMessage(SMS& sms,bool hasPlugin); |
19 | |
20 | void CheckSms(); |
21 | |
22 | void MainLoop(); |
23 | |
24 | GsmModem& _modem; |
25 | }; |
ViewVC Help | |
Powered by ViewVC 1.1.20 |