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

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • kde3support
  • kdecore
k3procio.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 1997 David Sweet <dsweet@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 #ifndef K3PROCIO_H
19 #define K3PROCIO_H
20 
21 #include <kde3support_export.h>
22 #include <k3process.h>
23 
24 #include <QtCore/QString>
25 
26 class KProcIOPrivate;
27 class QTextCodec;
28 
50 class KDE3SUPPORT_EXPORT_DEPRECATED K3ProcIO : public K3Process
51 {
52  Q_OBJECT
53 
54 public:
58  explicit K3ProcIO ( QTextCodec *codec = 0 );
59 
63  ~K3ProcIO();
64 
72  void setComm (Communication comm);
73 
88  bool start (RunMode runmode = NotifyOnExit, bool includeStderr = false);
89 
96  bool writeStdin(const QString &line, bool appendnewline=true);
97 
104  bool writeStdin(const QByteArray &line, bool appendnewline);
105 
111  bool writeStdin(const QByteArray &data);
112 
116  void closeWhenDone();
117 
139  int readln (QString &line, bool autoAck=true, bool *partial=0);
140 
144  void resetAll ();
145 
155  void ackRead ();
156 
163  void enableReadSignals (bool enable);
164 
165 Q_SIGNALS:
171  void readReady(K3ProcIO *pio);
172 
173 protected:
174  void controlledEmission ();
175 
176 protected Q_SLOTS:
177  void received (K3Process *proc, char *buffer, int buflen);
178  void sent (K3Process *);
179 
180 private:
181  KProcIOPrivate* const d;
182 };
183 
184 #endif // K3PROCIO_H
185 
QByteArray
k3process.h
K3Process::start
virtual bool start(RunMode runmode=NotifyOnExit, Communication comm=NoCommunication)
Starts the process.
Definition: k3process.cpp:239
kde3support_export.h
K3Process::writeStdin
bool writeStdin(const char *buffer, int buflen)
Transmit data to the child process' stdin.
Definition: k3process.cpp:560
QString
QTextCodec
K3ProcIO
A slightly simpler interface to K3Process.
Definition: k3procio.h:50
K3Process::RunMode
RunMode
Run-modes for a child process.
Definition: k3process.h:165
K3Process
Definition: k3process.h:127
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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