Audacity 3.2.0
|
Service, responsible for uploading audio files to audio.com. More...
#include <UploadService.h>
Public Types | |
using | CompletedCallback = std::function< void(const UploadOperationCompleted &)> |
using | ProgressCallback = std::function< void(uint64_t current, uint64_t total)> |
Public Member Functions | |
UploadService (const ServiceConfig &config, OAuthService &service) | |
UploadOperationHandle | Upload (const wxString &fileName, const wxString &projectName, bool isPublic, CompletedCallback completedCallback, ProgressCallback progressCallback, AudiocomTrace) |
Uploads the file to audio.com. More... | |
Private Attributes | |
const ServiceConfig & | mServiceConfig |
OAuthService & | mOAuthService |
Service, responsible for uploading audio files to audio.com.
Definition at line 129 of file UploadService.h.
using audacity::cloud::audiocom::UploadService::CompletedCallback = std::function<void(const UploadOperationCompleted&)> |
Definition at line 134 of file UploadService.h.
using audacity::cloud::audiocom::UploadService::ProgressCallback = std::function<void(uint64_t current, uint64_t total)> |
Definition at line 137 of file UploadService.h.
audacity::cloud::audiocom::UploadService::UploadService | ( | const ServiceConfig & | config, |
OAuthService & | service | ||
) |
Definition at line 571 of file UploadService.cpp.
UploadOperationHandle audacity::cloud::audiocom::UploadService::Upload | ( | const wxString & | fileName, |
const wxString & | projectName, | ||
bool | isPublic, | ||
CompletedCallback | completedCallback, | ||
ProgressCallback | progressCallback, | ||
AudiocomTrace | trace | ||
) |
Uploads the file to audio.com.
Definition at line 576 of file UploadService.cpp.
References audacity::cloud::audiocom::UploadOperationCompleted::FileNotFound, mOAuthService, mServiceConfig, and audacity::cloud::audiocom::OAuthService::ValidateAuth().
|
private |
Definition at line 152 of file UploadService.h.
Referenced by Upload().
|
private |
Definition at line 151 of file UploadService.h.
Referenced by Upload().