Audacity 3.2.0
|
Functions | |
std::mutex & | GetResponsesMutex () |
std::vector< std::shared_ptr< audacity::network_manager::IResponse > > & | GetPendingRequests () |
void | RemovePendingRequest (audacity::network_manager::IResponse *request) |
void | PerformProjectGetRequest (OAuthService &oAuthService, std::string url, std::function< void(ResponseResult)> dataCallback) |
void | GetProjectInfo (OAuthService &oAuthService, const ServiceConfig &serviceConfig, std::string projectId, std::function< void(sync::ProjectInfo, ResponseResult)> callback) |
void | GetSnapshotInfo (OAuthService &oAuthService, const ServiceConfig &serviceConfig, std::string projectId, std::string snapshotId, std::function< void(sync::SnapshotInfo, ResponseResult result)> callback) |
void | GetSnapshotInfo (OAuthService &oAuthService, const ServiceConfig &serviceConfig, std::string projectId, std::string snapshotId, std::function< void(sync::ProjectInfo, sync::SnapshotInfo, ResponseResult result)> callback) |
bool | HasAutosave (const std::string &path) |
bool | DropAutosave (const std::string &path) |
bool audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::DropAutosave | ( | const std::string & | path | ) |
Definition at line 257 of file CloudSyncService.cpp.
Referenced by audacity::cloud::audiocom::CloudSyncService::SyncCloudSnapshot().
std::vector< std::shared_ptr< audacity::network_manager::IResponse > > & audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::GetPendingRequests | ( | ) |
Definition at line 53 of file CloudSyncService.cpp.
Referenced by PerformProjectGetRequest(), and RemovePendingRequest().
void audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::GetProjectInfo | ( | OAuthService & | oAuthService, |
const ServiceConfig & | serviceConfig, | ||
std::string | projectId, | ||
std::function< void(sync::ProjectInfo, ResponseResult)> | callback | ||
) |
Definition at line 117 of file CloudSyncService.cpp.
References audacity::cloud::audiocom::ResponseResult::Content, audacity::cloud::audiocom::sync::DeserializeProjectInfo(), audacity::cloud::audiocom::ServiceConfig::GetProjectInfoUrl(), PerformProjectGetRequest(), and audacity::cloud::audiocom::UnexpectedResponse.
Referenced by audacity::cloud::audiocom::CloudSyncService::GetHeadSnapshotID(), GetSnapshotInfo(), and audacity::cloud::audiocom::CloudSyncService::SyncProject().
std::mutex & audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::GetResponsesMutex | ( | ) |
Definition at line 46 of file CloudSyncService.cpp.
Referenced by PerformProjectGetRequest(), and RemovePendingRequest().
void audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::GetSnapshotInfo | ( | OAuthService & | oAuthService, |
const ServiceConfig & | serviceConfig, | ||
std::string | projectId, | ||
std::string | snapshotId, | ||
std::function< void(sync::ProjectInfo, sync::SnapshotInfo, ResponseResult result)> | callback | ||
) |
Definition at line 179 of file CloudSyncService.cpp.
References audacity::cloud::audiocom::ResponseResult::Code, GetProjectInfo(), GetSnapshotInfo(), audacity::cloud::audiocom::sync::ProjectInfo::HeadSnapshot, audacity::cloud::audiocom::sync::SnapshotInfo::Id, audacity::cloud::audiocom::sync::ProjectInfo::LastSyncedSnapshotId, and audacity::cloud::audiocom::sync::SnapshotInfo::Synced.
Referenced by GetSnapshotInfo(), and audacity::cloud::audiocom::CloudSyncService::OpenFromCloud().
void audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::GetSnapshotInfo | ( | OAuthService & | oAuthService, |
const ServiceConfig & | serviceConfig, | ||
std::string | projectId, | ||
std::string | snapshotId, | ||
std::function< void(sync::SnapshotInfo, ResponseResult result)> | callback | ||
) |
Definition at line 148 of file CloudSyncService.cpp.
References audacity::cloud::audiocom::ResponseResult::Content, audacity::cloud::audiocom::sync::DeserializeSnapshotInfo(), audacity::cloud::audiocom::ServiceConfig::GetSnapshotInfoUrl(), PerformProjectGetRequest(), and audacity::cloud::audiocom::UnexpectedResponse.
bool audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::HasAutosave | ( | const std::string & | path | ) |
Definition at line 227 of file CloudSyncService.cpp.
Referenced by audacity::cloud::audiocom::CloudSyncService::SyncCloudSnapshot().
void audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::PerformProjectGetRequest | ( | OAuthService & | oAuthService, |
std::string | url, | ||
std::function< void(ResponseResult)> | dataCallback | ||
) |
Definition at line 74 of file CloudSyncService.cpp.
References audacity::network_manager::common_headers::Accept, audacity::network_manager::common_content_types::ApplicationJson, BasicUI::CallAfter(), audacity::network_manager::common_headers::ContentType, audacity::network_manager::NetworkManager::doGet(), audacity::network_manager::NetworkManager::GetInstance(), GetPendingRequests(), audacity::cloud::audiocom::GetResponseResult(), GetResponsesMutex(), audacity::cloud::audiocom::OAuthService::HasAccessToken(), RemovePendingRequest(), audacity::cloud::audiocom::SetCommonHeaders(), and audacity::cloud::audiocom::Unauthorized.
Referenced by GetProjectInfo(), and GetSnapshotInfo().
void audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::RemovePendingRequest | ( | audacity::network_manager::IResponse * | request | ) |
Definition at line 61 of file CloudSyncService.cpp.
References GetPendingRequests(), and GetResponsesMutex().
Referenced by PerformProjectGetRequest().