/[projects]/smsdaemon/SmsDaemon.h
ViewVC logotype

Contents of /smsdaemon/SmsDaemon.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 208 - (show annotations) (download)
Sun Dec 21 18:41:08 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 435 byte(s)
Enable dynamic reload of plugins/tasks when recieving a HUP signal

1 #ifndef __SMSDAEMON_H__
2 #define __SMSDAEMON_H__
3
4 #include "ISmsTransceiver.h"
5
6 #include <time.h>
7 #include <sys/time.h>
8
9 class SMS;
10
11 class SmsDaemon
12 {
13 public:
14 SmsDaemon(ISmsTransceiver& modem)
15 : _modem(modem) {}
16
17
18 void Start();
19 private:
20
21 void CreateLogMessage(SMS& sms,bool hasPlugin);
22
23 void CheckSms();
24
25 void MainLoop();
26
27 void ReloadConfig();
28
29 ISmsTransceiver& _modem;
30 timeval _lastSmsCheck;
31 };
32
33
34 #endif // __SMSDAEMON_H__

  ViewVC Help
Powered by ViewVC 1.1.20