• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

util

processlinemaker.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright 2002 John Firebaugh <jfirebaugh@kde.org>
00003    Copyright 2007 Andreas Pakulat <apaku@gmx.de>
00004    Copyright 2007 Oswald Buddenhagen <ossi@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef _PROCESSLINEMAKER_H_
00023 #define _PROCESSLINEMAKER_H_
00024 
00025 #include <QtCore/QObject>
00026 #include "utilexport.h"
00027 
00033 class QProcess;
00034 
00035 class QStringList;
00036 
00041 namespace KDevelop
00042 {
00043 
00044 class KDEVPLATFORMUTIL_EXPORT ProcessLineMaker : public QObject
00045 {
00046     Q_OBJECT
00047 
00048 public:
00049     ProcessLineMaker( QObject* parent = 0 );
00050     ProcessLineMaker( QProcess* process, QObject* parent = 0 );
00051     
00052     ~ProcessLineMaker();
00053 
00058     void discardBuffers();
00059 
00071     void flushBuffers();
00072 
00073 public Q_SLOTS:
00081     void slotReceivedStdout( const QByteArray& buffer );
00082 
00090     void slotReceivedStderr( const QByteArray& buffer );
00091 
00092 Q_SIGNALS:
00100     void receivedStdoutLines( const QStringList& lines );
00101 
00109     void receivedStderrLines( const QStringList& lines );
00110 
00111 private:
00112     Q_PRIVATE_SLOT(d, void slotReadyReadStdout( ) )
00113     Q_PRIVATE_SLOT(d, void slotReadyReadStderr( ) )
00114     class ProcessLineMakerPrivate* const d;
00115     friend class ProcessLineMakerPrivate;
00116 };
00117 
00118 }
00119 
00120 #endif

util

Skip menu "util"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal