blob: 5854738b054ca0e932a19763c2f4ccdacd7e2e63 (
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
|
#ifndef __WINHTTP_FETCHER_H
#define __WINHTTP_FETCHER_H
#include "Fetcher.hpp"
#include "ModuleRegistry.hpp"
#define WIN32_MEAN_AND_LEAN
#include <windows.h>
#include <winhttp.h>
class WinHttpFetcher : public Fetcher
{
public:
WinHttpFetcher( );
virtual ~WinHttpFetcher( );
virtual RewindInputStream *fetch( const URL url );
HINTERNET &session( ) { return m_session; }
private:
HINTERNET m_session;
};
DECLARE_MODULE( Fetcher )
#endif
|