diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-11 12:15:14 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-11 12:15:14 -0500 |
commit | c3725d0a7bb78c4ef681359ace4972b0dc5a8f36 (patch) | |
tree | 986381020043567bcfe77199a1d4ef8bde13b370 /libs/ardour/ardour/session.h | |
parent | 0614bc5e8192fa300b0913ec4e7fb64263679cff (diff) |
add initial code (and stubs) for save-as related functionality
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 895bbd6f17..83af5c2da6 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -392,7 +392,21 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop framecnt_t worst_input_latency () const { return _worst_input_latency; } framecnt_t worst_track_latency () const { return _worst_track_latency; } framecnt_t worst_playback_latency () const { return _worst_output_latency + _worst_track_latency; } + + int consolidate_all_media (); + + struct SaveAs { + std::string new_parent_folder; + std::string new_name; + bool switch_to; + bool copy_media; + bool copy_external; + + /* emitted as we make progress */ + PBD::Signal3<bool,float,int64_t,int64_t> Progress; + }; + int save_as (SaveAs&); int save_state (std::string snapshot_name, bool pending = false, bool switch_to_snapshot = false); int restore_state (std::string snapshot_name); int save_template (std::string template_name); @@ -401,7 +415,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop void remove_state (std::string snapshot_name); void rename_state (std::string old_name, std::string new_name); void remove_pending_capture_state (); - int rename (const std::string&); + int rename (const std::string&, bool after_copy = false); bool get_nsm_state () const { return _under_nsm_control; } void set_nsm_state (bool state) { _under_nsm_control = state; } bool save_default_options (); |