#include <glibmm/threads.h>
#include "pbd/signals.h"
+#include "pbd/statefuldestructible.h"
#include "ardour/session_handle.h"
#include "ardour/types.h"
+#include "ardour/libardour_visibility.h"
namespace ARDOUR {
class VCA;
-class VCAManager : public SessionHandleRef
+class LIBARDOUR_API VCAManager : public SessionHandleRef, public PBD::StatefulDestructible
{
public:
VCAManager (ARDOUR::Session&);
boost::shared_ptr<VCA> vca_by_number(uint32_t) const;
- typedef std::list<boost::shared_ptr<VCA> > VCAS;
- VCAS vcas() const;
+ VCAList vcas() const;
+ VCAList::size_type n_vcas() const { return _vcas.size(); }
PBD::Signal1<void,VCAList&> VCAAdded;
- PBD::Signal1<void,VCAList&> VCARemoved;
+
+ XMLNode& get_state();
+ int set_state (XMLNode const&, int version);
+
+ bool vcas_loaded() const { return _vcas_loaded; }
+ void clear_all_solo_state ();
+
+ static std::string xml_node_name;
private:
mutable Glib::Threads::Mutex lock;
- VCAS _vcas;
+ VCAList _vcas;
+ bool _vcas_loaded;
+ void clear ();
};
} // namespace