File: SendHTTP.h

package info (click to toggle)
gentle 1.9+cvs20100605+dfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,224 kB
  • ctags: 6,214
  • sloc: cpp: 41,569; ansic: 3,978; sh: 1,420; makefile: 243
file content (33 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download | duplicates (6)
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
31
32
33
/** \file
	\brief Contains the myExternal class
*/
#ifndef _SENDHTTP_H_
#define _SENDHTTP_H_

class wxString ;
class wxProgressDialog ;

/// This class is a wrapper around HTTP GET commands
class myExternal
	{
	public :
	myExternal () ; ///< Constructor
	~myExternal () {} ; ///< Destructor
	
	int copyFile ( wxString url , wxString file , int _t = -1 ) ; ///< Copy a file from URL to local
	wxString getText ( wxString url ) ; ///< Get the text at an URL
//	virtual wxString getPostText
	
	wxProgressDialog *pd ; ///< Pointer to a process dialog
	
	private :
	int copyFileLocal ( wxString url , wxString file ) ; ///< Local file copy
	wxString getTextLocal ( wxString url ) ; ///< Local get text
	int copyFileHTTP ( wxString _url , wxString _file ) ; ///< HTTP file copy
	wxString getTextHTTP ( wxString url ) ; ///< HTTP get text
	wxString getTextFTP ( wxString server , wxString dir , wxString file ) ; ///< FTP get text
	
	int targetSize ; ///< File size, if known
	} ;    

#endif