/** A source associated with a file on disk somewhere */
class LIBARDOUR_API FileSource : virtual public Source {
public:
- virtual ~FileSource () {}
+ virtual ~FileSource ();
virtual const std::string& path() const { return _path; }
void inc_use_count ();
bool removable () const;
+ bool is_stub () const;
const std::string& origin() const { return _origin; }
static PBD::Signal2<int,std::string,std::vector<std::string> > AmbiguousFileName;
+ void existence_check ();
+ virtual void prevent_deletion ();
+
+ /** Rename the file on disk referenced by this source to \param newname
+ */
+ int rename (const std::string& name);
+
+ virtual void release_descriptor () {}
+
protected:
FileSource (Session& session, DataType type,
const std::string& path,
std::string _origin;
bool _open;
- void prevent_deletion ();
};
} // namespace ARDOUR