52 #ifndef __PCL_NetworkTransfer_h
53 #define __PCL_NetworkTransfer_h
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
239 void SetSSL(
bool useSSL =
true,
bool forceSSL =
false,
bool verifyPeer =
true,
bool verifyHost =
true );
414 operator bool()
const
416 return PerformedOK();
607 void* CloneHandle()
const override;
609 friend class NetworkTransferEventDispatcher;
Client-side interface to a PixInsight Control object.
Synchronous network transfers.
String ErrorInformation() const
void SetConnectionTimeout(int seconds)
void EnsureUnique() override
bool POST(const String &fields)
~NetworkTransfer() override
void SetSSL(bool useSSL=true, bool forceSSL=false, bool verifyPeer=true, bool verifyHost=true)
double TotalSpeed() const
void SetURL(const String &url, const String &userName=String(), const String &userPassword=String())
void SetCustomHTTPHeaders(const String &nlsHeaders)
static NetworkTransfer & Null()
NetworkTransfer(const NetworkTransfer &)=delete
String CustomHTTPHeaders() const
bool SMTP(const String &mailFrom, const StringList &mailRecipients)
void SetProxyURL(const String &url, const String &userName=String(), const String &userPassword=String())
fsize_type BytesTransferred() const
String ContentType() const
bool Upload(fsize_type uploadSize=0)
Root base class for all user interface objects.
bool(Control::*)(NetworkTransfer &sender, const void *buffer, fsize_type size) download_event_handler
void OnUploadDataRequested(upload_event_handler handler, Control &receiver)
bool(Control::*)(NetworkTransfer &sender, fsize_type downloadTotal, fsize_type downloadCurrent, fsize_type uploadTotal, fsize_type uploadCurrent) progress_event_handler
fsize_type(Control::*)(NetworkTransfer &sender, void *buffer, fsize_type maxSize) upload_event_handler
void OnTransferProgress(progress_event_handler handler, Control &receiver)
void OnDownloadDataAvailable(download_event_handler handler, Control &receiver)