qbprocesswatcher.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: qbprocesswatcher.h,v $
00003                              -------------------
00004     cvs         : $Id: qbprocesswatcher.h,v 1.1 2005/08/08 08:14:22 aquamaniac Exp $
00005     begin       : Mon Mar 01 2004
00006     copyright   : (C) 2004 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *          Please see toplevel file COPYING for license details           *
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 

Generated on Sat Jan 7 04:22:41 2006 for aqbanking by  doxygen 1.4.6