void RecorderManager::startRecord(const QString &recorder, const AbstractRecorder::Data &data) { if (m_recorder) { m_manager->unloadPlugin(m_recorder); } m_recorder = static_cast<AbstractRecorder*>(m_manager->loadPlugin(recorder)); if (!m_recorder) { recorderError(i18n("Cannot load Recorder %1.", recorder)); return; } else if (data.outputFile.isEmpty()) { recorderError(i18n("No output file specified.")); return; } connect(m_recorder, SIGNAL(error(QString)), this, SLOT(recorderError(QString))); connect(m_recorder, SIGNAL(outputFileChanged(QString)), this, SIGNAL(fileChanged(QString))); connect(m_recorder, SIGNAL(status(QString)), this, SIGNAL(status(QString))); connect(m_recorder, SIGNAL(finished(AbstractRecorder::ExitStatus)), this, SLOT(recorderFinished(AbstractRecorder::ExitStatus))); connect(m_recorder, SIGNAL(stateChanged(AbstractRecorder::State)), this, SIGNAL(stateChanged(AbstractRecorder::State))); m_recorder->record(data); }
void SLURMProcess::outputFilesNotice(const std::vector<FileInfo> &t_outputFiles) { m_outputFiles = t_outputFiles; for (std::vector<FileInfo>::const_iterator itr = t_outputFiles.begin(); itr != t_outputFiles.end(); ++itr) { emit outputFileChanged(*itr); } }
void VideoRecorder::setOutputFile(const QString &file) { m_outputFile = file; m_recorder->setOutputLocation(file); emit outputFileChanged(); }
void SLURMProcess::outputFileChangedNotice(const openstudio::runmanager::FileInfo &file) { emit outputFileChanged(file); }
void Process::emitOutputFileChanged(const openstudio::runmanager::FileInfo &file) { emit outputFileChanged(file); }