00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00018 #ifndef AQ_BANKING_CPP_H
00019 #define AQ_BANKING_CPP_H
00020
00021
00022 #include <aqbanking/banking.h>
00023 #include <aqbanking/system.h>
00024
00025 #include <qbanking/api.h>
00026
00027 #include <list>
00028 #include <string>
00029
00030
00043 class QBANKING_API AB_Banking {
00044 private:
00045 AB_BANKING *_banking;
00046
00047 public:
00048 AB_Banking(const char *appname,
00049 const char *fname);
00050 virtual ~AB_Banking();
00051
00052
00053 AB_BANKING *getCInterface();
00054
00055
00059 virtual int init();
00060
00064 virtual int fini();
00065
00066
00070 int onlineInit();
00071
00075 int onlineFini();
00076
00082 AB_PROVIDER *getProvider(const char *name);
00083
00084
00088 const char *getAppName();
00089
00097 std::list<AB_ACCOUNT*> getAccounts();
00098
00105 AB_ACCOUNT *getAccount(uint32_t uniqueId);
00106
00114 std::list<AB_USER*> getUsers();
00115
00122 GWEN_DB_NODE *getAppData();
00123
00124 GWEN_DB_NODE *getSharedData(const char *name);
00125
00126 int getUserDataDir(GWEN_BUFFER *buf) const ;
00127 int getAppUserDataDir(GWEN_BUFFER *buf) const ;
00128
00129
00139 std::list<GWEN_PLUGIN_DESCRIPTION*> getProviderDescrs();
00140
00146 std::list<GWEN_PLUGIN_DESCRIPTION*> getWizardDescrs();
00147
00154 void clearPluginDescrs(std::list<GWEN_PLUGIN_DESCRIPTION*> &l);
00155
00156 std::list<std::string> getActiveProviders();
00157
00158 std::string findWizard(const char *frontends);
00159
00178 virtual int executeJobs(AB_JOB_LIST2 *jl,
00179 AB_IMEXPORTER_CONTEXT *ctx,
00180 uint32_t guiid);
00181
00187 virtual bool importContext(AB_IMEXPORTER_CONTEXT *ctx,
00188 uint32_t flags);
00189
00190 };
00191
00192
00193
00194
00195 #endif
00196
00197