X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fexecwrapper.h;h=b6106fde41a822cab6c787267c55f60cb4c863fd;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hp=e6d6dce04b4b65bfa67a5b0ff52fad98d8f24c36;hpb=1d94f920822184449fe1a6e76051e3c936d3163a;p=quassel.git diff --git a/src/client/execwrapper.h b/src/client/execwrapper.h index e6d6dce0..b6106fde 100644 --- a/src/client/execwrapper.h +++ b/src/client/execwrapper.h @@ -25,34 +25,36 @@ #include "bufferinfo.h" -class ExecWrapper : public QObject { - Q_OBJECT +class ExecWrapper : public QObject +{ + Q_OBJECT public: - ExecWrapper(QObject *parent = 0); + ExecWrapper(QObject *parent = 0); public slots: - void start(const BufferInfo &info, const QString &command); + void start(const BufferInfo &info, const QString &command); signals: - void error(const QString &errorMsg); - void output(const QString &out); + void error(const QString &errorMsg); + void output(const QString &out); private slots: - void processReadStdout(); - void processReadStderr(); - void processFinished(int exitCode, QProcess::ExitStatus exitStatus); - void processError(QProcess::ProcessError); + void processReadStdout(); + void processReadStderr(); + void processFinished(int exitCode, QProcess::ExitStatus exitStatus); + void processError(QProcess::ProcessError); - void postStdout(const QString &); - void postStderr(const QString &); + void postStdout(const QString &); + void postStderr(const QString &); private: - QProcess _process; - BufferInfo _bufferInfo; - QString _scriptName; - QString _stdoutBuffer; - QString _stderrBuffer; + QProcess _process; + BufferInfo _bufferInfo; + QString _scriptName; + QString _stdoutBuffer; + QString _stderrBuffer; }; + #endif