#include <wx/protocol/protocol.h>

Public Member Functions | |
| virtual bool | Abort ()=0 |
| virtual wxString | GetContentType () |
| virtual wxProtocolError | GetError ()=0 |
| virtual wxInputStream * | GetInputStream (const wxString &path)=0 |
| bool | Reconnect () |
| virtual void | SetPassword (const wxString &user) |
| virtual void | SetUser (const wxString &user) |
| virtual bool wxProtocol::Abort | ( | ) | [pure virtual] |
Abort the current stream.
Implemented in wxFTP.
| virtual wxString wxProtocol::GetContentType | ( | ) | [virtual] |
Returns the type of the content of the last opened stream. It is a mime-type.
| virtual wxProtocolError wxProtocol::GetError | ( | ) | [pure virtual] |
| virtual wxInputStream* wxProtocol::GetInputStream | ( | const wxString & | path | ) | [pure virtual] |
Creates a new input stream on the specified path.
You can use all but seek() functionality of wxStream. Seek() isn't available on all streams. For example, HTTP or FTP streams don't deal with it. Other functions like StreamSize() and Tell() aren't available for the moment for this sort of stream. You will be notified when the EOF is reached by an error.
| bool wxProtocol::Reconnect | ( | ) |
Tries to reestablish a previous opened connection (close and renegotiate connection).
| virtual void wxProtocol::SetPassword | ( | const wxString & | user | ) | [virtual] |
Sets the authentication password. It is mainly useful when FTP is used.
Reimplemented in wxFTP.
| virtual void wxProtocol::SetUser | ( | const wxString & | user | ) | [virtual] |
Sets the authentication user. It is mainly useful when FTP is used.
Reimplemented in wxFTP.
|
[ top ] |