#include <string>
#include <utility>
-#include <sigc++/signal.h>
-
+#include "pbd/signals.h"
#include "ardour/types.h"
-#include "ardour/session.h"
class XMLTree;
namespace ARDOUR {
+class Session;
+class ImportStatus;
+
/// Virtual interface class for element importers
class ElementImporter
{
virtual std::string get_info () const = 0;
/** Gets import status, if applicable. */
- virtual Session::ImportStatus * get_import_status () { return 0; }
+ virtual ImportStatus * get_import_status () { return 0; }
/** Prepares to move element
*
bool broken () { return _broken; }
/// Signal that requests for anew name
- static sigc::signal <std::pair<bool, std::string>, std::string, std::string> Rename;
+ static PBD::Signal2<std::pair<bool, std::string>,std::string, std::string> Rename;
/// Signal for ok/cancel prompting
- static sigc::signal <bool, std::string> Prompt;
+ static PBD::Signal1<bool,std::string> Prompt;
protected:
std::string name;
/// The sample rate of the session from which we are importing
- nframes_t sample_rate;
+ framecnt_t sample_rate;
/// Converts timecode time to a string
std::string timecode_to_string (Timecode::Time & time) const;
/// Converts samples so that times match the sessions sample rate
- nframes_t rate_convert_samples (nframes_t samples) const;
+ framecnt_t rate_convert_samples (framecnt_t samples) const;
/// Converts samples so that times match the sessions sample rate (for straight use in XML)
std::string rate_convert_samples (std::string const & samples) const;