summaryrefslogtreecommitdiff
path: root/include/reloadthread.h
blob: b3d585fe75d6b4e03c844ec0ae300bf6834b5af9 (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
#ifndef NEWSBOAT_RELOADTHREAD_H_
#define NEWSBOAT_RELOADTHREAD_H_

#include <thread>

#include "configcontainer.h"
#include "controller.h"

namespace newsboat {

class ReloadThread {
public:
	ReloadThread(Controller* c, ConfigContainer* cf);
	virtual ~ReloadThread();
	void operator()();

private:
	Controller* ctrl;
	time_t oldtime;
	time_t waittime_sec;
	bool suppressed_first;
	ConfigContainer* cfg;
};

} // namespace newsboat

#endif /* NEWSBOAT_RELOADTHREAD_H_ */