87 explicit operator bool() const noexcept;
113 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()=default
UploadOperationHandle & operator=(const UploadOperationHandle &)=delete
UploadOperationHandle(const UploadOperationHandle &)=delete
UploadOperationHandle & operator=(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
OAuthService & mOAuthService
const ServiceConfig & mServiceConfig
std::function< void(const UploadOperationCompleted &)> CompletedCallback
wxString GetUploadTempPath()
std::string errorMessage
Error message if result is not Success.
std::string finishUploadURL
URL to open in browser to finish up the anonymous upload.
Result
Result of the upload.
Result result
Upload result.
std::string audioSlug
"Slug" to be used for shareable URL construction