00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SHELLCOMMANDDIALOG_H
00021 #define SHELLCOMMANDDIALOG_H
00022
00023 #include <tqstring.h>
00024
00025 #include <kpushbutton.h>
00026 #include <kdialog.h>
00027 class TQPushButton;
00028 class KShellCommandExecutor;
00029
00030 class KShellCommandDialog:public KDialog
00031 {
00032 Q_OBJECT
00033 public:
00034 KShellCommandDialog(const TQString& title, const TQString& command, TQWidget* parent=0, bool modal=false);
00035 virtual ~KShellCommandDialog();
00036
00037 int executeCommand();
00038 protected:
00039
00040 KShellCommandExecutor *m_shell;
00041 KPushButton *cancelButton;
00042 KPushButton *closeButton;
00043 protected slots:
00044 void disableStopButton();
00045 void slotClose();
00046 };
00047
00048 #endif