Stub implementation of LV2 persist extension.
[ardour.git] / libs / ardour / ardour / region_factory.h
index c9f387f1724543bcbc7fc4f2095ecb4cb9a24735..f9ed868f4fc043156310136793cb86bfdc6de100 100644 (file)
@@ -21,6 +21,7 @@
 #define __ardour_region_factory_h__
 
 #include <map>
+#include <set>
 #include <glibmm/thread.h>
 
 #include "pbd/id.h"
@@ -41,7 +42,9 @@ class RegionFactory {
   public:
         typedef std::map<PBD::ID,boost::shared_ptr<Region> > RegionMap;
 
+        static boost::shared_ptr<Region> wholefile_region_by_name (const std::string& name);
        static boost::shared_ptr<Region> region_by_id (const PBD::ID&);
+       static boost::shared_ptr<Region> region_by_name (const std::string& name);
         static const RegionMap all_regions() { return region_map; }
        static void clear_map ();
 
@@ -55,7 +58,7 @@ class RegionFactory {
        static PBD::Signal1<void,boost::shared_ptr<Region> >  CheckNewRegion;
 
        /** create a "pure copy" of Region @param other */
-       static boost::shared_ptr<Region> create (boost::shared_ptr<const Region> other);
+       static boost::shared_ptr<Region> create (boost::shared_ptr<const Region> other, bool announce = false);
 
        /** create a region from a single Source */
        static boost::shared_ptr<Region> create (boost::shared_ptr<Source>, 
@@ -78,7 +81,10 @@ class RegionFactory {
        /** create a region with specified sources @param srcs and XML state */
        static boost::shared_ptr<Region> create (SourceList& srcs, const XMLNode&);
 
+        static void get_regions_using_source (boost::shared_ptr<Source>, std::set<boost::shared_ptr<Region> >& );
+
        static void map_remove (boost::shared_ptr<Region>);
+       static void map_remove_with_equivalents (boost::shared_ptr<Region>);
         static void delete_all_regions ();
         static const RegionMap& regions() { return region_map; }
         static uint32_t nregions ();