1 /* soundcloud_upload.h ******************************************************
3 Adapted for Ardour by Ben Loftis, March 2012
5 *****************************************************************************/
7 #ifndef __ardour_soundcloud_upload_h__
8 #define __ardour_soundcloud_upload_h__
19 #include "curl/curl.h"
20 #include "ardour/session_handle.h"
21 #include "ardour/export_handler.h"
22 #include "pbd/signals.h"
24 //--- struct to store XML file
31 class SoundcloudUploader
35 ~SoundcloudUploader();
37 std::string Get_Auth_Token(std::string username, std::string password);
38 std::string Upload (std::string file_path, std::string title, std::string token, bool ispublic, ARDOUR::ExportHandler *caller);
39 static int progress_callback(void *caller, double dltotal, double dlnow, double ultotal, double ulnow);
44 void setcUrlOptions();
48 char errorBuffer[CURL_ERROR_SIZE]; // storage for cUrl error message
51 ARDOUR::ExportHandler *caller;
55 #endif /* __ardour_soundcloud_upload_h__ */