diff options
Diffstat (limited to 'libs/surfaces/control_protocol/control_protocol/control_protocol.h')
-rw-r--r-- | libs/surfaces/control_protocol/control_protocol/control_protocol.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/libs/surfaces/control_protocol/control_protocol/control_protocol.h b/libs/surfaces/control_protocol/control_protocol/control_protocol.h index 7dbda7d3eb..f5af008e4a 100644 --- a/libs/surfaces/control_protocol/control_protocol/control_protocol.h +++ b/libs/surfaces/control_protocol/control_protocol/control_protocol.h @@ -30,18 +30,10 @@ #include "pbd/stateful.h" #include "pbd/signals.h" -#include "ardour/visibility.h" #include "control_protocol/visibility.h" #include "control_protocol/basic_ui.h" #include "control_protocol/types.h" -#ifdef ARDOURSURFACE_DLL_EXPORTS // defined if we are building the ARDOUR surface DLLs (instead of using them) - #define ARDOURSURFACE_API LIBARDOUR_HELPER_DLL_EXPORT -#else - #define ARDOURSURFACE_API LIBARDOUR_HELPER_DLL_IMPORT -#endif -#define ARDOURSURFACE_LOCAL LIBARDOUR_HELPER_DLL_LOCAL - namespace ARDOUR { class Route; @@ -56,8 +48,8 @@ class LIBCONTROLCP_API ControlProtocol : public PBD::Stateful, public PBD::Scope std::string name() const { return _name; } - virtual int set_active (bool yn) = 0; - bool get_active() const { return _active; } + virtual int set_active (bool yn); + bool active() const { return _active; } virtual int set_feedback (bool /*yn*/) { return 0; } virtual bool get_feedback () const { return false; } @@ -142,16 +134,19 @@ class LIBCONTROLCP_API ControlProtocol : public PBD::Stateful, public PBD::Scope virtual void* get_gui() const { return 0; } virtual void tear_down_gui() { } + XMLNode& get_state (); + static const std::string state_node_name; + protected: std::vector<boost::shared_ptr<ARDOUR::Route> > route_table; std::string _name; - bool _active; void next_track (uint32_t initial_id); void prev_track (uint32_t initial_id); private: - ARDOURSURFACE_LOCAL ControlProtocol (const ControlProtocol&); /* noncopyable */ + LIBCONTROLCP_LOCAL ControlProtocol (const ControlProtocol&); /* noncopyable */ + bool _active; }; extern "C" { |