view include/net.h @ 15:c262e17de9b1

db download skip-mode.
author pyon@macmini
date Sat, 08 Jun 2019 15:50:59 +0900
parents f5ffc34f045a
children b651aa41b9d4
line wrap: on
line source

// Filename   : net.h
// Last Change: 2019-05-24 金 16:03:16.
//

#ifndef __NET_H__
#define __NET_H__

#include <wx/msgdlg.h> 
#include <wx/wfstream.h>
#include <wx/protocol/http.h>

class RsHttp {
	private:
		wxString m_server;
		int      m_port;

	public:
		RsHttp();
		~RsHttp();

		void SetServer( wxString server, int port ) { m_server = server; m_port = port; };
		bool Get( wxString url, wxString file );
		bool GetDB( bool a, bool h, bool i);
		int  GetImagesSize( wxString hhs, wxString date );
		void GetImages( wxString hhs, wxString date, wxString flag );
};

#endif //__NET_H__