From 38382b792113cbf23881c1dca64e16c2d0207d45 Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Wed, 26 Nov 2008 17:13:50 +0000 Subject: More work on track import and some cleaning up of ElementImporter interface git-svn-id: svn://localhost/ardour2/branches/3.0@4265 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/audio_track_importer.h | 34 ++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) (limited to 'libs/ardour/ardour/audio_track_importer.h') diff --git a/libs/ardour/ardour/audio_track_importer.h b/libs/ardour/ardour/audio_track_importer.h index 172776863e..6beee4a408 100644 --- a/libs/ardour/ardour/audio_track_importer.h +++ b/libs/ardour/ardour/audio_track_importer.h @@ -21,44 +21,68 @@ #ifndef __ardour_audio_track_importer_h__ #define __ardour_audio_track_importer_h__ +#include + #include +#include #include #include namespace ARDOUR { +class AudioPlaylistImportHandler; +class AudioPlaylistImporter; class AudioTrackImportHandler : public ElementImportHandler { public: - AudioTrackImportHandler (XMLTree const & source, Session & session); + AudioTrackImportHandler (XMLTree const & source, Session & session, AudioPlaylistImportHandler & pl_handler); virtual ~AudioTrackImportHandler () {} virtual string get_info () const; + + private: + AudioPlaylistImportHandler & pl_handler; }; class AudioTrackImporter : public ElementImporter { public: - AudioTrackImporter (XMLTree const & source, Session & session, AudioTrackImportHandler & handler, XMLNode const & node); + AudioTrackImporter (XMLTree const & source, + Session & session, + AudioTrackImportHandler & track_handler, + XMLNode const & node, + AudioPlaylistImportHandler & pl_handler); string get_info () const; - bool prepare_move (); - void cancel_move (); - void move (); + + protected: + bool _prepare_move (); + void _cancel_move (); + void _move (); private: + typedef boost::shared_ptr PlaylistPtr; + typedef std::list PlaylistList; + bool parse_route_xml (); bool parse_io (); bool parse_processor (XMLNode & node); bool parse_controllable (XMLNode & node); bool parse_automation (XMLNode & node); + bool rate_convert_events (XMLNode & node); + AudioTrackImportHandler & track_handler; XMLNode xml_track; + PBD::ID old_ds_id; + PBD::ID new_ds_id; + + PlaylistList playlists; + AudioPlaylistImportHandler & pl_handler; }; } // namespace ARDOUR -- cgit v1.2.3