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) |
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 126 of file UploadService.h.
using cloud::audiocom::UploadService::CompletedCallback = std::function<void(const UploadOperationCompleted&)> |
Definition at line 131 of file UploadService.h.
using cloud::audiocom::UploadService::ProgressCallback = std::function<void(uint64_t current, uint64_t total)> |
Definition at line 134 of file UploadService.h.
cloud::audiocom::UploadService::UploadService | ( | const ServiceConfig & | config, |
OAuthService & | service | ||
) |
Definition at line 567 of file UploadService.cpp.
UploadOperationHandle cloud::audiocom::UploadService::Upload | ( | const wxString & | fileName, |
const wxString & | projectName, | ||
bool | isPublic, | ||
CompletedCallback | completedCallback, | ||
ProgressCallback | progressCallback | ||
) |
Uploads the file to audio.com.
Definition at line 572 of file UploadService.cpp.
References cloud::audiocom::UploadOperationCompleted::FileNotFound, mOAuthService, mServiceConfig, and cloud::audiocom::OAuthService::ValidateAuth().
|
private |
Definition at line 148 of file UploadService.h.
Referenced by Upload().
|
private |
Definition at line 147 of file UploadService.h.
Referenced by Upload().