shellfilterdlg.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2002 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef _SHELLFILTERDLG_H_ 00013 #define _SHELLFILTERDLG_H_ 00014 00015 #include <qdialog.h> 00016 00017 class QComboBox; 00018 class QPushButton; 00019 class KDevPlugin; 00020 class KProcess; 00021 00022 00023 class ShellFilterDialog : public QDialog 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 ShellFilterDialog(); 00029 ~ShellFilterDialog(); 00030 00031 virtual int exec(); 00032 00033 void setText(const QString &str) 00034 { m_instr = str.local8Bit(); } 00035 QString text() const 00036 { return m_outstr; } 00037 00038 private slots: 00039 void slotStartClicked(); 00040 void slotReceivedStdout(KProcess *, char *text, int len); 00041 void slotWroteStdin(KProcess *); 00042 void slotProcessExited(KProcess *); 00043 00044 private: 00045 QPushButton *start_button, *cancel_button; 00046 QComboBox *combo; 00047 KProcess *m_proc; 00048 QCString m_instr; 00049 QString m_outstr; 00050 }; 00051 00052 #endif