Пример #1
0
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);

}
Пример #2
0
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);
    }
}
Пример #3
0
void VideoRecorder::setOutputFile(const QString &file)
{
    m_outputFile = file;
    m_recorder->setOutputLocation(file);
    emit outputFileChanged();
}
Пример #4
0
void SLURMProcess::outputFileChangedNotice(const openstudio::runmanager::FileInfo &file)
{
    emit outputFileChanged(file);
}
Пример #5
0
 void Process::emitOutputFileChanged(const openstudio::runmanager::FileInfo &file)
 {
   emit outputFileChanged(file);
 }