process.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef PROCESS_H
00022 #define PROCESS_H
00023
00024
00025 #include "qobject.h"
00026 #include "qstringlist.h"
00027 #include "qdir.h"
00028
00029
00030
00031
00032 class ProcessPrivate;
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 class Q_EXPORT Process : public QObject
00058 {
00059 Q_OBJECT
00060 public:
00061 Process( QObject *parent=0, const char *name=0 );
00062 Process( const QString& arg0, QObject *parent=0, const char *name=0 );
00063 Process( const QStringList& args, QObject *parent=0, const char *name=0 );
00064 ~Process();
00065
00066
00067 QStringList arguments() const;
00068 virtual void setArguments( const QStringList& args );
00069 virtual void addArgument( const QString& arg );
00070
00071 virtual bool exec( const QString& in, QString& out, QStringList *env=0 );
00072 virtual bool exec( const QByteArray& in, QByteArray& out, QStringList *env=0 );
00073
00074 private:
00075 void init();
00076
00077 private:
00078 ProcessPrivate *d;
00079 QStringList _arguments;
00080
00081 int exitStat;
00082 bool exitNormal;
00083 bool ioRedirection;
00084 bool notifyOnExit;
00085 bool wroteToStdinConnected;
00086
00087 friend class ProcessPrivate;
00088 friend class ProcessManager;
00089 friend class Proc;
00090 };
00091
00092
00093
00094 #endif // QPROCESS_H
This file is part of the documentation for OPIE Version 1.5.5.