void mark_take (const Glib::ustring& id);
void mark_immutable ();
- const Glib::ustring& take_id () const { return _take_id; }
- bool is_embedded () const { return _is_embedded; }
- uint16_t channel() const { return _channel; }
+ const Glib::ustring& take_id () const { return _take_id; }
+ bool within_session () const { return _within_session; }
+ uint16_t channel() const { return _channel; }
- int set_state (const XMLNode&, int version = 3000);
+ int set_state (const XMLNode&, int version);
int set_source_name (const Glib::ustring& newname, bool destructive);
protected:
FileSource (Session& session, DataType type,
- const Glib::ustring& path, bool embedded,
+ const Glib::ustring& path,
Source::Flag flags = Source::Flag(0));
FileSource (Session& session, const XMLNode& node, bool must_exist);
virtual int init (const Glib::ustring& idstr, bool must_exist);
virtual int move_dependents_to_trash() { return 0; }
+ void set_within_session_from_path (const std::string&);
bool removable () const;
Glib::ustring _take_id;
bool _file_is_new;
uint16_t _channel;
- bool _is_embedded;
+ bool _within_session;
static std::map<DataType, Glib::ustring> search_paths;
};