summaryrefslogtreecommitdiff
path: root/project2/xslPreFetch.h
blob: c9e6a9a2a930fad49c4ca4e9d8ef080f3bde7f64 (plain)
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
29
30
#ifndef XSLPREFETCH_H
#define XSLPREFETCH_H

#include "xslRowsCache.h"
#include "curlHelper.h"
#include "view.h"
#include "task.h"
#include <libxml++/nodes/element.h>

/// Project2 component to queue up CURL objects to be downloaded
class XslPreFetch : public View, public Task, XslRowsCache, CurlHelper {
	public:
		XslPreFetch(const xmlpp::Element * p);
		~XslPreFetch();

		void execute(const Presenter*) const;
		void execute() const;
		void loadComplete(const CommonObjects *);

		const bool html;
		const bool warnings;
		const Variable encoding;

		CurlHandle::Ptr newCurl() const;
		bool asHtml() const;
		bool withWarnings() const;
};

#endif