Commit a979577c authored by Christian Loose's avatar Christian Loose
Browse files

Use DCOP service to update status for UpdateView

svn path=/trunk/kdesdk/cervisia/; revision=197373
parent a6e0e06e
2003-01-04 Christian Loose <christian.loose@hamburg.de>
* Use DCOP service to update status for UpdateView
2003-01-02 Christian Loose <christian.loose@hamburg.de>
* Added new startJob() method to ProtocolView
......
......@@ -819,6 +819,35 @@ void CervisiaPart::updateOrStatus(bool noact, const QString &extraopt)
update->prepareJob(opt_updateRecursive,
noact? UpdateView::UpdateNoAct : UpdateView::Update);
// TODO: cleanup when update is also handled by DCOP service
if( noact )
{
DCOPRef cvsJob;
QString files = joinLine(list);
DCOPReply job = cvsService.call("status(QString, bool)", files, opt_updateRecursive);
if( job.isValid() )
cvsJob = job;
else
return;
// get command line from cvs job
QString cmdline;
DCOPReply reply = cvsJob.call("cvsCommand()");
if( reply.isValid() )
reply.get<QString>(cmdline);
if( protocol->startJob(cvsJob) )
{
showJobStart(cmdline);
connect( protocol, SIGNAL(receivedLine(QString)), update, SLOT(processUpdateLine(QString)) );
connect( protocol, SIGNAL(jobFinished(bool)), update, SLOT(finishJob(bool)) );
connect( protocol, SIGNAL(jobFinished(bool)), this, SLOT(slotJobFinished(bool)) );
}
return;
}
QString cmdline;
if (noact)
cmdline = cvsClient(repository) + " -n update ";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment