00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef QBANKING_PROCWATCHER_H
00014 #define QBANKING_PROCWATCHER_H
00015
00016
00017 #include "qbprocesswatcher.ui.h"
00018
00019 #include <qstring.h>
00020 #include <time.h>
00021
00022 class QProcess;
00023
00024
00025 class QBProcessWatcher : public QBProcessWatcherUi{
00026 Q_OBJECT
00027 public:
00028 QBProcessWatcher(QProcess* process,
00029 const QString &text=QString::null,
00030 QWidget* parent=0,
00031 const char* name=0,
00032 bool modal=FALSE,
00033 WFlags fl=0 );
00034 ~QBProcessWatcher();
00035
00036 void accept();
00037
00038 int getStatus() const;
00039
00040 int getDuration() const;
00041
00042 public slots:
00043 void slotTerminate();
00044 void slotKill();
00045 void slotProcessFinished();
00046
00047 private:
00048 QProcess *_process;
00049 int _result;
00050 bool _closeEnabled;
00051 time_t _startTime;
00052 int _duration;
00053 };
00054
00055
00056
00057
00058 #endif // AQBANKING_KDE_PROCWATCHER_H
00059