fix commentary
[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
16 #include <gtkmm/box.h>
17 #include <gtkmm/checkbutton.h>
18 #include <gtkmm/entry.h>
19 #include <gtkmm/label.h>
20 #include <gtkmm/progressbar.h>
21 #include <gtkmm/table.h>
22
23 class SoundcloudExportSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
24 {
25 public:
26         SoundcloudExportSelector ();
27         int do_progress_callback (double ultotal, double ulnow, const std::string &filename);
28         std::string username () { return soundcloud_username_entry.get_text (); }
29         std::string password () { return soundcloud_password_entry.get_text (); }
30         bool make_public  () { return soundcloud_public_checkbox.get_active (); }
31         bool open_page    () { return soundcloud_open_checkbox.get_active (); }
32         bool downloadable () { return soundcloud_download_checkbox.get_active (); }
33         void cancel () { soundcloud_cancel = true; }
34
35 private:
36         Gtk::Table  sc_table;
37         Gtk::Label soundcloud_username_label;
38         Gtk::Entry soundcloud_username_entry;
39         Gtk::Label soundcloud_password_label;
40         Gtk::Entry soundcloud_password_entry;
41         Gtk::CheckButton soundcloud_public_checkbox;
42         Gtk::CheckButton soundcloud_open_checkbox;
43         Gtk::CheckButton soundcloud_download_checkbox;
44         bool soundcloud_cancel;
45         Gtk::ProgressBar progress_bar;
46
47 };
48
49 #endif // __soundcloud_export_selector_h__