OSC GUI: Add Strip types and feedback check boxes
[ardour.git] / gtk2_ardour / soundcloud_export_selector.h
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 <stdio.h>
11 #include <cstring>
12 #include <string>
13 #include <sstream>
14 #include <vector>
15 #include <gtkmm.h>
16 #include <gtkmm/progressbar.h>
17
18 class SoundcloudExportSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
19 {
20   public:
21         SoundcloudExportSelector ();
22         int do_progress_callback (double ultotal, double ulnow, const std::string &filename);
23         std::string username () { return soundcloud_username_entry.get_text (); }
24         std::string password () { return soundcloud_password_entry.get_text (); }
25         bool make_public  () { return soundcloud_public_checkbox.get_active (); }
26         bool open_page    () { return soundcloud_open_checkbox.get_active (); }
27         bool downloadable () { return soundcloud_download_checkbox.get_active (); }
28         void cancel () { soundcloud_cancel = true; }
29
30   private:
31         Gtk::Table  sc_table;
32         Gtk::Label soundcloud_username_label;
33         Gtk::Entry soundcloud_username_entry;
34         Gtk::Label soundcloud_password_label;
35         Gtk::Entry soundcloud_password_entry;
36         Gtk::CheckButton soundcloud_public_checkbox;
37         Gtk::CheckButton soundcloud_open_checkbox;
38         Gtk::CheckButton soundcloud_download_checkbox;
39         bool soundcloud_cancel;
40         Gtk::ProgressBar progress_bar;
41
42 };
43
44 #endif // __soundcloud_export_selector_h__