mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
clean up aspects of ControlProtocol API
This commit is contained in:
parent
8a005319b8
commit
b0a10da783
1 changed files with 6 additions and 3 deletions
|
|
@ -47,8 +47,8 @@ class ControlProtocol : public PBD::Stateful, public PBD::ScopedConnectionList,
|
||||||
|
|
||||||
std::string name() const { return _name; }
|
std::string name() const { return _name; }
|
||||||
|
|
||||||
virtual int set_active (bool yn) = 0;
|
virtual int set_active (bool yn);
|
||||||
bool get_active() const { return _active; }
|
bool 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 bool get_feedback () const { return false; }
|
||||||
|
|
@ -133,16 +133,19 @@ class ControlProtocol : public PBD::Stateful, public PBD::ScopedConnectionList,
|
||||||
virtual void* get_gui() const { return 0; }
|
virtual void* get_gui() const { return 0; }
|
||||||
virtual void tear_down_gui() { }
|
virtual void tear_down_gui() { }
|
||||||
|
|
||||||
|
XMLNode& get_state ();
|
||||||
|
static const std::string state_node_name;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::vector<boost::shared_ptr<ARDOUR::Route> > route_table;
|
std::vector<boost::shared_ptr<ARDOUR::Route> > route_table;
|
||||||
std::string _name;
|
std::string _name;
|
||||||
bool _active;
|
|
||||||
|
|
||||||
void next_track (uint32_t initial_id);
|
void next_track (uint32_t initial_id);
|
||||||
void prev_track (uint32_t initial_id);
|
void prev_track (uint32_t initial_id);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ControlProtocol (const ControlProtocol&); /* noncopyable */
|
ControlProtocol (const ControlProtocol&); /* noncopyable */
|
||||||
|
bool _active;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue