00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef AQHBCI_KDE_BANKING_H
00014 #define AQHBCI_KDE_BANKING_H
00015
00016
00017 #ifdef BUILDING_KBANKING
00018 #
00019 # if AQBANKING_SYS_IS_WINDOWS
00020 #
00021 # ifdef __declspec
00022 # define KBANKING_API __declspec (dllexport)
00023 # else
00024 # define KBANKING_API
00025 # endif
00026 # else
00027 #
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 #
00036 # if AQBANKING_SYS_IS_WINDOWS
00037 #
00038 # ifdef __declspec
00039 # define KBANKING_API __declspec (dllimport)
00040 # else
00041 # define KBANKING_API
00042 # endif
00043 # else
00044 #
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
00110
00111