Subversion Repositories HomeAutomation

Rev

Rev 969 | Rev 972 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 969 Rev 971
Line 23... Line 23...
23
#define _OFFLINECHECK_H
23
#define _OFFLINECHECK_H
24
 
24
 
25
using namespace std;
25
using namespace std;
26
 
26
 
27
#include <string>
27
#include <string>
-
 
28
#include <time.h>
28
 
29
 
29
#include "../Threads/thread.h"
30
#include "../Threads/thread.h"
-
 
31
#include "../Tools/tools.h"
30
 
32
 
31
class IntervalThread : public Thread<IntervalThread>
33
class IntervalThread : public Thread<IntervalThread>
32
{
34
{
33
public:
35
public:
34
    IntervalThread() { Thread<IntervalThread>(); };
36
    IntervalThread() { Thread<IntervalThread>(); };
35
    IntervalThread(string expression, int interval, bool single);
37
    IntervalThread(unsigned int timeout);
-
 
38
 
-
 
39
    unsigned int getId() { return myId; };
36
 
40
 
37
    void run();
41
    void run();
38
 
42
 
39
private:
43
private:
40
    string myExpression;
44
    unsigned int myId;
41
    int myInterval;
45
    unsigned int myTimeout;
42
    bool mySingle;
-
 
43
};
46
};
44
 
47
 
45
#endif  /* _OFFLINECHECK_H */
48
#endif  /* _OFFLINECHECK_H */
46
 
49