aboutsummaryrefslogtreecommitdiff
path: root/include/reloadthread.h
blob: 3ff2ae9c20358edbd4f27e70c450eee74c006a37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef RELOADTHREAD_H_
#define RELOADTHREAD_H_

#include <thread.h>
#include <controller.h>
#include <configcontainer.h>

namespace newsbeuter
{

class reloadthread : public thread
{
public:
	reloadthread(controller * c, time_t wt_sec, configcontainer * cf);
	virtual ~reloadthread();
protected:
	virtual void run();
private:
	controller * ctrl;
	time_t oldtime;
	time_t waittime_sec;
	bool suppressed_first;
	configcontainer * cfg;
};

}

#endif