X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fexecwrapper.h;h=b6106fde41a822cab6c787267c55f60cb4c863fd;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hp=b0c52bef89d771819935fe36617c227ad83bff18;hpb=dd381ac71adfcd9bcad028b277fe65e13fecaf15;p=quassel.git diff --git a/src/client/execwrapper.h b/src/client/execwrapper.h index b0c52bef..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 &scriptName, const QStringList ¶ms = QStringList()); + void start(const BufferInfo &info, const QString &command); signals: - void stderr(const QString &errorMsg); - void stdout(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