kbanking.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: kbanking.h 935 2006-02-14 02:11:55Z aquamaniac $
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 AQHBCI_KDE_BANKING_H
00014 #define AQHBCI_KDE_BANKING_H
00015 
00016 
00017 #ifdef BUILDING_KBANKING
00018 # /* building KBanking */
00019 # if AQBANKING_SYS_IS_WINDOWS
00020 #   /* for windows */
00021 #   ifdef __declspec
00022 #     define KBANKING_API __declspec (dllexport)
00023 #   else /* if __declspec */
00024 #     define KBANKING_API
00025 #   endif /* if NOT __declspec */
00026 # else
00027 #   /* for non-win32 */
00028 #   ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00029 #     define KBANKING_API __attribute__((visibility("default")))
00030 #   else
00031 #     define KBANKING_API
00032 #   endif
00033 # endif
00034 #else
00035 # /* not building KBanking */
00036 # if AQBANKING_SYS_IS_WINDOWS
00037 #   /* for windows */
00038 #   ifdef __declspec
00039 #     define KBANKING_API __declspec (dllimport)
00040 #   else /* if __declspec */
00041 #     define KBANKING_API
00042 #   endif /* if NOT __declspec */
00043 # else
00044 #   /* for non-win32 */
00045 #   define KBANKING_API
00046 # endif
00047 #endif
00048 
00049 #ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00050 # define KBANKING_EXPORT __attribute__((visibility("default")))
00051 # define KBANKING_NOEXPORT __attribute__((visibility("hidden")))
00052 #else
00053 # define KBANKING_EXPORT
00054 # define KBANKING_NOEXPORT
00055 #endif
00056 
00057 
00058 #include <aqbanking/banking.h>
00059 #include <aqbanking/accstatus.h>
00060 
00061 #include <qobject.h>
00062 #include <qdatetime.h>
00063 #include <qstring.h>
00064 
00065 #include <list>
00066 
00067 class QTranslator;
00068 
00069 class KBanking;
00070 
00071 #include <qbanking/qbanking.h>
00072 #include <kbanking/kbflagstaff.h>
00073 
00074 
00075 class KBanking: public QBanking {
00076 private:
00077   KBFlagStaff *_flagStaff;
00078   QTranslator *_translator;
00079 
00080   AB_ACCOUNT *_getAccount(const char *accountId);
00081 
00082 public:
00083   KBanking(const char *appname,
00084            const char *fname=0);
00085   virtual ~KBanking();
00086 
00087   int init();
00088   int fini();
00089 
00090 
00091   KBFlagStaff *flagStaff();
00092 
00093   int executeQueue(AB_IMEXPORTER_CONTEXT *ctx);
00094 
00095   virtual bool importContext(AB_IMEXPORTER_CONTEXT *ctx);
00096   virtual bool importAccountInfo(AB_IMEXPORTER_ACCOUNTINFO *ai);
00097 
00098   virtual bool importContext(AB_IMEXPORTER_CONTEXT *ctx,
00099                              GWEN_TYPE_UINT32 flags);
00100 
00101   virtual bool importAccountInfo(AB_IMEXPORTER_ACCOUNTINFO *ai,
00102                                  GWEN_TYPE_UINT32 flags);
00103 
00104 };
00105 
00106 
00107 
00108 
00109 #endif /* AQHBCI_KDE_BANKING_H */
00110 
00111 

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