Make export type an enum and pass it to the profile manager instead of the xml node...
[ardour.git] / libs / ardour / ardour / export_profile_manager.h
index 31e93a5b8974530a718c06f78d9552f08be7e251..82b32fb032a8939fc8b04058d8cadf0d83647051 100644 (file)
@@ -50,7 +50,15 @@ class ExportProfileManager
 {
   public:
 
-       ExportProfileManager (Session & s, std::string xml_node_name);
+       enum ExportType {
+               RegularExport,
+               RangeExport,
+               SelectionExport,
+               RegionExport,
+               StemExport
+       };
+
+       ExportProfileManager (Session & s, ExportType type);
        ~ExportProfileManager ();
 
        void load_profile ();
@@ -70,7 +78,8 @@ class ExportProfileManager
        typedef std::pair<PBD::UUID, std::string> FilePair;
        typedef std::map<PBD::UUID, std::string> FileMap;
 
-       std::string const xml_node_name;
+       ExportType type;
+       std::string xml_node_name;
        HandlerPtr  handler;
        Session &   session;