QtCore/qprocess.h Source File
Go to the documentation of this file.
57 #if (!defined(Q_OS_WIN32) && !defined(Q_OS_WINCE)) || defined(qdoc)
61 typedef struct _PROCESS_INFORMATION *
Q_PID;
65 class QProcessPrivate;
66 class QProcessEnvironmentPrivate;
78 {
return !(*
this == other); }
97 friend class QProcessPrivate;
98 friend class QProcessEnvironmentPrivate;
139 ProcessChannelMode readChannelMode()
const;
140 void setReadChannelMode(ProcessChannelMode
mode);
141 ProcessChannelMode processChannelMode()
const;
142 void setProcessChannelMode(ProcessChannelMode
mode);
144 ProcessChannel readChannel()
const;
145 void setReadChannel(ProcessChannel
channel);
147 void closeReadChannel(ProcessChannel
channel);
148 void closeWriteChannel();
150 void setStandardInputFile(
const QString &fileName);
151 void setStandardOutputFile(
const QString &fileName, OpenMode
mode = Truncate);
152 void setStandardErrorFile(
const QString &fileName, OpenMode
mode = Truncate);
153 void setStandardOutputProcess(
QProcess *destination);
155 #if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN)
156 QString nativeArguments()
const;
157 void setNativeArguments(
const QString &arguments);
160 QString workingDirectory()
const;
161 void setWorkingDirectory(
const QString &dir);
163 void setEnvironment(
const QStringList &environment);
174 bool waitForStarted(
int msecs = 30000);
177 bool waitForFinished(
int msecs = 30000);
182 int exitCode()
const;
209 void finished(
int exitCode);
214 void readyReadStandardOutput();
215 void readyReadStandardError();
218 void setProcessState(ProcessState state);
220 virtual void setupChildProcess();
236 friend class QProcessManager;
239 #endif // QT_NO_PROCESS
bool operator!=(const QProcessEnvironment &other) const
virtual bool isSequential() const
#define Q_PRIVATE_SLOT(d, signature)
virtual qint64 writeData(const char *data, qint64 len)=0
virtual qint64 bytesToWrite() const
virtual qint64 readData(char *data, qint64 maxlen)=0
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
virtual bool canReadLine() const
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
virtual bool waitForReadyRead(int msecs)
QT_BEGIN_HEADER QT_BEGIN_NAMESPACE typedef qint64 Q_PID
GLsizei const GLfloat * value
GLuint const GLchar * name
virtual bool waitForBytesWritten(int msecs)
virtual qint64 bytesAvailable() const
virtual bool atEnd() const