change the use of "SMPTE" to "Timecode" to reflect the global economy and the end...
[ardour.git] / libs / surfaces / control_protocol / control_protocol / control_protocol.h
index a689d494314d97ae606bf50f113ac389d3e74413..9efb4b299c8a0314ab586c7c4c01ee91f24f98d1 100644 (file)
@@ -16,7 +16,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef ardour_control_protocols_h
@@ -35,7 +34,7 @@ namespace ARDOUR {
 class Route;
 class Session;
 
-class ControlProtocol : public sigc::trackable, public Stateful, public BasicUI {
+class ControlProtocol : public sigc::trackable, public PBD::Stateful, public BasicUI {
   public:
        ControlProtocol (Session&, std::string name);
        virtual ~ControlProtocol();
@@ -45,9 +44,11 @@ class ControlProtocol : public sigc::trackable, public Stateful, public BasicUI
        virtual int set_active (bool yn) = 0;
        bool get_active() const { return _active; }
 
-       virtual int set_feedback (bool yn) { return 0; }
+       virtual int set_feedback (bool /*yn*/) { return 0; }
        virtual bool get_feedback () const { return false; }
 
+       virtual void route_list_changed () {}
+
        sigc::signal<void> ActiveChanged;
 
        /* signals that a control protocol can emit and other (presumably graphical)
@@ -102,6 +103,8 @@ class ControlProtocol : public sigc::trackable, public Stateful, public BasicUI
        std::string _name;
        bool _active;
 
+       void add_strip (std::list<boost::shared_ptr<ARDOUR::Route> >);
+
        void next_track (uint32_t initial_id);
        void prev_track (uint32_t initial_id);
 };