/* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. */

#pragma once
#include <wininet.h>

#define BUFFER_SIZE	1024576		// Buffer size to cache HTTP data. 

class DicomService
{
public:
	DicomService();  
	~DicomService();
	
	// Download DICOMs from HTTP server.
	int Download(DICOM_DBS *dbs);

private:
	HINTERNET m_openHandle;            // Handle to open HTTP.
	HINTERNET m_connHandle;            // Handle to connect HTTP.
	HINTERNET m_resHandle;             // Handle to receive HTTP data.
	char *m_buffer;                    // Buffer to cache HTTP data.
};
