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 <q4banking/qbprocesswatcher.ui.h>
00018 #include <q4banking/qbanking.h>
00019
00020 #include <qstring.h>
00021 #include <time.h>
00022
00023 class Q3Process;
00024
00025
00026 class Q4BANKING_API QBProcessWatcher : public QDialog, public Ui_QBProcessWatcherUi {
00027 Q_OBJECT
00028 public:
00029 QBProcessWatcher(Q3Process* process,
00030 const QString &text=QString::null,
00031 QWidget* parent=0,
00032 const char* name=0,
00033 bool modal=FALSE,
00034 Qt::WFlags fl=0 );
00035 ~QBProcessWatcher();
00036
00037 void accept();
00038
00039 int getStatus() const;
00040
00041 int getDuration() const;
00042
00043 public slots:
00044 void slotTerminate();
00045 void slotKill();
00046 void slotProcessFinished();
00047
00048 virtual void languageChange();
00049
00050 private:
00051 Q3Process *_process;
00052 int _result;
00053 bool _closeEnabled;
00054 time_t _startTime;
00055 int _duration;
00056 };
00057
00058
00059
00060
00061 #endif // AQBANKING_KDE_PROCWATCHER_H
00062