50 #include "curl/curl.h"
100 std::string
doRequest(std::string uri, std::string params);
104 static int progress_callback (
void *clientp,
double dltotal,
double dlnow,
double ultotal,
double ulnow);
static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
std::string audioFileName
Mootcher(const std::string &token)
static int progress_callback(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow)
std::string doRequest(std::string uri, std::string params)
PBD::Signal< void(double, double)> Progress
Gtk::Button cancel_download_btn
std::string searchText(std::string query, int page, std::string filter, enum sortMethod sort)
bool fetchAudioFile(std::string originalFileName, std::string ID, std::string audioURL, SoundFileBrowser *caller, std::string &token)
std::string searchSimilar(std::string id)
std::string sortMethodString(enum sortMethod sort)
std::string getSoundResourceFile(std::string ID)
PBD::Signal< void()> Finished
Gtk::ProgressBar progress_bar
std::string auth_code_to_oauth_token(const std::string &auth_code)
void updateProgress(double dlnow, double dltotal)
char errorBuffer[CURL_ERROR_SIZE]
void report_login_error(const std::string &msg)
bool checkAudioFile(std::string originalFileName, std::string ID)
struct curl_slist * custom_headers
GTKMM_API const Gtk::BuiltinStockID FILE
@ sort_created_descending
@ sort_downloads_descending
@ sort_duration_descending
@ sort_duration_ascending
@ sort_downloads_ascending