gbanking.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: gbanking.h 947 2006-02-21 17:04:54Z 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 
00014 
00015 #ifndef GBANKING_H
00016 #define GBANKING_H
00017 
00018 #include <gtk/gtk.h>
00019 #include <aqbanking/system.h>
00020 #include <aqbanking/banking.h>
00021 #include <aqbanking/imexporter.h>
00022 
00023 #include <gwenhywfar/buffer.h>
00024 
00025 #define GBANKING_LOGDOMAIN "gbanking"
00026 
00027 
00028 #ifdef BUILDING_GBANKING
00029 # /* building AqBanking */
00030 # if AQBANKING_SYS_IS_WINDOWS
00031 #   /* for windows */
00032 #   ifdef __declspec
00033 #     define GBANKING_API __declspec (dllexport)
00034 #   else /* if __declspec */
00035 #     define GBANKING_API
00036 #   endif /* if NOT __declspec */
00037 # else
00038 #   /* for non-win32 */
00039 #   ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00040 #     define GBANKING_API __attribute__((visibility("default")))
00041 #   else
00042 #     define GBANKING_API
00043 #   endif
00044 # endif
00045 #else
00046 # /* not building AqBanking */
00047 # if AQBANKING_SYS_IS_WINDOWS
00048 #   /* for windows */
00049 #   ifdef __declspec
00050 #     define GBANKING_API __declspec (dllimport)
00051 #   else /* if __declspec */
00052 #     define GBANKING_API
00053 #   endif /* if NOT __declspec */
00054 # else
00055 #   /* for non-win32 */
00056 #   define GBANKING_API
00057 # endif
00058 #endif
00059 
00060 #ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00061 # define GBANKING_EXPORT __attribute__((visibility("default")))
00062 # define GBANKING_NOEXPORT __attribute__((visibility("hidden")))
00063 #else
00064 # define GBANKING_EXPORT
00065 # define GBANKING_NOEXPORT
00066 #endif
00067 
00068 
00073 typedef int (*GBANKING_IMPORTCONTEXT_FN)(AB_BANKING *ab,
00074                                          AB_IMEXPORTER_CONTEXT *ctx);
00075 
00076 GBANKING_API 
00077 AB_BANKING *GBanking_new(const char *appName,
00078                          const char *fname);
00079 
00080 
00096 
00100 GBANKING_API
00101 const char *GBanking_GetCharSet(const AB_BANKING *ab);
00102 
00106 GBANKING_API 
00107 void GBanking_SetCharSet(AB_BANKING *ab, const char *s);
00116 
00127 GBANKING_API
00128 void GBanking_GetRawText(AB_BANKING *ab,
00129                          const char *text,
00130                          GWEN_BUFFER *tbuf);
00131 
00132 
00138 GBANKING_API
00139 void GBanking_GetHtmlText(AB_BANKING *ab,
00140                           const char *text,
00141                           GWEN_BUFFER *tbuf);
00142 
00149 GBANKING_API 
00150 void GBanking_GetUtf8Text(AB_BANKING *ab,
00151                           const char *text,
00152                           int len,
00153                           GWEN_BUFFER *tbuf);
00168 
00169 GBANKING_API 
00170 void GBanking_AccountsUpdated(AB_BANKING *ab);
00171 
00172 GBANKING_API 
00173 void GBanking_QueueUpdated(AB_BANKING *ab);
00174 
00175 GBANKING_API
00176 GWEN_TYPE_UINT32 GBanking_GetLastAccountUpdate(const AB_BANKING *ab);
00177 
00178 GBANKING_API 
00179 GWEN_TYPE_UINT32 GBanking_GetLastQueueUpdate(const AB_BANKING *ab);
00191 GBANKING_API 
00192 int GBanking_ImportContext(AB_BANKING *ab, AB_IMEXPORTER_CONTEXT *ctx);
00193 
00197 GBANKING_API 
00198 void GBanking_SetImportContextFn(AB_BANKING *ab,
00199                                  GBANKING_IMPORTCONTEXT_FN cb);
00203 
00204 
00205 #endif /* GBANKING_H */
00206 
00207 
00208 
00209 
00210 
00211 
00212 
00213 
00214 

Generated on Fri Nov 10 03:56:53 2006 for aqbanking by  doxygen 1.5.1