summaryrefslogtreecommitdiff
path: root/project2/xslPreFetch.h
blob: 000166d6225afc5bee2cae6e549a0302332d101b (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 "noOutputExecute.h"
#include <libxml++/nodes/element.h>

/// Project2 component to queue up CURL objects to be downloaded
class XslPreFetch : public View, public NoOutputExecute, 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