00001 /* 00002 Description: stdout viewer 00003 00004 Author: Marco Costalba (C) 2006 00005 00006 Copyright: See COPYING file that comes with this distribution 00007 00008 */ 00009 #ifndef CONSOLEIMPL_H 00010 #define CONSOLEIMPL_H 00011 00012 #include <qguardedptr.h> 00013 #include "consolebase.h" 00014 00015 class MyProcess; 00016 class Git; 00017 00018 class ConsoleImpl : public Console { 00019 Q_OBJECT 00020 public: 00021 ConsoleImpl(const QString& nm, Git* g); 00022 bool start(const QString& cmd, const QString& args, QStringList* env); 00023 00024 signals: 00025 void customAction_exited(const QString& name); 00026 00027 public slots: 00028 void on_procDataReady(const QByteArray& data); 00029 void on_eof(); 00030 00031 protected slots: 00032 void pushButtonStop_clicked(); 00033 void pushButtonOk_clicked(); 00034 void closeEvent(QCloseEvent* ce); 00035 00036 private: 00037 QString name; 00038 Git* git; 00039 QGuardedPtr<MyProcess> proc; 00040 QString inpBuf; 00041 }; 00042 00043 #endif