- void gather (ARDOUR::Session &);
- void set_type (ARDOUR::DataType);
- void set_offer_inputs (bool);
- ARDOUR::BundleList bundles () const;
- void take_visibility_from (PortGroupList const &);
- void clear_list ();
+ typedef std::vector<boost::shared_ptr<PortGroup> > List;
+
+ void add_group (boost::shared_ptr<PortGroup>);
+ void add_group_if_not_empty (boost::shared_ptr<PortGroup>);
+ void gather (ARDOUR::Session *, ARDOUR::DataType, bool, bool);
+ PortGroup::BundleList const & bundles () const;
+ void clear ();
+ void remove_bundle (boost::shared_ptr<ARDOUR::Bundle>);
+ ARDOUR::ChanCount total_channels () const;
+ uint32_t size () const {
+ return _groups.size();
+ }
+ boost::shared_ptr<ARDOUR::IO> io_from_bundle (boost::shared_ptr<ARDOUR::Bundle>) const;
+
+ void suspend_signals ();
+ void resume_signals ();
+
+ List::const_iterator begin () const {
+ return _groups.begin ();
+ }
+
+ List::const_iterator end () const {
+ return _groups.end ();
+ }
+
+ bool empty () const;
+
+ /** The group list has changed in some way; a group has been added or removed, or the list cleared etc. */
+ PBD::Signal0<void> Changed;
+
+ /** A bundle in one of our groups has changed */
+ PBD::Signal1<void,ARDOUR::Bundle::Change> BundleChanged;