fix visual focus indication in IOSelector; import pays attention to audio file embedd...
[ardour.git] / libs / ardour / ardour / audiofilesource.h
index de12cb05e585f31705da48e7422ffbdbfbfc1af5..728432db81945ec754847387e55f84624b2f5c51 100644 (file)
@@ -81,8 +81,8 @@ class AudioFileSource : public AudioSource {
        void   mark_take (string);
        string take_id() const { return _take_id; }
 
-       static void set_bwf_country_code (string x);
-       static void set_bwf_organization_code (string x);
+       bool is_embedded() const { return _is_embedded; }
+
        static void set_bwf_serial_number (int);
        
        static void set_search_path (string);
@@ -95,6 +95,9 @@ class AudioFileSource : public AudioSource {
        XMLNode& get_state ();
        int set_state (const XMLNode&);
 
+       bool destructive() const { return (_flags & Destructive); }
+       virtual bool set_destructive (bool yn) { return false; }
+
        /* this should really be protected, but C++ is getting stricter
           and creating slots from protected member functions is starting
           to cause issues.
@@ -126,6 +129,9 @@ class AudioFileSource : public AudioSource {
        uint64_t       timeline_position;
        bool           file_is_new;
 
+       bool          _is_embedded;
+       static bool determine_embeddedness(string path);
+
        static string peak_dir;
        static string search_path;