qbwcb_progress.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: qbwcb_progress.h 764 2006-01-13 14:00:00Z cstim $
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 
00014 #ifndef QBANKING_WCB_PROGRESS_H
00015 #define QBANKING_WCB_PROGRESS_H
00016 
00017 #include "qbwaitcallback.h"
00018 #include "qbprogress.h"
00019 
00020 #include <time.h>
00021 
00022 
00023 class QBProgressCallback: public QBWaitCallback {
00024 public:
00025   QBProgressCallback(const char *id, QBProgress::ProgressType pt);
00026   virtual ~QBProgressCallback();
00027   virtual QBWaitCallback *instantiate();
00028   virtual GWEN_WAITCALLBACK_RESULT checkAbort(unsigned int level);
00029   virtual void log(unsigned int level,
00030                    GWEN_LOGGER_LEVEL loglevel,
00031                    const char *s);
00032 
00033 private:
00034   QBProgress *_progressWidget;
00035   QBProgress::ProgressType _progressType;
00036   GWEN_TYPE_UINT64 _lastProgress;
00037   bool _started;
00038   time_t _startTime;
00039 
00040   bool _checkStart(bool force);
00041 
00042 };
00043 
00044 
00045 
00046 #endif
00047 

Generated on Sun Apr 29 17:23:04 2007 for aqbanking by  doxygen 1.5.1