diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-04-24 22:45:19 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-04-24 22:45:19 +0000 |
commit | 028e1ebc4a392572cae586d0e9044a32b867cba4 (patch) | |
tree | 36d3a748486feb3f41575708bef8b153fef2cad4 /libs/ardour/ardour/control_protocol_manager.h | |
parent | 484debb45c5ea45bccf0f9cb05b1239a9c2244a3 (diff) |
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
Diffstat (limited to 'libs/ardour/ardour/control_protocol_manager.h')
-rw-r--r-- | libs/ardour/ardour/control_protocol_manager.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <pbd/lockmonitor.h> +#include <ardour/stateful.h> + 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<ControlProtocolInfo*> 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 |