Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

qbimporter.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: qbimporter.h,v $
00003                              -------------------
00004     cvs         : $Id: qbimporter.h,v 1.2 2005/08/09 15:09:07 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_IMPORTER_H
00014 #define QBANKING_IMPORTER_H
00015 
00016 
00017 class QBanking;
00018 class QBImporter;
00019 
00020 
00021 #include "qbimporter.ui.h"
00022 #include "qbanking.h"
00023 
00024 #include <list>
00025 #include <string>
00026 
00027 #include <qstring.h>
00028 
00029 #include <gwenhywfar/logger.h>
00030 
00031 
00032 class QBImporter: public QBImporterUi {
00033   Q_OBJECT
00034 
00035 private:
00036 
00037 public:
00038   QBImporter(QBanking *kb,
00039              QWidget* parent=0,
00040              const char* name=0,
00041              bool modal=FALSE);
00042   ~QBImporter();
00043 
00044   bool init();
00045   bool fini();
00046 
00047 public slots:
00048   void back();
00049   void next();
00050   void reject();
00051   void accept();
00052 
00053   void slotSelectFile();
00054   void slotFileNameChanged(const QString &s);
00055 
00056   void slotProfileSelected();
00057 
00058   void slotProfileDetails();
00059   void slotProfileEdit();
00060 
00061 private:
00062   QBanking *_app;
00063   AB_IMEXPORTER_CONTEXT *_context;
00064   bool _aborted;
00065   GWEN_PLUGIN_DESCRIPTION_LIST2 *_importerList;
00066   QString _importerName;
00067   AB_IMEXPORTER *_importer;
00068   GWEN_DB_NODE *_profiles;
00069   GWEN_DB_NODE *_profile;
00070   std::list<QWidget*> _pagesDone;
00071   QString _logText;
00072   GWEN_DB_NODE *_dbData;
00073   GWEN_LOGGER_LEVEL _logLevel;
00074 
00075   bool _updateImporterList();
00076   bool _checkFileType(const QString &fname);
00077   bool _readFile(const QString &fname);
00078   bool _importData(AB_IMEXPORTER_CONTEXT *ctx);
00079 
00080   bool _doPage(QWidget *p);
00081   bool _undoPage(QWidget *p);
00082 
00083   bool enterPage(QWidget *p, bool back);
00084   bool leavePage(QWidget *p, bool back);
00085 
00086   bool initSelectSourcePage();
00087   bool doSelectSourcePage(QWidget *p);
00088   bool undoSelectSourcePage(QWidget *p);
00089 
00090   bool initSelectImporterPage();
00091   bool doSelectImporterPage(QWidget *p);
00092   bool undoSelectImporterPage(QWidget *p);
00093 
00094   bool initSelectProfilePage();
00095   bool doSelectProfilePage(QWidget *p);
00096   bool undoSelectProfilePage(QWidget *p);
00097 
00098   bool doWorkingPage(QWidget *p);
00099   bool undoWorkingPage(QWidget *p);
00100 
00101   bool doImportPage(QWidget *p);
00102 
00103   void save();
00104 
00105 
00106 };
00107 
00108 
00109 
00110 #endif // AQBANKING_KDE_EDITTRANS_H
00111 
00112 
00113 
00114 

Generated on Thu Oct 6 14:49:08 2005 for aqbanking by  doxygen 1.4.4