void SvnAddJob::start() { if ( m_job->locations().isEmpty() ) { internalJobFailed(); setErrorText( i18n( "Not enough information to add file" ) ); } else { qCDebug(PLUGIN_SVN) << "adding urls:" << m_job->locations(); startInternalJob(); } }
void SvnLogJob::start() { if( !m_job->location().isValid() ) { internalJobFailed( m_job ); setErrorText( i18n( "Not enough information to log location" ) ); }else { connect( m_job, SIGNAL(logEvent(KDevelop::VcsEvent)), this, SLOT(logEventReceived(KDevelop::VcsEvent)), Qt::QueuedConnection ); kDebug(9510) << "logging url:" << m_job->location(); ThreadWeaver::Weaver::instance()->enqueue( m_job ); } }
void SvnBlameJob::start() { if( !m_job->location().isValid() ) { internalJobFailed( m_job ); setErrorText( i18n( "Not enough information to blame location" ) ); }else { connect( m_job, SIGNAL(blameLine(KDevelop::VcsAnnotationLine)), this, SLOT(blameLineReceived(KDevelop::VcsAnnotationLine)) ); kDebug(9510) << "blameging url:" << m_job->location(); ThreadWeaver::Weaver::instance()->enqueue( m_job ); } }
void SvnDiffJob::start() { disconnect( m_job, SIGNAL(done(ThreadWeaver::Job*)), this, SLOT(internalJobDone(ThreadWeaver::Job*)) ); if( !m_job->source().isValid() || ( !m_job->destination().isValid() && ( m_job->srcRevision().revisionType() == KDevelop::VcsRevision::Invalid || m_job->dstRevision().revisionType() == KDevelop::VcsRevision::Invalid ) ) ) { internalJobFailed( m_job ); setErrorText( i18n( "Not enough information given to execute diff" ) ); }else { connect( m_job, SIGNAL(gotDiff(QString)), this, SLOT(setDiff(QString)), Qt::QueuedConnection ); ThreadWeaver::Weaver::instance()->enqueue( m_job ); } }