KDevelop API Documentation

cvsprocesswidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by KDevelop Authors                                *
00003  *   www.kdevelop.org                                                      *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef _CVSPROCESSWIDGET_H_
00013 #define _CVSPROCESSWIDGET_H_
00014 
00015 #include <qtextedit.h>
00016 #include <qstringlist.h>
00017 
00018 #include "cvsservicedcopIface.h"
00019 #include "bufferedstringreader.h"
00020 
00021 class CvsServicePart;
00022 class DCOPRef;
00023 class CvsJob_stub;
00024 class CvsService_stub;
00025 class QStyleSheetItem;
00026 
00027 class CvsProcessWidget : public QTextEdit, virtual public CVSServiceDCOPIface
00028 {
00029     Q_OBJECT
00030 public:
00031     CvsProcessWidget( CvsService_stub *service, CvsServicePart *part,
00032         QWidget *parent, const char *name );
00033     virtual ~CvsProcessWidget();
00034 
00035     bool startJob( const DCOPRef &aJob );
00036 
00041     bool isAlreadyWorking() const;
00042     void cancelJob();
00043 
00044     virtual void clear();
00045 
00046     QStringList output() const { return m_output; }
00047     QStringList errors() const { return m_errors; }
00048 
00049 //private slots:
00051     virtual void slotJobExited( bool normalExit, int exitStatus );
00052     virtual void slotReceivedOutput( QString someOutput );
00053     virtual void slotReceivedErrors( QString someErrors );
00054 
00055 signals:
00056     void jobFinished( bool normalExit, int exitStatus );
00057 
00058 private:
00059     void showInfo( const QStringList &msg );
00060     void showError( const QStringList &msg  );
00061     void showOutput( const QStringList &msg  );
00062 
00063     CvsServicePart *m_part;
00064     CvsService_stub *m_service;
00065     CvsJob_stub *m_job;
00066 
00069     BufferedStringReader m_outputBuffer,
00070         m_errorBuffer;
00071 
00072     QStringList m_output,
00073         m_errors;
00074 };
00075 
00076 #endif
00077 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:59 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003