Audacity 3.2.0
|
Public Member Functions | |
UploadOperation (DataUploader &uploader, CancellationContextPtr cancellationContex, const UploadUrls &target, UploadData data, std::string mimeType, std::function< void(ResponseResult)> callback, std::function< void(double)> progressCallback) | |
void | PerformUpload (int retriesLeft) |
void | ConfirmUpload (int retriesLeft) |
void | FailUpload (int retriesLeft) |
void | CleanUp () |
Public Attributes | |
DataUploader & | Uploader |
UploadUrls | Target |
std::function< void(ResponseResult)> | Callback |
std::function< void(double)> | ProgressCallback |
std::string | MimeType |
UploadData | Data |
ResponseResult | CurrentResult |
CancellationContextPtr | CancelContext |
std::atomic< bool > | UploadFailed { false } |
Definition at line 36 of file DataUploader.cpp.
|
inline |
Definition at line 52 of file DataUploader.cpp.
|
inline |
Definition at line 199 of file DataUploader.cpp.
References BasicUI::CallAfter(), audacity::cloud::audiocom::sync::DataUploader::RemoveResponse(), and Uploader.
Referenced by ConfirmUpload(), and FailUpload().
|
inline |
Definition at line 128 of file DataUploader.cpp.
References Callback, CancelContext, CleanUp(), audacity::cloud::audiocom::ResponseResult::Code, ConfirmUpload(), audacity::cloud::audiocom::ConnectionFailed, CurrentResult, Data, audacity::network_manager::NetworkManager::doPost(), FailUpload(), audacity::network_manager::NetworkManager::GetInstance(), audacity::cloud::audiocom::GetResponseResult(), audacity::cloud::audiocom::sync::RetriesCount, audacity::cloud::audiocom::Success, audacity::cloud::audiocom::sync::UploadUrls::SuccessUrl, and Target.
Referenced by ConfirmUpload(), and PerformUpload().
|
inline |
Definition at line 164 of file DataUploader.cpp.
References Callback, CancelContext, CleanUp(), audacity::cloud::audiocom::ConnectionFailed, CurrentResult, Data, audacity::network_manager::NetworkManager::doPost(), FailUpload(), audacity::cloud::audiocom::sync::UploadUrls::FailUrl, audacity::network_manager::NetworkManager::GetInstance(), audacity::cloud::audiocom::GetResponseResult(), Target, and UploadFailed.
Referenced by ConfirmUpload(), FailUpload(), and PerformUpload().
|
inline |
Definition at line 67 of file DataUploader.cpp.
References CancelContext, audacity::cloud::audiocom::ResponseResult::Code, ConfirmUpload(), audacity::cloud::audiocom::ConnectionFailed, audacity::network_manager::common_headers::ContentType, audacity::network_manager::CreateRequestPayloadStream(), CurrentResult, Data, audacity::network_manager::NetworkManager::doPut(), FailUpload(), audacity::network_manager::NetworkManager::GetInstance(), audacity::cloud::audiocom::GetResponseResult(), MimeType, PerformUpload(), ProgressCallback, audacity::cloud::audiocom::sync::RetriesCount, audacity::cloud::audiocom::Success, Target, and audacity::cloud::audiocom::sync::UploadUrls::UploadUrl.
Referenced by PerformUpload().
std::function<void(ResponseResult)> audacity::cloud::audiocom::sync::DataUploader::UploadOperation::Callback |
Definition at line 41 of file DataUploader.cpp.
Referenced by ConfirmUpload(), and FailUpload().
CancellationContextPtr audacity::cloud::audiocom::sync::DataUploader::UploadOperation::CancelContext |
Definition at line 48 of file DataUploader.cpp.
Referenced by ConfirmUpload(), FailUpload(), and PerformUpload().
ResponseResult audacity::cloud::audiocom::sync::DataUploader::UploadOperation::CurrentResult |
Definition at line 47 of file DataUploader.cpp.
Referenced by ConfirmUpload(), FailUpload(), and PerformUpload().
UploadData audacity::cloud::audiocom::sync::DataUploader::UploadOperation::Data |
Definition at line 45 of file DataUploader.cpp.
Referenced by ConfirmUpload(), FailUpload(), and PerformUpload().
std::string audacity::cloud::audiocom::sync::DataUploader::UploadOperation::MimeType |
Definition at line 44 of file DataUploader.cpp.
Referenced by PerformUpload().
std::function<void(double)> audacity::cloud::audiocom::sync::DataUploader::UploadOperation::ProgressCallback |
Definition at line 42 of file DataUploader.cpp.
Referenced by PerformUpload().
UploadUrls audacity::cloud::audiocom::sync::DataUploader::UploadOperation::Target |
Definition at line 40 of file DataUploader.cpp.
Referenced by ConfirmUpload(), FailUpload(), and PerformUpload().
DataUploader& audacity::cloud::audiocom::sync::DataUploader::UploadOperation::Uploader |
Definition at line 39 of file DataUploader.cpp.
Referenced by CleanUp().
std::atomic<bool> audacity::cloud::audiocom::sync::DataUploader::UploadOperation::UploadFailed { false } |
Definition at line 50 of file DataUploader.cpp.
Referenced by FailUpload().