correct check for presence of / or \ in a session name
[ardour.git] / gtk2_ardour / engine_dialog.h
index 14eb56fc9afbde90f1987f4d3a897f4ded666001..3a2138e4cc998e2ec782bd2cf04884eb4a6ee3e8 100644 (file)
@@ -21,8 +21,12 @@ class EngineControl : public Gtk::VBox {
        ~EngineControl ();
 
        static bool engine_running ();
-       int start_engine ();
-       int stop_engine ();
+       int setup_engine ();
+       void discover_servers ();
+
+       bool was_used() const { return _used; }
+       XMLNode& get_state ();
+       void set_state (const XMLNode&);
 
   private:
        Gtk::Adjustment periods_adjustment;
@@ -67,21 +71,22 @@ class EngineControl : public Gtk::VBox {
        Gtk::Table basic_packer;
        Gtk::Table options_packer;
        Gtk::Table device_packer;
-
+       Gtk::HBox basic_hbox;
+       Gtk::HBox options_hbox;
+       Gtk::HBox device_hbox;
        Gtk::Notebook notebook;
+       
+       bool _used;
 
        void realtime_changed ();
        void driver_changed ();
-
        void build_command_line (std::vector<std::string>&);
-       Glib::Pid engine_pid;
-       int engine_stdin;
-       int engine_stdout;
-       int engine_stderr;
 
        std::map<std::string,std::vector<std::string> > devices;
-       void enumerate_devices ();
-#ifdef __APPLE
+       std::vector<std::string> backend_devs;
+       void enumerate_devices (const string& driver);
+
+#ifdef __APPLE__
        std::vector<std::string> enumerate_coreaudio_devices ();
 #else
        std::vector<std::string> enumerate_alsa_devices ();
@@ -94,6 +99,10 @@ class EngineControl : public Gtk::VBox {
        void redisplay_latency ();
        uint32_t get_rate();
        void audio_mode_changed ();
+       std::vector<std::string> server_strings;
+       int server_row;
+       void find_jack_servers (std::vector<std::string>&);
+       std::string get_device_name (const std::string& driver, const std::string& human_readable_name);
 };
 
 #endif /* __gtk2_ardour_engine_dialog_h__ */