From 028e1ebc4a392572cae586d0e9044a32b867cba4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 24 Apr 2006 22:45:19 +0000 Subject: a) completely refactor abstract UI code b) single-thread Tranzport implementation c) implement BasicUI to share functionality across multiple controllers d) various minor fixes here and there git-svn-id: svn://localhost/trunk/ardour2@468 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/control_protocol_manager.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour/control_protocol_manager.h') diff --git a/libs/ardour/ardour/control_protocol_manager.h b/libs/ardour/ardour/control_protocol_manager.h index b06c3024b6..c19649e38b 100644 --- a/libs/ardour/ardour/control_protocol_manager.h +++ b/libs/ardour/ardour/control_protocol_manager.h @@ -8,6 +8,8 @@ #include +#include + namespace ARDOUR { class ControlProtocol; @@ -19,9 +21,10 @@ struct ControlProtocolInfo { ControlProtocol* protocol; std::string name; std::string path; + bool requested; }; - class ControlProtocolManager : public sigc::trackable + class ControlProtocolManager : public sigc::trackable, public Stateful { public: ControlProtocolManager (); @@ -38,6 +41,11 @@ struct ControlProtocolInfo { std::list control_protocol_info; + static const std::string state_node_name; + + int set_state (const XMLNode&); + XMLNode& get_state (void); + private: static ControlProtocolManager* _instance; @@ -49,6 +57,7 @@ struct ControlProtocolInfo { int control_protocol_discover (std::string path); ControlProtocolDescriptor* get_descriptor (std::string path); + ControlProtocolInfo* cpi_by_name (std::string); }; } // namespace -- cgit v1.2.3