Add #include guards to soundcloud_export_selector.h
[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 <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:
23         SoundcloudExportSelector ();
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;
34         Gtk::Label soundcloud_username_label;
35         Gtk::Entry soundcloud_username_entry;
36         Gtk::Label soundcloud_password_label;
37         Gtk::Entry soundcloud_password_entry;
38         Gtk::CheckButton soundcloud_public_checkbox;
39         Gtk::CheckButton soundcloud_open_checkbox;
40         Gtk::CheckButton soundcloud_download_checkbox;
41         bool soundcloud_cancel;
42         Gtk::ProgressBar progress_bar;
43         
44 };
45
46 #endif // __soundcloud_export_selector_h__