Audacity 3.2.0
|
Namespaces | |
namespace | anonymous_namespace{AudioComDialogBase.cpp} |
namespace | anonymous_namespace{CloudLocationDialog.cpp} |
namespace | anonymous_namespace{CloudProjectOpenUtils.cpp} |
namespace | anonymous_namespace{CloudProjectsDatabase.cpp} |
namespace | anonymous_namespace{CloudSyncDTO.cpp} |
namespace | anonymous_namespace{CloudSyncHousekeeper.cpp} |
namespace | anonymous_namespace{CloudSyncStatusField.cpp} |
namespace | anonymous_namespace{MixdownUploader.cpp} |
namespace | anonymous_namespace{ProjectCloudExtension.cpp} |
namespace | anonymous_namespace{ProjectCloudUIExtension.cpp} |
namespace | anonymous_namespace{ProjectsListDialog.cpp} |
namespace | anonymous_namespace{ProjectVersionConflictDialog.cpp} |
namespace | anonymous_namespace{RemoteProjectSnapshot.cpp} |
namespace | anonymous_namespace{ResumedSnaphotUploadOperation.cpp} |
namespace | anonymous_namespace{SyncFailedDialog.cpp} |
namespace | anonymous_namespace{WavPackCompressor.cpp} |
Typedefs | |
using | ProgressCallback = std::function< bool(double)> |
using | GetProjectsResult = std::variant< sync::PaginatedProjectsResponse, ResponseResult > |
using | GetHeadSnapshotIDResult = std::variant< std::string, ResponseResult > |
using | BlockID = int64_t |
using | BlockHash = std::string |
using | SampleBlockHashes = std::vector< BlockHash > |
using | UploadData = std::variant< std::vector< uint8_t >, std::string > |
using | MissingBlocksUploadProgressCallback = std::function< void(const MissingBlocksUploadProgress &, const LockedBlock &, ResponseResult blockResponseResult)> |
using | MixdownProgressCallback = std::function< void(double progress)> |
using | RemoteProjectSnapshotStateCallback = std::function< void(RemoteProjectSnapshotState)> |
using | CreateSnapshotCallback = std::function< void(const CreateSnapshotResponse &)> |
using | DialogIdentifier = TaggedIdentifier< DialogIdentifierTag > |
using | DialogButtonIdentifier = TaggedIdentifier< DialogButtonIdentifierTag > |
Enumerations | |
enum class | MixdownState : uint32_t { Exporting , WaitingForUrls , Uploading , Succeeded , Cancelled , Failed , Empty } |
enum class | ProjectSyncStatus { Local , Unsynced , Synced , Failed , Syncing } |
enum class | UploadMode { Normal , CreateNew , ForceOverwrite } |
enum class | CloudLocationMode { Ask , Local , Cloud } |
enum class | LocationDialogResult { Local , Cloud , Cancel } |
enum class | LocationDialogType { Save , Export } |
enum class | ProjectVersionConflictDialogMode { Save , OpenDirty , OpenActive } |
Functions | |
std::string | Serialize (const ProjectForm &form) |
std::optional< ProjectSyncState > | DeserializeProjectSyncState (const std::string &data) |
std::optional< CreateSnapshotResponse > | DeserializeCreateSnapshotResponse (const std::string &data) |
std::optional< PaginatedProjectsResponse > | DeserializePaginatedProjectsResponse (const std::string &data) |
std::optional< ProjectInfo > | DeserializeProjectInfo (const std::string &data) |
std::optional< SnapshotInfo > | DeserializeSnapshotInfo (const std::string &data) |
wxString | MakeSafeProjectPath (const wxString &rootDir, const wxString &projectName) |
std::string | Serialize (NetworkStats stats) |
CLOUD_AUDIOCOM_API CloudSyncError | DeduceUploadError (audacity::network_manager::IResponse &response) |
CloudSyncError | MakeClientFailure (const TranslatableString &message) |
CloudSyncError | MakeClientFailure (const std::string &message) |
CloudSyncError | MakeClientFailure (const char *message) |
CloudSyncError::ErrorType | DeduceError (SyncResultCode code) |
void | ResumeProjectUpload (ProjectCloudExtension &projectCloudExtension, std::function< void(AudiocomTrace)> onBeforeUploadStarts) |
std::vector< uint8_t > | CompressBlock (const LockedBlock &block) |
std::optional< DecompressedBlock > | DecompressBlock (const void *data, const std::size_t size) |
void | SaveToCloud (AudacityProject &project, UploadMode mode, CreateSnapshotCallback snapshotCallback) |
bool | ResaveLocally (AudacityProject &project) |
bool | HandleMixdownLink (std::string_view uri) |
void | UploadMixdown (AudacityProject &project, std::function< void(AudacityProject &, MixdownState)> onComplete) |
AudacityProject * | GetPotentialTarget () |
AudacityProject * | GetOpenedProject (std::string_view projectId) |
AudacityProject * | OpenProjectFromCloud (AudacityProject *potentialTarget, std::string_view projectId, std::string_view snapshotId, CloudSyncService::SyncMode mode) |
AudacityProject * | OpenProjectFromCloud (AudacityProject *potentialTarget, std::string_view projectId, std::string_view snapshotId, bool forceNew) |
bool | SyncCloudProject (AudacityProject &project, std::string_view path, AudiocomTrace trace, bool force) |
bool | HandleProjectLink (std::string_view uri) |
void | ReopenProject (AudacityProject &project) |
void | ShowDialogOn (std::function< bool()> condition, std::function< void()> dialogFactory) |
Variables | |
constexpr int | RetriesCount { 3 } |
constexpr auto | UNASSIGNED_PROJECT_ID = -1 |
EnumSetting< CloudLocationMode > | SaveLocationMode |
EnumSetting< CloudLocationMode > | ExportLocationMode |
BoolSetting | MixdownDialogShown |
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
CloudProjectSnapshot.cpp
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
ResumedSnaphotUploadOperation.cpp
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
CloudProjectPropertiesDialog.cpp
Dmitry Vedenko
Audacity: A Digital Audio Editor
UploadCancelledDialog.cpp
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
ProjectVersionConflictDialog.cpp
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
ProjectVersionConflictDialog.h
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
UploadCancelledDialog.h
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
using audacity::cloud::audiocom::sync::BlockHash = typedef std::string |
Definition at line 33 of file CloudSyncDTO.h.
using audacity::cloud::audiocom::sync::BlockID = typedef int64_t |
Definition at line 32 of file CloudSyncDTO.h.
using audacity::cloud::audiocom::sync::CreateSnapshotCallback = typedef std::function<void(const CreateSnapshotResponse&)> |
Definition at line 30 of file CloudProjectFileIOExtensions.h.
using audacity::cloud::audiocom::sync::DialogButtonIdentifier = typedef TaggedIdentifier<DialogButtonIdentifierTag> |
Definition at line 35 of file AudioComDialogBase.h.
using audacity::cloud::audiocom::sync::DialogIdentifier = typedef TaggedIdentifier<DialogIdentifierTag> |
Definition at line 30 of file AudioComDialogBase.h.
using audacity::cloud::audiocom::sync::GetHeadSnapshotIDResult = typedef std::variant<std::string, ResponseResult> |
Definition at line 58 of file CloudSyncService.h.
using audacity::cloud::audiocom::sync::GetProjectsResult = typedef std::variant<sync::PaginatedProjectsResponse, ResponseResult> |
Definition at line 55 of file CloudSyncService.h.
using audacity::cloud::audiocom::sync::MissingBlocksUploadProgressCallback = typedef std::function<void( const MissingBlocksUploadProgress&, const LockedBlock&, ResponseResult blockResponseResult)> |
Definition at line 59 of file MissingBlocksUploader.h.
using audacity::cloud::audiocom::sync::MixdownProgressCallback = typedef std::function<void(double progress)> |
Definition at line 57 of file MixdownUploader.h.
using audacity::cloud::audiocom::sync::ProgressCallback = typedef std::function<bool(double)> |
Definition at line 53 of file CloudSyncService.h.
using audacity::cloud::audiocom::sync::RemoteProjectSnapshotStateCallback = typedef std::function<void(RemoteProjectSnapshotState)> |
Definition at line 48 of file RemoteProjectSnapshot.h.
using audacity::cloud::audiocom::sync::SampleBlockHashes = typedef std::vector<BlockHash> |
Definition at line 34 of file CloudSyncDTO.h.
using audacity::cloud::audiocom::sync::UploadData = typedef std::variant<std::vector<uint8_t>, std::string> |
Definition at line 34 of file DataUploader.cpp.
|
strong |
Enumerator | |
---|---|
Ask | |
Local | |
Cloud |
Definition at line 17 of file CloudModuleSettings.h.
|
strong |
Enumerator | |
---|---|
Local | |
Cloud | |
Cancel |
Definition at line 17 of file CloudLocationDialog.h.
|
strong |
Enumerator | |
---|---|
Save | |
Export |
Definition at line 24 of file CloudLocationDialog.h.
|
strong |
Enumerator | |
---|---|
Exporting | |
WaitingForUrls | |
Uploading | |
Succeeded | |
Cancelled | |
Failed | |
Empty |
Definition at line 40 of file MixdownUploader.h.
|
strong |
|
strong |
Enumerator | |
---|---|
Save | |
OpenDirty | |
OpenActive |
Definition at line 18 of file ProjectVersionConflictDialog.h.
|
strong |
Enumerator | |
---|---|
Normal | |
CreateNew | |
ForceOverwrite |
Definition at line 24 of file ProjectUploadOperation.h.
std::vector< uint8_t > audacity::cloud::audiocom::sync::CompressBlock | ( | const LockedBlock & | block | ) |
Definition at line 491 of file WavPackCompressor.cpp.
Referenced by audacity::cloud::audiocom::sync::MissingBlocksUploader::ProduceBlock(), and audacity::cloud::audiocom::sync::MissingBlocksUploader::ProducerThread().
std::optional< DecompressedBlock > audacity::cloud::audiocom::sync::DecompressBlock | ( | const void * | data, |
const std::size_t | size | ||
) |
Definition at line 498 of file WavPackCompressor.cpp.
References audacity::cloud::audiocom::sync::DecompressedBlock::BlockId, floatSample, int16Sample, int24Sample, SAMPLE_SIZE, size, and audacity::cloud::audiocom::sync::anonymous_namespace{WavPackCompressor.cpp}::UpdateRMS().
Referenced by audacity::cloud::audiocom::sync::RemoteProjectSnapshot::OnBlockDownloaded().
CLOUD_AUDIOCOM_API CloudSyncError::ErrorType audacity::cloud::audiocom::sync::DeduceError | ( | SyncResultCode | code | ) |
Definition at line 88 of file CloudSyncError.cpp.
References audacity::cloud::audiocom::sync::CloudSyncError::Authorization, audacity::cloud::audiocom::Cancelled, audacity::cloud::audiocom::sync::CloudSyncError::Cancelled, audacity::cloud::audiocom::sync::CloudSyncError::ClientFailure, audacity::cloud::audiocom::Conflict, audacity::cloud::audiocom::ConnectionFailed, audacity::cloud::audiocom::sync::CloudSyncError::DataUploadFailed, audacity::cloud::audiocom::Expired, audacity::cloud::audiocom::Forbidden, audacity::cloud::audiocom::InternalClientError, audacity::cloud::audiocom::sync::CloudSyncError::Network, audacity::cloud::audiocom::sync::CloudSyncError::None, audacity::cloud::audiocom::NotFound, audacity::cloud::audiocom::PaymentRequired, audacity::cloud::audiocom::sync::CloudSyncError::ProjectNotFound, audacity::cloud::audiocom::sync::CloudSyncError::ProjectStorageLimitReached, audacity::cloud::audiocom::sync::CloudSyncError::ProjectVersionConflict, audacity::cloud::audiocom::sync::CloudSyncError::Server, audacity::cloud::audiocom::Success, audacity::cloud::audiocom::TooLarge, audacity::cloud::audiocom::Unauthorized, audacity::cloud::audiocom::UnexpectedResponse, and audacity::cloud::audiocom::UnknownError.
Referenced by audacity::cloud::audiocom::sync::LocalProjectSnapshot::DataUploadFailed(), and audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::ResumedSnaphotUploadOperation::FailSync().
CLOUD_AUDIOCOM_API CloudSyncError audacity::cloud::audiocom::sync::DeduceUploadError | ( | audacity::network_manager::IResponse & | response | ) |
Definition at line 23 of file CloudSyncError.cpp.
References audacity::cloud::audiocom::sync::CloudSyncError::Authorization, audacity::cloud::audiocom::sync::CloudSyncError::Cancelled, audacity::network_manager::HttpCode::Conflict, audacity::cloud::audiocom::sync::CloudSyncError::ErrorMessage, audacity::network_manager::HttpCode::Forbidden, audacity::network_manager::HttpCode::GatewayTimeout, audacity::network_manager::IResponse::getError(), audacity::network_manager::IResponse::getErrorString(), audacity::network_manager::IResponse::getHTTPCode(), audacity::network_manager::HttpCode::Gone, audacity::network_manager::HttpCode::HTTPVersionNotSupported, audacity::cloud::audiocom::sync::CloudSyncError::Network, audacity::network_manager::HttpCode::NetworkAuthenticationRequired, audacity::network_manager::HttpCode::NotFound, audacity::network_manager::HttpCode::PayloadTooLarge, audacity::network_manager::HttpCode::PaymentRequired, audacity::cloud::audiocom::sync::CloudSyncError::ProjectLimitReached, audacity::cloud::audiocom::sync::CloudSyncError::ProjectNotFound, audacity::cloud::audiocom::sync::CloudSyncError::ProjectStorageLimitReached, audacity::cloud::audiocom::sync::CloudSyncError::ProjectVersionConflict, audacity::network_manager::IResponse::readAll(), audacity::network_manager::HttpCode::RequestTimeout, audacity::cloud::audiocom::sync::CloudSyncError::Server, audacity::cloud::audiocom::sync::CloudSyncError::Type, audacity::network_manager::HttpCode::Unauthorized, and audacity::network_manager::HttpCode::UnprocessableEntity.
Referenced by audacity::cloud::audiocom::sync::LocalProjectSnapshot::MarkSnapshotSynced(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::ResumedSnaphotUploadOperation::MarkSnapshotSynced(), and audacity::cloud::audiocom::sync::LocalProjectSnapshot::UpdateProjectSnapshot().
std::optional< CreateSnapshotResponse > audacity::cloud::audiocom::sync::DeserializeCreateSnapshotResponse | ( | const std::string & | data | ) |
Definition at line 422 of file CloudSyncDTO.cpp.
References audacity::cloud::audiocom::sync::anonymous_namespace{CloudSyncDTO.cpp}::Deserialize().
Referenced by audacity::cloud::audiocom::sync::LocalProjectSnapshot::UpdateProjectSnapshot().
std::optional< PaginatedProjectsResponse > audacity::cloud::audiocom::sync::DeserializePaginatedProjectsResponse | ( | const std::string & | data | ) |
Definition at line 433 of file CloudSyncDTO.cpp.
References audacity::cloud::audiocom::sync::anonymous_namespace{CloudSyncDTO.cpp}::Deserialize().
Referenced by audacity::cloud::audiocom::CloudSyncService::GetProjects().
std::optional< ProjectInfo > audacity::cloud::audiocom::sync::DeserializeProjectInfo | ( | const std::string & | data | ) |
Definition at line 443 of file CloudSyncDTO.cpp.
References audacity::cloud::audiocom::sync::anonymous_namespace{CloudSyncDTO.cpp}::Deserialize().
Referenced by audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::GetProjectInfo().
std::optional< ProjectSyncState > audacity::cloud::audiocom::sync::DeserializeProjectSyncState | ( | const std::string & | data | ) |
Definition at line 411 of file CloudSyncDTO.cpp.
References audacity::cloud::audiocom::sync::anonymous_namespace{CloudSyncDTO.cpp}::Deserialize().
Referenced by audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::ResumedSnaphotUploadOperation::RefreshUrls().
std::optional< SnapshotInfo > audacity::cloud::audiocom::sync::DeserializeSnapshotInfo | ( | const std::string & | data | ) |
Definition at line 453 of file CloudSyncDTO.cpp.
References audacity::cloud::audiocom::sync::anonymous_namespace{CloudSyncDTO.cpp}::Deserialize().
Referenced by audacity::cloud::audiocom::anonymous_namespace{CloudSyncService.cpp}::GetSnapshotInfo().
AudacityProject * audacity::cloud::audiocom::sync::GetOpenedProject | ( | std::string_view | projectId | ) |
Definition at line 138 of file CloudProjectOpenUtils.cpp.
References AllProjects::begin(), details::begin(), AllProjects::end(), details::end(), audacity::cloud::audiocom::sync::ProjectCloudExtension::Get(), and audacity::cloud::audiocom::sync::ProjectCloudExtension::GetCloudProjectId().
Referenced by HandleMixdownLink(), and OpenProjectFromCloud().
AudacityProject * audacity::cloud::audiocom::sync::GetPotentialTarget | ( | ) |
Definition at line 133 of file CloudProjectOpenUtils.cpp.
References AllProjects::empty(), and AllProjects::rbegin().
Referenced by HandleMixdownLink(), HandleProjectLink(), and OpenProjectFromCloud().
bool audacity::cloud::audiocom::sync::HandleMixdownLink | ( | std::string_view | uri | ) |
Definition at line 28 of file CloudProjectMixdownUtils.cpp.
References ASSERT_MAIN_THREAD, ProjectWindow::Get(), GetOpenedProject(), GetPotentialTarget(), OpenProjectFromCloud(), ParseUri(), ParseUriQuery(), project, and UploadMixdown().
bool audacity::cloud::audiocom::sync::HandleProjectLink | ( | std::string_view | uri | ) |
Definition at line 308 of file CloudProjectOpenUtils.cpp.
References ASSERT_MAIN_THREAD, GetPotentialTarget(), OpenProjectFromCloud(), ParseUri(), and ParseUriQuery().
CLOUD_AUDIOCOM_API CloudSyncError audacity::cloud::audiocom::sync::MakeClientFailure | ( | const char * | message | ) |
Definition at line 83 of file CloudSyncError.cpp.
References audacity::cloud::audiocom::sync::CloudSyncError::ClientFailure.
CLOUD_AUDIOCOM_API CloudSyncError audacity::cloud::audiocom::sync::MakeClientFailure | ( | const std::string & | message | ) |
Definition at line 78 of file CloudSyncError.cpp.
References audacity::cloud::audiocom::sync::CloudSyncError::ClientFailure.
CLOUD_AUDIOCOM_API CloudSyncError audacity::cloud::audiocom::sync::MakeClientFailure | ( | const TranslatableString & | message | ) |
Definition at line 72 of file CloudSyncError.cpp.
References audacity::cloud::audiocom::sync::CloudSyncError::ClientFailure, audacity::ToUTF8(), and TranslatableString::Translation().
Referenced by audacity::cloud::audiocom::sync::LocalProjectSnapshot::OnSnapshotCreated(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::ResumedSnaphotUploadOperation::RefreshUrls(), and audacity::cloud::audiocom::sync::LocalProjectSnapshot::UpdateProjectSnapshot().
CLOUD_AUDIOCOM_API wxString audacity::cloud::audiocom::sync::MakeSafeProjectPath | ( | const wxString & | rootDir, |
const wxString & | projectName | ||
) |
Definition at line 483 of file CloudSyncDTO.cpp.
References audacity::cloud::audiocom::sync::anonymous_namespace{CloudSyncDTO.cpp}::SafeName().
Referenced by anonymous_namespace{CloudProjectFileIOExtensions.cpp}::IOExtension::OnSave(), and audacity::cloud::audiocom::CloudSyncService::SyncCloudSnapshot().
AudacityProject * audacity::cloud::audiocom::sync::OpenProjectFromCloud | ( | AudacityProject * | potentialTarget, |
std::string_view | projectId, | ||
std::string_view | snapshotId, | ||
bool | forceNew | ||
) |
Definition at line 256 of file CloudProjectOpenUtils.cpp.
References audacity::cloud::audiocom::CloudSyncService::ForceNew, audacity::cloud::audiocom::CloudSyncService::Normal, and OpenProjectFromCloud().
AudacityProject * audacity::cloud::audiocom::sync::OpenProjectFromCloud | ( | AudacityProject * | potentialTarget, |
std::string_view | projectId, | ||
std::string_view | snapshotId, | ||
CloudSyncService::SyncMode | mode | ||
) |
Definition at line 154 of file CloudProjectOpenUtils.cpp.
References ASSERT_MAIN_THREAD, audacity::cloud::audiocom::AuthResult::Authorised, audacity::cloud::audiocom::CloudSyncService::ForceNew, audacity::cloud::audiocom::CloudSyncService::ForceOverwrite, audacity::cloud::audiocom::CloudSyncService::Get(), audacity::cloud::audiocom::sync::ProjectCloudExtension::Get(), ProjectFileIO::Get(), ProjectWindow::Get(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::GetConfilctResolution(), audacity::cloud::audiocom::CloudSyncService::GetHeadSnapshotID(), GetOpenedProject(), GetPotentialTarget(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::GetResult(), audacity::cloud::audiocom::sync::ProjectCloudExtension::GetSnapshotId(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::HandleFailure(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::LogTransferStats(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::MakePoller(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::MakeProgress(), ProjectFileIO::MarkTemporary(), ProjectManager::New(), OpenActive, audacity::cloud::audiocom::CloudSyncService::OpenFromCloud(), OpenFromCloudMenu, ProjectManager::OpenProject(), OpenProjectFromCloud(), audacity::cloud::audiocom::PerformBlockingAuth(), project, audacity::ToWXString(), and audacity::cloud::audiocom::sync::ProjectVersionConflictDialog::UseRemoteIdentifier().
Referenced by HandleMixdownLink(), HandleProjectLink(), and OpenProjectFromCloud().
void audacity::cloud::audiocom::sync::ReopenProject | ( | AudacityProject & | project | ) |
Definition at line 340 of file CloudProjectOpenUtils.cpp.
References BasicUI::CallAfter(), audacity::cloud::audiocom::CloudSyncService::ForceOverwrite, audacity::cloud::audiocom::sync::ProjectCloudExtension::Get(), and project.
Referenced by audacity::cloud::audiocom::sync::ProjectCloudUIExtension::OnCloudStatusChanged().
bool audacity::cloud::audiocom::sync::ResaveLocally | ( | AudacityProject & | project | ) |
Definition at line 332 of file CloudProjectFileIOExtensions.cpp.
References ProjectFileManager::Get(), project, and ProjectFileManager::SaveAs().
Referenced by audacity::cloud::audiocom::sync::ProjectCloudUIExtension::OnCloudStatusChanged().
void CLOUD_AUDIOCOM_API audacity::cloud::audiocom::sync::ResumeProjectUpload | ( | ProjectCloudExtension & | projectCloudExtension, |
std::function< void(AudiocomTrace)> | onBeforeUploadStarts | ||
) |
Definition at line 446 of file ResumedSnaphotUploadOperation.cpp.
References audacity::cloud::audiocom::sync::CloudProjectsDatabase::Get(), audacity::cloud::audiocom::sync::ProjectCloudExtension::GetCloudProjectId(), and ProjectOpenedAndUploadResumed.
Referenced by audacity::cloud::audiocom::sync::ProjectCloudUIExtension::OnCloudStatusChanged(), and anonymous_namespace{CloudProjectFileIOExtensions.cpp}::IOExtension::OnLoad().
void audacity::cloud::audiocom::sync::SaveToCloud | ( | AudacityProject & | project, |
UploadMode | mode, | ||
CreateSnapshotCallback | snapshotCallback | ||
) |
Definition at line 315 of file CloudProjectFileIOExtensions.cpp.
References ASSERT_MAIN_THREAD, audacity::cloud::audiocom::sync::ProjectCloudExtension::Get(), ProjectFileManager::Get(), anonymous_namespace{CloudProjectFileIOExtensions.cpp}::GetExtension(), project, and ProjectFileManager::Save().
Referenced by audacity::cloud::audiocom::sync::ProjectCloudUIExtension::OnCloudStatusChanged(), anonymous_namespace{AudioComMenus.cpp}::OnSaveToCloud(), and UploadMixdown().
std::string audacity::cloud::audiocom::sync::Serialize | ( | const ProjectForm & | form | ) |
Definition at line 377 of file CloudSyncDTO.cpp.
References audacity::cloud::audiocom::sync::ProjectForm::Force, audacity::cloud::audiocom::sync::ProjectForm::Hashes, audacity::cloud::audiocom::sync::ProjectForm::HeadSnapshotId, and audacity::cloud::audiocom::sync::ProjectForm::Name.
Referenced by audacity::cloud::audiocom::CloudSyncService::ReportUploadStats(), and audacity::cloud::audiocom::sync::LocalProjectSnapshot::UpdateProjectSnapshot().
std::string audacity::cloud::audiocom::sync::Serialize | ( | NetworkStats | stats | ) |
Definition at line 496 of file CloudSyncDTO.cpp.
References audacity::cloud::audiocom::sync::NetworkStats::Blocks, audacity::cloud::audiocom::sync::NetworkStats::Bytes, audacity::cloud::audiocom::sync::NetworkStats::Files, audacity::cloud::audiocom::sync::NetworkStats::IsDownload, and audacity::cloud::audiocom::sync::NetworkStats::Mixes.
void audacity::cloud::audiocom::sync::ShowDialogOn | ( | std::function< bool()> | condition, |
std::function< void()> | dialogFactory | ||
) |
Definition at line 273 of file AudioComDialogBase.cpp.
Referenced by anonymous_namespace{CloudProjectFileIOExtensions.cpp}::IOExtension::OnUpdateSaved().
bool audacity::cloud::audiocom::sync::SyncCloudProject | ( | AudacityProject & | project, |
std::string_view | path, | ||
AudiocomTrace | trace, | ||
bool | force | ||
) |
Definition at line 266 of file CloudProjectOpenUtils.cpp.
References ASSERT_MAIN_THREAD, audacity::cloud::audiocom::AuthResult::Authorised, audacity::cloud::audiocom::CloudSyncService::Get(), ProjectWindow::Get(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::GetConfilctResolution(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::GetResult(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::HandleFailure(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::LogTransferStats(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::MakePoller(), audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::MakeProgress(), audacity::cloud::audiocom::PerformBlockingAuth(), project, SyncCloudProject(), and audacity::cloud::audiocom::CloudSyncService::SyncProject().
Referenced by anonymous_namespace{CloudProjectFileIOExtensions.cpp}::IOExtension::OnOpen(), and SyncCloudProject().
void audacity::cloud::audiocom::sync::UploadMixdown | ( | AudacityProject & | project, |
std::function< void(AudacityProject &, MixdownState)> | onComplete | ||
) |
Definition at line 71 of file CloudProjectMixdownUtils.cpp.
References BasicUI::CallAfter(), audacity::concurrency::CancellationContext::Create(), audacity::cloud::audiocom::sync::ProjectCloudExtension::Get(), audacity::cloud::audiocom::GetServiceConfig(), BasicUI::MakeProgress(), Normal, BasicUI::ProgressShowCancel, project, SaveToCloud(), anonymous_namespace{LinkUrlHandler.cpp}::subscription, audacity::cloud::audiocom::sync::MixdownUploader::Upload(), XO(), and BasicUI::Yield().
Referenced by HandleMixdownLink(), and anonymous_namespace{AudioComMenus.cpp}::OnUpdateMixdown().
EnumSetting< CloudLocationMode > audacity::cloud::audiocom::sync::ExportLocationMode |
Definition at line 24 of file CloudModuleSettings.cpp.
Referenced by anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::AudioComPrefsPanel(), anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::Cancel(), and anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::PopulateOrExchange().
BoolSetting audacity::cloud::audiocom::sync::MixdownDialogShown |
Definition at line 32 of file CloudModuleSettings.cpp.
Referenced by anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::Commit().
|
constexpr |
EnumSetting< CloudLocationMode > audacity::cloud::audiocom::sync::SaveLocationMode |
Definition at line 16 of file CloudModuleSettings.cpp.
Referenced by anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::AudioComPrefsPanel(), anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::Cancel(), and anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::PopulateOrExchange().
|
constexpr |
Definition at line 38 of file LocalProjectSnapshot.h.