summaryrefslogtreecommitdiff
path: root/gtk2_ardour/soundcloud_export_selector.h
blob: 62623f6168ca3af7566c576b2e0cf96d9a382044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*soundcloud_export_selector.h***********************************************

	Adapted for Ardour by Ben Loftis, March 2012

*****************************************************************************/
#ifndef __soundcloud_export_selector_h__
#define __soundcloud_export_selector_h__

#include <string>
#include <stdio.h>
#include <cstring>
#include <string>
#include <sstream>
#include <vector>
#include <gtkmm.h>
#include <gtkmm/progressbar.h>

class SoundcloudExportSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
{
  public:
	SoundcloudExportSelector ();
	int do_progress_callback (double ultotal, double ulnow, const std::string &filename);
	std::string username () { return soundcloud_username_entry.get_text (); }
	std::string password () { return soundcloud_password_entry.get_text (); }
	bool make_public  () { return soundcloud_public_checkbox.get_active (); }
	bool open_page    () { return soundcloud_open_checkbox.get_active (); }
	bool downloadable () { return soundcloud_download_checkbox.get_active (); }
	void cancel () { soundcloud_cancel = true; }

  private:
	Gtk::Table  sc_table;
	Gtk::Label soundcloud_username_label;
	Gtk::Entry soundcloud_username_entry;
	Gtk::Label soundcloud_password_label;
	Gtk::Entry soundcloud_password_entry;
	Gtk::CheckButton soundcloud_public_checkbox;
	Gtk::CheckButton soundcloud_open_checkbox;
	Gtk::CheckButton soundcloud_download_checkbox;
	bool soundcloud_cancel;
	Gtk::ProgressBar progress_bar;

};

#endif // __soundcloud_export_selector_h__