KDevelop API Documentation

CvsProcessWidget Class Reference

#include <cvsprocesswidget.h>

Inheritance diagram for CvsProcessWidget:

QTextEdit CVSServiceDCOPIface DCOPObject List of all members.

Signals

void jobFinished (bool normalExit, int exitStatus)

Public Member Functions

 CvsProcessWidget (CvsService_stub *service, CvsServicePart *part, QWidget *parent, const char *name)
virtual ~CvsProcessWidget ()
bool startJob (const DCOPRef &aJob)
bool isAlreadyWorking () const
void cancelJob ()
virtual void clear ()
QStringList output () const
QStringList errors () const
virtual void slotJobExited (bool normalExit, int exitStatus)
 DCOP Iface.

virtual void slotReceivedOutput (QString someOutput)
virtual void slotReceivedErrors (QString someErrors)

Private Member Functions

void showInfo (const QStringList &msg)
void showError (const QStringList &msg)
void showOutput (const QStringList &msg)

Private Attributes

CvsServicePartm_part
CvsService_stub * m_service
CvsJob_stub * m_job
BufferedStringReader m_outputBuffer
 Buffered reader for safely reading stdout and stderr from cvs commands' output.

BufferedStringReader m_errorBuffer
 Buffered reader for safely reading stdout and stderr from cvs commands' output.

QStringList m_output
QStringList m_errors

Constructor & Destructor Documentation

CvsProcessWidget::CvsProcessWidget CvsService_stub *  service,
CvsServicePart part,
QWidget parent,
const char *  name
 

Definition at line 46 of file cvsprocesswidget.cpp.

References CvsProcessWidget().

Referenced by CvsProcessWidget().

CvsProcessWidget::~CvsProcessWidget  )  [virtual]
 

Definition at line 86 of file cvsprocesswidget.cpp.

References m_job.


Member Function Documentation

void CvsProcessWidget::cancelJob  ) 
 

Definition at line 158 of file cvsprocesswidget.cpp.

References KDevPlugin::core(), endl(), kdDebug(), m_job, m_part, KDevCore::running(), and showInfo().

Referenced by CvsServicePartImpl::flushJobs().

void CvsProcessWidget::clear  )  [virtual]
 

Definition at line 106 of file cvsprocesswidget.cpp.

References m_errors, and m_output.

Referenced by startJob().

QStringList CvsProcessWidget::errors  )  const [inline]
 

Definition at line 47 of file cvsprocesswidget.h.

References m_errors.

Referenced by CvsServicePartImpl::slotDiffFinished().

bool CvsProcessWidget::isAlreadyWorking  )  const
 

Returns:
true if there is already a job pending, false otherwise (another job can be requested)

Definition at line 96 of file cvsprocesswidget.cpp.

References m_job.

void CvsProcessWidget::jobFinished bool  normalExit,
int  exitStatus
[signal]
 

Referenced by slotJobExited(), and startJob().

QStringList CvsProcessWidget::output  )  const [inline]
 

Definition at line 46 of file cvsprocesswidget.h.

References m_output.

Referenced by CvsServicePartImpl::slotDiffFinished().

void CvsProcessWidget::showError const QStringList msg  )  [private]
 

Definition at line 246 of file cvsprocesswidget.cpp.

References showError().

Referenced by showError(), and slotReceivedErrors().

void CvsProcessWidget::showInfo const QStringList msg  )  [private]
 

Definition at line 238 of file cvsprocesswidget.cpp.

References showInfo().

Referenced by cancelJob(), showInfo(), slotJobExited(), and startJob().

void CvsProcessWidget::showOutput const QStringList msg  )  [private]
 

Definition at line 254 of file cvsprocesswidget.cpp.

References showOutput().

Referenced by showOutput(), and slotReceivedOutput().

void CvsProcessWidget::slotJobExited bool  normalExit,
int  exitStatus
[virtual]
 

DCOP Iface.

Implements CVSServiceDCOPIface.

Definition at line 174 of file cvsprocesswidget.cpp.

References KDevPlugin::core(), endl(), jobFinished(), kdDebug(), m_job, m_part, KDevPlugin::mainWindow(), KDevCore::running(), showInfo(), slotJobExited(), and KDevMainWindow::statusBar().

Referenced by slotJobExited().

void CvsProcessWidget::slotReceivedErrors QString  someErrors  )  [virtual]
 

Implements CVSServiceDCOPIface.

Definition at line 219 of file cvsprocesswidget.cpp.

References endl(), kdDebug(), m_errorBuffer, m_errors, BufferedStringReader::process(), showError(), and slotReceivedErrors().

Referenced by slotReceivedErrors().

void CvsProcessWidget::slotReceivedOutput QString  someOutput  )  [virtual]
 

Implements CVSServiceDCOPIface.

Definition at line 200 of file cvsprocesswidget.cpp.

References endl(), kdDebug(), m_output, m_outputBuffer, BufferedStringReader::process(), showOutput(), and slotReceivedOutput().

Referenced by slotReceivedOutput().

bool CvsProcessWidget::startJob const DCOPRef aJob  ) 
 

Definition at line 115 of file cvsprocesswidget.cpp.

References DCOPRef::app(), clear(), KDevPlugin::core(), endl(), jobFinished(), kdDebug(), m_job, m_part, KDevPlugin::mainWindow(), DCOPRef::obj(), KDevMainWindow::raiseView(), KDevCore::running(), showInfo(), startJob(), and KDevMainWindow::statusBar().

Referenced by DirectScheduler::schedule(), and startJob().


Member Data Documentation

BufferedStringReader CvsProcessWidget::m_errorBuffer [private]
 

Buffered reader for safely reading stdout and stderr from cvs commands' output.

Definition at line 69 of file cvsprocesswidget.h.

Referenced by slotReceivedErrors().

QStringList CvsProcessWidget::m_errors [private]
 

Definition at line 72 of file cvsprocesswidget.h.

Referenced by clear(), errors(), and slotReceivedErrors().

CvsJob_stub* CvsProcessWidget::m_job [private]
 

Definition at line 65 of file cvsprocesswidget.h.

Referenced by cancelJob(), isAlreadyWorking(), slotJobExited(), startJob(), and ~CvsProcessWidget().

QStringList CvsProcessWidget::m_output [private]
 

Definition at line 72 of file cvsprocesswidget.h.

Referenced by clear(), output(), and slotReceivedOutput().

BufferedStringReader CvsProcessWidget::m_outputBuffer [private]
 

Buffered reader for safely reading stdout and stderr from cvs commands' output.

Definition at line 69 of file cvsprocesswidget.h.

Referenced by slotReceivedOutput().

CvsServicePart* CvsProcessWidget::m_part [private]
 

Definition at line 63 of file cvsprocesswidget.h.

Referenced by cancelJob(), slotJobExited(), and startJob().

CvsService_stub* CvsProcessWidget::m_service [private]
 

Definition at line 64 of file cvsprocesswidget.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:22 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003