#ifndef NEWSBOAT_QUEUEMANAGER_H_
#define NEWSBOAT_QUEUEMANAGER_H_

#include <memory>
#include <string>

namespace newsboat {

class ConfigContainer;
class ConfigPaths;
class RssFeed;

class QueueManager {
	ConfigContainer* cfg = nullptr;
	ConfigPaths* paths = nullptr;

public:
	QueueManager(ConfigContainer* cfg, ConfigPaths* paths);

	void enqueue_url(const std::string& url,
		const std::string& title,
		const time_t pubDate,
		std::shared_ptr<RssFeed> feed);

	void autoenqueue(std::shared_ptr<RssFeed> feed);

private:
	std::string generate_enqueue_filename(const std::string& url,
		const std::string& title,
		const time_t pubDate,
		std::shared_ptr<RssFeed> feed);
};

}

#endif /* NEWSBOAT_QUEUEMANAGER_H_ */


#ifndef NEWSBOAT_QUEUEMANAGER_H_
#define NEWSBOAT_QUEUEMANAGER_H_

#include <ctime>
#include <memory>
#include <string>

namespace newsboat {

class ConfigContainer;
class ConfigPaths;
class RssFeed;

class QueueManager {
	ConfigContainer* cfg = nullptr;
	ConfigPaths* paths = nullptr;

public:
	QueueManager(ConfigContainer* cfg, ConfigPaths* paths);

	void enqueue_url(const std::string& url,
		const std::string& title,
		const time_t pubDate,
		std::shared_ptr<RssFeed> feed);

	void autoenqueue(std::shared_ptr<RssFeed> feed);

private:
	std::string generate_enqueue_filename(const std::string& url,
		const std::string& title,
		const time_t pubDate,
		std::shared_ptr<RssFeed> feed);
};

}

#endif /* NEWSBOAT_QUEUEMANAGER_H_ */


Add missing header and fix build on FreeBSD
Add missing header and fix build on FreeBSD

In file included from src/queuemanager.cpp:1:
include/queuemanager.h:22:9: error: unknown type name 'time_t'
                const time_t pubDate,
                      ^

Signed-off-by: Tobias Kortkamp <95411b5f3468a822bfbad7edd660475780680510@FreeBSD.org>
