36 : path (p), type (t) {}
39 virtual const char *
what()
const throw() {
return "source file does not exist"; }
50 const std::string&
path()
const {
return _path; }
61 uint16_t
channel()
const {
return _channel; }
62 float gain()
const {
return _gain; }
64 virtual void set_gain (
float g,
bool temporarily =
false) { _gain = g; }
72 bool must_exist,
bool& is_new, uint16_t& chan,
73 std::string& found_path);
76 bool must_exist,
bool& is_new, uint16_t& chan,
77 std::string& found_path);
82 const std::string&
origin()
const {
return _origin; }
100 const std::string& path,
101 const std::string& origin,
106 virtual int init (
const std::string& idstr,
bool must_exist);
void mark_take(const std::string &id)
virtual void set_channel(uint16_t c)
void set_origin(std::string const &o)
static PBD::Signal< int(std::string, std::vector< std::string >)> AmbiguousFileName
int set_state(const XMLNode &, int version)
virtual void prevent_deletion()
bool within_session() const
const std::string & origin() const
virtual void set_path(const std::string &)
void mark_immutable_except_write()
static bool find_2X(Session &, DataType type, const std::string &path, bool must_exist, bool &is_new, uint16_t &chan, std::string &found_path)
virtual bool safe_file_extension(const std::string &path) const =0
virtual void set_gain(float g, bool temporarily=false)
FileSource(Session &session, const XMLNode &node, bool must_exist)
int set_source_name(const std::string &newname)
int move_to_trash(const std::string &trash_dir_name)
void replace_file(const std::string &)
static bool find(Session &, DataType type, const std::string &path, bool must_exist, bool &is_new, uint16_t &chan, std::string &found_path)
int rename(const std::string &name)
FileSource(Session &session, DataType type, const std::string &path, const std::string &origin, Source::Flag flags=Source::Flag(0))
virtual int init(const std::string &idstr, bool must_exist)
void set_within_session_from_path(const std::string &)
virtual int move_dependents_to_trash()
const std::string & path() const
MissingSource(const std::string &p, DataType t)
virtual const char * what() const
GtkImageIconNameData name
void session(lua_State *L)