• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
klinebufferedprocess.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008 Rolf Eike Beer <kde@opensource.sf-tec.de>
3  */
4 
5 /***************************************************************************
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #ifndef KLINEBUFFEREDPROCESS_H
15 #define KLINEBUFFEREDPROCESS_H
16 
17 #include <KProcess>
18 
19 class QByteArray;
20 class KLineBufferedProcessPrivate;
21 
56 class KLineBufferedProcess : public KProcess
57 {
58  Q_OBJECT
59  friend class KLineBufferedProcessPrivate;
60 
61 public:
65  explicit KLineBufferedProcess(QObject *parent = 0);
66 
70  ~KLineBufferedProcess();
71 
84  bool readLineStandardOutput(QByteArray *line);
85 
98  bool readLineStandardError(QByteArray *line);
99 
105  bool hasLineStandardOutput() const;
106 
112  bool hasLineStandardError() const;
113 
114 signals:
121  void lineReadyStandardOutput();
122 
129  void lineReadyStandardError();
130 
131 private:
132  KLineBufferedProcessPrivate* const d;
133 
134  Q_PRIVATE_SLOT(d, void _k_receivedStdout())
135  Q_PRIVATE_SLOT(d, void _k_receivedStderr())
136 };
137 
138 #endif // KLINEBUFFEREDPROCESS_H
KProcess
QByteArray
KLineBufferedProcess::~KLineBufferedProcess
~KLineBufferedProcess()
Destructor.
Definition: klinebufferedprocess.cpp:53
KLineBufferedProcess::hasLineStandardOutput
bool hasLineStandardOutput() const
Checks if a line is ready on stdout.
Definition: klinebufferedprocess.cpp:118
QObject
KLineBufferedProcess::lineReadyStandardError
void lineReadyStandardError()
Emitted when there is a line of data available from stderr when there was previously none...
KLineBufferedProcess
Read output of a process split into lines.
Definition: klinebufferedprocess.h:56
KLineBufferedProcess::readLineStandardOutput
bool readLineStandardOutput(QByteArray *line)
Reads a line of text (excluding '\n') from stdout.
Definition: klinebufferedprocess.cpp:88
KLineBufferedProcess::KLineBufferedProcess
KLineBufferedProcess(QObject *parent=0)
Constructor.
Definition: klinebufferedprocess.cpp:45
KLineBufferedProcess::lineReadyStandardOutput
void lineReadyStandardOutput()
Emitted when there is a line of data available from stdout when there was previously none...
KLineBufferedProcess::KLineBufferedProcessPrivate
friend class KLineBufferedProcessPrivate
Definition: klinebufferedprocess.h:59
KLineBufferedProcess::readLineStandardError
bool readLineStandardError(QByteArray *line)
Reads a line of text (excluding '\n') from stderr.
Definition: klinebufferedprocess.cpp:103
KLineBufferedProcess::hasLineStandardError
bool hasLineStandardError() const
Checks if a line is ready on stdout.
Definition: klinebufferedprocess.cpp:123
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgpg

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal