ardour
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ARDOUR::LocationImporter Class Reference

#include <location_importer.h>

Inheritance diagram for ARDOUR::LocationImporter:
ARDOUR::ElementImporter

Public Member Functions

 LocationImporter (XMLTree const &source, Session &session, LocationImportHandler &handler, XMLNode const &node)
 
 ~LocationImporter ()
 
std::string get_info () const
 
- Public Member Functions inherited from ARDOUR::ElementImporter
 ElementImporter (XMLTree const &source, ARDOUR::Session &session)
 
virtual ~ElementImporter ()
 
virtual std::string get_name () const
 
virtual ImportStatusget_import_status ()
 
bool prepare_move ()
 
void cancel_move ()
 
void move ()
 Moves the element to the taget session. More...
 
bool broken ()
 Check if element is broken. Cannot be moved if broken. More...
 

Protected Member Functions

bool _prepare_move ()
 
void _cancel_move ()
 Cancel move. More...
 
void _move ()
 
- Protected Member Functions inherited from ARDOUR::ElementImporter
bool queued ()
 Ture if the element has been prepared and queued for importing. More...
 
std::string timecode_to_string (Timecode::Time &time) const
 Converts timecode time to a string. More...
 
framecnt_t rate_convert_samples (framecnt_t samples) const
 Converts samples so that times match the sessions sample rate. More...
 
std::string rate_convert_samples (std::string const &samples) const
 Converts samples so that times match the sessions sample rate (for straight use in XML) More...
 
void set_broken ()
 Set element broken. More...
 

Private Member Functions

void parse_xml ()
 

Private Attributes

LocationImportHandlerhandler
 
XMLNode xml_location
 
Locationlocation
 

Additional Inherited Members

- Static Public Attributes inherited from ARDOUR::ElementImporter
static PBD::Signal2< std::pair
< bool, std::string >
, std::string, std::string > 
Rename
 Signal that requests for anew name. More...
 
static PBD::Signal1< bool,
std::string > 
Prompt
 Signal for ok/cancel prompting. More...
 
- Protected Attributes inherited from ARDOUR::ElementImporter
XMLTree const & source
 Source XML-tree. More...
 
ARDOUR::Sessionsession
 Target session. More...
 
std::string name
 Name of element. More...
 
framecnt_t sample_rate
 The sample rate of the session from which we are importing. More...
 

Detailed Description

Definition at line 43 of file location_importer.h.

Constructor & Destructor Documentation

LocationImporter::LocationImporter ( XMLTree const &  source,
Session session,
LocationImportHandler handler,
XMLNode const &  node 
)

Definition at line 65 of file location_importer.cc.

LocationImporter::~LocationImporter ( )

Definition at line 97 of file location_importer.cc.

Member Function Documentation

void LocationImporter::_cancel_move ( )
protectedvirtual

Cancel move.

Implements ARDOUR::ElementImporter.

Definition at line 180 of file location_importer.cc.

void LocationImporter::_move ( )
protectedvirtual

Moves the element to the taget session In addition to actually adding the element to the session changing ids, renaming files etc. should be taken care of.

Implements ARDOUR::ElementImporter.

Definition at line 187 of file location_importer.cc.

bool LocationImporter::_prepare_move ( )
protectedvirtual

Should take care of all tasks that need to be done before moving the element. This includes prompting the user for more information if necessary.

Returns
whether or not the element can be moved

Implements ARDOUR::ElementImporter.

Definition at line 133 of file location_importer.cc.

string LocationImporter::get_info ( ) const
virtual

Gets a textual representation of the element

Returns
a textual representation on this specific element

Implements ARDOUR::ElementImporter.

Definition at line 105 of file location_importer.cc.

void ARDOUR::LocationImporter::parse_xml ( )
private

Member Data Documentation

LocationImportHandler& ARDOUR::LocationImporter::handler
private

Definition at line 57 of file location_importer.h.

Location* ARDOUR::LocationImporter::location
private

Definition at line 59 of file location_importer.h.

XMLNode ARDOUR::LocationImporter::xml_location
private

Definition at line 58 of file location_importer.h.


The documentation for this class was generated from the following files: