diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-17 18:24:23 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-17 18:24:23 +0000 |
commit | f6fdd8dcbf41f864e9f0cc32dabe81fe3533ddfe (patch) | |
tree | 5214c580b9e6c17a499fa587660dbf949e892bf2 /libs/surfaces/mackie/surface_port.h | |
parent | da762129f19c28aff64f833b6ec09fba946faef6 (diff) |
switch to using boost::signals2 instead of sigc++, at least for libardour. not finished yet, but compiles, loads sessions, records and can close a session without a crash
git-svn-id: svn://localhost/ardour2/branches/3.0@6372 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/surface_port.h')
-rw-r--r-- | libs/surfaces/mackie/surface_port.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/surfaces/mackie/surface_port.h b/libs/surfaces/mackie/surface_port.h index 421446df68..f41f2865bb 100644 --- a/libs/surfaces/mackie/surface_port.h +++ b/libs/surfaces/mackie/surface_port.h @@ -18,7 +18,7 @@ #ifndef surface_port_h #define surface_port_h -#include <sigc++/signal.h> +#include <boost/signals2.hpp> #include <glibmm/thread.h> #include "midi_byte_array.h" @@ -34,7 +34,7 @@ namespace Mackie /** Make a relationship between a midi port and a Mackie device. */ -class SurfacePort : public sigc::trackable +class SurfacePort { public: SurfacePort( MIDI::Port & port, int number ); @@ -64,19 +64,19 @@ public: const MIDI::Port & port() const { return *_port; } // all control notofications are sent from here - sigc::signal<void, SurfacePort &, Control &, const ControlState &> control_event; + boost::signals2::signal<void(SurfacePort &, Control &, const ControlState &)> control_event; // emitted just before the port goes into initialisation // where it tries to establish that its device is connected - sigc::signal<void> init_event; + boost::signals2::signal<void()> init_event; // emitted when the port completes initialisation successfully - sigc::signal<void> active_event; + boost::signals2::signal<void()> active_event; // emitted when the port goes inactive (ie a read or write failed) - sigc::signal<void> inactive_event; + boost::signals2::signal<void()> inactive_event; - // the port number - master is 0, extenders are 1,2,3,4 + // the port number - master is 0(extenders are 1((,4 virtual int number() const { return _number; } // number of strips handled by this port. Usually 8. |