Audacity 3.2.0
|
#include <NetworkManager.h>
Public Member Functions | |
ResponsePtr | doGet (const Request &request) |
ResponsePtr | doHead (const Request &request) |
ResponsePtr | doDelete (const Request &request) |
ResponsePtr | doPost (const Request &request, const void *data, size_t size) |
ResponsePtr | doPost (const Request &request, RequestPayloadStreamPtr payloadStream) |
ResponsePtr | doPost (const Request &request, std::unique_ptr< MultipartData > form) |
ResponsePtr | doPut (const Request &request, const void *data, size_t size) |
ResponsePtr | doPut (const Request &request, RequestPayloadStreamPtr payloadStream) |
ResponsePtr | doPut (const Request &request, std::unique_ptr< MultipartData > form) |
ResponsePtr | doPatch (const Request &request, const void *data, size_t size) |
ResponsePtr | doPatch (const Request &request, RequestPayloadStreamPtr payloadStream) |
void | setProxy (const std::string &proxy) |
Static Public Member Functions | |
static NetworkManager & | GetInstance () |
static void | Terminate () |
Private Member Functions | |
NetworkManager () | |
~NetworkManager () | |
Private Attributes | |
std::unique_ptr< IResponseFactory > | mResponseFactory |
Definition at line 33 of file NetworkManager.h.
|
private |
Definition at line 32 of file NetworkManager.cpp.
References mResponseFactory.
|
private |
Definition at line 37 of file NetworkManager.cpp.
ResponsePtr NetworkManager::doDelete | ( | const Request & | request | ) |
Definition at line 62 of file NetworkManager.cpp.
References audacity::network_manager::Delete, and mResponseFactory.
Referenced by audacity::cloud::audiocom::sync::LocalProjectSnapshot::DeleteSnapshot(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::DiscardResult(), and audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleS3UploadCompleted().
ResponsePtr NetworkManager::doGet | ( | const Request & | request | ) |
Definition at line 52 of file NetworkManager.cpp.
References audacity::network_manager::Get, and mResponseFactory.
Referenced by audacity::cloud::audiocom::UserService::DownloadAvatar(), audacity::cloud::audiocom::sync::RemoteProjectSnapshot::DownloadBlob(), UpdateManager::GetUpdates(), audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::PerformProjectGetRequest(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::ResumedSnaphotUploadOperation::RefreshUrls(), and audacity::cloud::audiocom::UserService::UpdateUserData().
ResponsePtr NetworkManager::doHead | ( | const Request & | request | ) |
Definition at line 57 of file NetworkManager.cpp.
References audacity::network_manager::Head, and mResponseFactory.
ResponsePtr NetworkManager::doPatch | ( | const Request & | request, |
const void * | data, | ||
size_t | size | ||
) |
Definition at line 106 of file NetworkManager.cpp.
References audacity::network_manager::CreateRequestPayloadStream(), mResponseFactory, audacity::network_manager::Patch, and size.
Referenced by audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleUploadProgress().
ResponsePtr NetworkManager::doPatch | ( | const Request & | request, |
RequestPayloadStreamPtr | payloadStream | ||
) |
Definition at line 113 of file NetworkManager.cpp.
References mResponseFactory, and audacity::network_manager::Patch.
ResponsePtr NetworkManager::doPost | ( | const Request & | request, |
const void * | data, | ||
size_t | size | ||
) |
Definition at line 67 of file NetworkManager.cpp.
References audacity::network_manager::CreateRequestPayloadStream(), mResponseFactory, audacity::network_manager::Post, and size.
Referenced by audacity::cloud::audiocom::OAuthService::Authorize(), audacity::cloud::audiocom::sync::DataUploader::UploadOperation::ConfirmUpload(), audacity::cloud::audiocom::OAuthService::DoAuthorise(), audacity::cloud::audiocom::sync::DataUploader::UploadOperation::FailUpload(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleS3UploadCompleted(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleUploadPolicy(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::InitiateUpload(), audacity::cloud::audiocom::sync::LocalProjectSnapshot::MarkSnapshotSynced(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::ResumedSnaphotUploadOperation::MarkSnapshotSynced(), audacity::cloud::audiocom::OAuthService::Register(), audacity::sentry::Report::ReportImpl::Send(), and audacity::cloud::audiocom::sync::LocalProjectSnapshot::UpdateProjectSnapshot().
ResponsePtr NetworkManager::doPost | ( | const Request & | request, |
RequestPayloadStreamPtr | payloadStream | ||
) |
Definition at line 73 of file NetworkManager.cpp.
References mResponseFactory, and audacity::network_manager::Post.
ResponsePtr NetworkManager::doPost | ( | const Request & | request, |
std::unique_ptr< MultipartData > | form | ||
) |
Definition at line 80 of file NetworkManager.cpp.
References mResponseFactory, and audacity::network_manager::Post.
ResponsePtr NetworkManager::doPut | ( | const Request & | request, |
const void * | data, | ||
size_t | size | ||
) |
Definition at line 86 of file NetworkManager.cpp.
References audacity::network_manager::CreateRequestPayloadStream(), mResponseFactory, audacity::network_manager::Put, and size.
Referenced by audacity::cloud::audiocom::sync::DataUploader::UploadOperation::PerformUpload().
ResponsePtr NetworkManager::doPut | ( | const Request & | request, |
RequestPayloadStreamPtr | payloadStream | ||
) |
Definition at line 92 of file NetworkManager.cpp.
References mResponseFactory, and audacity::network_manager::Put.
ResponsePtr NetworkManager::doPut | ( | const Request & | request, |
std::unique_ptr< MultipartData > | form | ||
) |
Definition at line 99 of file NetworkManager.cpp.
References mResponseFactory, and audacity::network_manager::Put.
|
static |
Definition at line 40 of file NetworkManager.cpp.
Referenced by audacity::cloud::audiocom::OAuthService::Authorize(), audacity::cloud::audiocom::sync::DataUploader::UploadOperation::ConfirmUpload(), audacity::cloud::audiocom::sync::LocalProjectSnapshot::DeleteSnapshot(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::DiscardResult(), audacity::cloud::audiocom::OAuthService::DoAuthorise(), audacity::cloud::audiocom::UserService::DownloadAvatar(), audacity::cloud::audiocom::sync::RemoteProjectSnapshot::DownloadBlob(), audacity::cloud::audiocom::sync::DataUploader::UploadOperation::FailUpload(), UpdateManager::GetUpdates(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleS3UploadCompleted(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleUploadPolicy(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleUploadProgress(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::InitiateUpload(), audacity::cloud::audiocom::sync::LocalProjectSnapshot::MarkSnapshotSynced(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::ResumedSnaphotUploadOperation::MarkSnapshotSynced(), AudacityApp::OnExit(), audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::PerformProjectGetRequest(), audacity::cloud::audiocom::sync::DataUploader::UploadOperation::PerformUpload(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::ResumedSnaphotUploadOperation::RefreshUrls(), audacity::cloud::audiocom::OAuthService::Register(), audacity::sentry::Report::ReportImpl::Send(), Terminate(), audacity::cloud::audiocom::sync::LocalProjectSnapshot::UpdateProjectSnapshot(), and audacity::cloud::audiocom::UserService::UpdateUserData().
void NetworkManager::setProxy | ( | const std::string & | proxy | ) |
Definition at line 120 of file NetworkManager.cpp.
References mResponseFactory.
|
static |
Definition at line 47 of file NetworkManager.cpp.
References GetInstance(), and mResponseFactory.
Referenced by AudacityApp::OnExit().
|
private |
Definition at line 59 of file NetworkManager.h.
Referenced by doDelete(), doGet(), doHead(), doPatch(), doPost(), doPut(), NetworkManager(), setProxy(), and Terminate().