##// END OF EJS Templates
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes...
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@70 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r34:5daedfb035c8
Show More
PythonQtWrapper_QProcess.h
123 lines | 6.5 KiB | text/x-c | CLexer
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #ifndef PYTHONQTWRAPPER_QPROCESS_H
#define PYTHONQTWRAPPER_QPROCESS_H
#include <qprocess.h>
#include <QObject>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQt.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qobject.h>
#include <qprocess.h>
#include <qstringlist.h>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 class PythonQtShell_QProcess : public QProcess
{
public:
PythonQtShell_QProcess(QObject* parent = 0):QProcess(parent),_wrapper(NULL) {};
virtual bool atEnd() const;
virtual qint64 bytesAvailable() const;
virtual qint64 bytesToWrite() const;
virtual bool canReadLine() const;
virtual void childEvent(QChildEvent* arg__1);
virtual void close();
virtual void customEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual bool isSequential() const;
virtual bool open(QIODevice::OpenMode mode);
virtual qint64 pos() const;
virtual qint64 readData(char* data, qint64 maxlen);
virtual qint64 readLineData(char* data, qint64 maxlen);
virtual bool reset();
virtual bool seek(qint64 pos);
virtual void setupChildProcess();
virtual qint64 size() const;
virtual void timerEvent(QTimerEvent* arg__1);
virtual bool waitForBytesWritten(int msecs = 30000);
virtual bool waitForReadyRead(int msecs = 30000);
virtual qint64 writeData(const char* data, qint64 len);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QProcess : public QProcess
{ public:
florianlink
upgraded wrappers to current generator version...
r28 inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QProcess::waitForBytesWritten(msecs); }
inline void promoted_close() { QProcess::close(); }
inline bool promoted_isSequential() const { return QProcess::isSequential(); }
inline bool promoted_waitForReadyRead(int msecs = 30000) { return QProcess::waitForReadyRead(msecs); }
inline qint64 promoted_readData(char* data, qint64 maxlen) { return QProcess::readData(data, maxlen); }
inline qint64 promoted_writeData(const char* data, qint64 len) { return QProcess::writeData(data, len); }
inline void promoted_setupChildProcess() { QProcess::setupChildProcess(); }
inline bool promoted_canReadLine() const { return QProcess::canReadLine(); }
inline bool promoted_atEnd() const { return QProcess::atEnd(); }
inline qint64 promoted_bytesToWrite() const { return QProcess::bytesToWrite(); }
inline qint64 promoted_bytesAvailable() const { return QProcess::bytesAvailable(); }
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 };
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 class PythonQtWrapper_QProcess : public QObject
{ Q_OBJECT
public:
Q_ENUMS(ProcessError ProcessChannelMode ProcessChannel ProcessState ExitStatus )
enum ProcessError{
FailedToStart = QProcess::FailedToStart, Crashed = QProcess::Crashed, Timedout = QProcess::Timedout, ReadError = QProcess::ReadError, WriteError = QProcess::WriteError, UnknownError = QProcess::UnknownError};
enum ProcessChannelMode{
SeparateChannels = QProcess::SeparateChannels, MergedChannels = QProcess::MergedChannels, ForwardedChannels = QProcess::ForwardedChannels};
enum ProcessChannel{
StandardOutput = QProcess::StandardOutput, StandardError = QProcess::StandardError};
enum ProcessState{
NotRunning = QProcess::NotRunning, Starting = QProcess::Starting, Running = QProcess::Running};
enum ExitStatus{
NormalExit = QProcess::NormalExit, CrashExit = QProcess::CrashExit};
public slots:
QProcess* new_QProcess(QObject* parent = 0);
void delete_QProcess(QProcess* obj) { delete obj; }
florianlink
upgraded wrappers to current generator version...
r28 void setStandardInputFile(QProcess* theWrappedObject, const QString& fileName);
int exitCode(QProcess* theWrappedObject) const;
bool waitForBytesWritten(QProcess* theWrappedObject, int msecs = 30000);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void setStandardOutputProcess(QProcess* theWrappedObject, QProcess* destination);
florianlink
upgraded wrappers to current generator version...
r28 bool static_QProcess_startDetached(const QString& program, const QStringList& arguments);
QString workingDirectory(QProcess* theWrappedObject) const;
bool static_QProcess_startDetached(const QString& program, const QStringList& arguments, const QString& workingDirectory, qint64* pid = 0);
void start(QProcess* theWrappedObject, const QString& program, const QStringList& arguments, QIODevice::OpenMode mode = QIODevice::ReadWrite);
bool static_QProcess_startDetached(const QString& program);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void close(QProcess* theWrappedObject);
florianlink
upgraded wrappers to current generator version...
r28 void setWorkingDirectory(QProcess* theWrappedObject, const QString& dir);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 bool isSequential(QProcess* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 bool waitForReadyRead(QProcess* theWrappedObject, int msecs = 30000);
qint64 readData(QProcess* theWrappedObject, char* data, qint64 maxlen);
QByteArray readAllStandardError(QProcess* theWrappedObject);
QProcess::ProcessState state(QProcess* theWrappedObject) const;
int static_QProcess_execute(const QString& program, const QStringList& arguments);
void setEnvironment(QProcess* theWrappedObject, const QStringList& environment);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 int static_QProcess_execute(const QString& program);
florianlink
upgraded wrappers to current generator version...
r28 void setProcessChannelMode(QProcess* theWrappedObject, QProcess::ProcessChannelMode mode);
qint64 writeData(QProcess* theWrappedObject, const char* data, qint64 len);
void setReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel);
void setupChildProcess(QProcess* theWrappedObject);
QByteArray readAllStandardOutput(QProcess* theWrappedObject);
void start(QProcess* theWrappedObject, const QString& program, QIODevice::OpenMode mode = QIODevice::ReadWrite);
bool waitForFinished(QProcess* theWrappedObject, int msecs = 30000);
bool waitForStarted(QProcess* theWrappedObject, int msecs = 30000);
QProcess::ExitStatus exitStatus(QProcess* theWrappedObject) const;
QStringList static_QProcess_systemEnvironment();
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 QProcess::ProcessChannel readChannel(QProcess* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 void closeWriteChannel(QProcess* theWrappedObject);
QProcess::ProcessChannelMode processChannelMode(QProcess* theWrappedObject) const;
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 void setStandardErrorFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode = QIODevice::Truncate);
florianlink
upgraded wrappers to current generator version...
r28 QProcess::ProcessError error(QProcess* theWrappedObject) const;
void closeReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 void setStandardOutputFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode = QIODevice::Truncate);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QStringList environment(QProcess* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 bool canReadLine(QProcess* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 bool atEnd(QProcess* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 qint64 bytesToWrite(QProcess* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 qint64 bytesAvailable(QProcess* theWrappedObject) const;
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 };
#endif // PYTHONQTWRAPPER_QPROCESS_H