ardour
soundcloud_export_selector.h
Go to the documentation of this file.
1 /*soundcloud_export_selector.h***********************************************
2 
3  Adapted for Ardour by Ben Loftis, March 2012
4 
5 *****************************************************************************/
6 #ifndef __soundcloud_export_selector_h__
7 #define __soundcloud_export_selector_h__
8 
9 #include <string>
10 #include <fstream>
11 #include <iostream>
12 #include <stdio.h>
13 #include <cstring>
14 #include <string>
15 #include <sstream>
16 #include <vector>
17 #include <gtkmm.h>
18 #include <gtkmm/progressbar.h>
19 
20 class SoundcloudExportSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
21 {
22  public:
24  int do_progress_callback (double ultotal, double ulnow, const std::string &filename);
25  std::string username () { return soundcloud_username_entry.get_text (); }
26  std::string password () { return soundcloud_password_entry.get_text (); }
27  bool make_public () { return soundcloud_public_checkbox.get_active (); }
28  bool open_page () { return soundcloud_open_checkbox.get_active (); }
29  bool downloadable () { return soundcloud_download_checkbox.get_active (); }
30  void cancel () { soundcloud_cancel = true; }
31 
32  private:
33  Gtk::Table sc_table;
38  Gtk::CheckButton soundcloud_public_checkbox;
39  Gtk::CheckButton soundcloud_open_checkbox;
40  Gtk::CheckButton soundcloud_download_checkbox;
42  Gtk::ProgressBar progress_bar;
43 
44 };
45 
46 #endif // __soundcloud_export_selector_h__
Gtk::CheckButton soundcloud_download_checkbox
int do_progress_callback(double ultotal, double ulnow, const std::string &filename)