120 explicit operator bool() const noexcept;
146 const wxString& fileName,
const wxString& projectName,
bool isPublic,
Service responsible for OAuth authentication against the audio.com service.
Configuration for the audio.com.
A unique_ptr like class that holds a pointer to UploadOperation.
UploadOperationHandle(UploadOperationHandle &&)=default
UploadOperationHandle & operator=(const UploadOperationHandle &)=delete
UploadOperationHandle(const UploadOperationHandle &)=delete
UploadOperationHandle & operator=(UploadOperationHandle &&)=default
UploadOperationHandle()=default
Class used to track the upload operation.
virtual bool IsCompleted()=0
Returns true if the upload is finished.
virtual ~UploadOperation()
virtual void DiscardResult()=0
virtual void Abort()=0
Abort the upload, if running.
Service, responsible for uploading audio files to audio.com.
std::function< void(uint64_t current, uint64_t total)> ProgressCallback
const ServiceConfig & mServiceConfig
OAuthService & mOAuthService
std::function< void(const UploadOperationCompleted &)> CompletedCallback
wxString GetUploadTempPath()
This structure represents an upload error as returned by the server.
std::vector< AdditionalError > additionalErrors
std::pair< std::string, std::string > AdditionalError
Payload payload
Operation payload.
Result
Result of the upload.
std::variant< std::monostate, UploadSuccessfulPayload, UploadFailedPayload > Payload
Result result
Upload result.
This structure represents the payload associated with successful upload.
std::string audioId
ID of the uploaded audio.
std::string audioUrl
URL to the uploaded audio.
std::string uploadToken
Upload token, if any.
std::string audioSlug
"Slug" to be used for shareable URL construction