projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Amend f3c0c1a865 (Add quarter-note position methods).
[ardour.git]
/
libs
/
ardour
/
ardour
/
file_source.h
diff --git
a/libs/ardour/ardour/file_source.h
b/libs/ardour/ardour/file_source.h
index 34e84c242811f8b1162a2e0c06673254ae21e497..00fb74b426114370723a717526744c9ea78f0451 100644
(file)
--- a/
libs/ardour/ardour/file_source.h
+++ b/
libs/ardour/ardour/file_source.h
@@
-44,9
+44,9
@@
class LIBARDOUR_API MissingSource : public std::exception
/** A source associated with a file on disk somewhere */
class LIBARDOUR_API FileSource : virtual public Source {
public:
/** 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; }
+ const std::string& path() const { return _path; }
virtual bool safe_file_extension (const std::string& path) const = 0;
virtual bool safe_file_extension (const std::string& path) const = 0;
@@
-79,10
+79,19
@@
public:
const std::string& origin() const { return _origin; }
virtual void set_path (const std::string&);
const std::string& origin() const { return _origin; }
virtual void set_path (const std::string&);
-
+
static PBD::Signal2<int,std::string,std::vector<std::string> > AmbiguousFileName;
static PBD::Signal2<int,std::string,std::vector<std::string> > AmbiguousFileName;
-protected:
+ 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 close () = 0;
+
+ protected:
FileSource (Session& session, DataType type,
const std::string& path,
const std::string& origin,
FileSource (Session& session, DataType type,
const std::string& path,
const std::string& origin,
@@
-101,9
+110,6
@@
protected:
uint16_t _channel;
bool _within_session;
std::string _origin;
uint16_t _channel;
bool _within_session;
std::string _origin;
- bool _open;
-
- void prevent_deletion ();
};
} // namespace ARDOUR
};
} // namespace ARDOUR