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

KDE3Support

  • 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
26class KProcIOPrivate;
27class QTextCodec;
28
48
49
50class KDE3SUPPORT_EXPORT_DEPRECATED K3ProcIO : public K3Process
51{
52 Q_OBJECT
53
54public:
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
165Q_SIGNALS:
171 void readReady(K3ProcIO *pio);
172
173protected:
174 void controlledEmission ();
175
176protected Q_SLOTS:
177 void received (K3Process *proc, char *buffer, int buflen);
178 void sent (K3Process *);
179
180private:
181 KProcIOPrivate* const d;
182};
183
184#endif // K3PROCIO_H
185
K3ProcIO::controlledEmission
void controlledEmission()
Definition k3procio.cpp:205
K3ProcIO::sent
void sent(K3Process *)
Definition k3procio.cpp:174
K3ProcIO::closeWhenDone
void closeWhenDone()
Closes stdin after all data has been send.
Definition k3procio.cpp:163
K3ProcIO::readReady
void readReady(K3ProcIO *pio)
Emitted when the process is ready for reading.
K3ProcIO::setComm
void setComm(Communication comm)
Sets the communication mode to be passed to K3Process::start() by start().
Definition k3procio.cpp:91
K3ProcIO::resetAll
void resetAll()
Reset the class.
Definition k3procio.cpp:67
K3ProcIO::enableReadSignals
void enableReadSignals(bool enable)
Turns readReady() signals on and off.
Definition k3procio.cpp:216
K3ProcIO::K3ProcIO
K3ProcIO(QTextCodec *codec=0)
Constructor.
Definition k3procio.cpp:49
K3ProcIO::ackRead
void ackRead()
Call this after you have finished processing a readReady() signal.
Definition k3procio.cpp:197
K3ProcIO::received
void received(K3Process *proc, char *buffer, int buflen)
Definition k3procio.cpp:190
K3ProcIO::readln
int readln(QString &line, bool autoAck=true, bool *partial=0)
Reads a line of text (up to and including '\n').
Definition k3procio.cpp:225
K3Process::RunMode
RunMode
Run-modes for a child process.
Definition k3process.h:165
K3Process::NotifyOnExit
@ NotifyOnExit
The application is notified when the subprocess dies.
Definition k3process.h:174
K3Process::K3Process
K3Process(QObject *parent=0L)
Constructor.
Definition k3process.cpp:103
K3Process::start
virtual bool start(RunMode runmode=NotifyOnExit, Communication comm=NoCommunication)
Starts the process.
Definition k3process.cpp:239
K3Process::writeStdin
bool writeStdin(const char *buffer, int buflen)
Definition k3process.cpp:560
k3process.h
kde3support_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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