00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef AQBANKING_ERROR_H
00015 #define AQBANKING_ERROR_H
00016
00017 #include <aqbanking/system.h>
00018
00019
00020 #ifdef BUILDING_AQBANKING
00021 #
00022 # if AQBANKING_SYS_IS_WINDOWS
00023 #
00024 # ifdef __declspec
00025 # define AQBANKING_API __declspec (dllexport)
00026 # else
00027 # define AQBANKING_API
00028 # endif
00029 # else
00030 #
00031 # ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00032 # define AQBANKING_API __attribute__((visibility("default")))
00033 # else
00034 # define AQBANKING_API
00035 # endif
00036 # endif
00037 #else
00038 #
00039 # if AQBANKING_SYS_IS_WINDOWS
00040 #
00041 # ifdef __declspec
00042 # define AQBANKING_API __declspec (dllimport)
00043 # else
00044 # define AQBANKING_API
00045 # endif
00046 # else
00047 #
00048 # define AQBANKING_API
00049 # endif
00050 #endif
00051
00052 #ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00053 # define AQBANKING_EXPORT __attribute__((visibility("default")))
00054 # define AQBANKING_NOEXPORT __attribute__((visibility("hidden")))
00055 #else
00056 # define AQBANKING_EXPORT
00057 # define AQBANKING_NOEXPORT
00058 #endif
00059
00060
00061 #ifndef AQBANKING_NOWARN_DEPRECATED
00062 # ifdef __GNUC__
00063 # define AQBANKING_DEPRECATED __attribute((__deprecated__))
00064 # else
00065 # define AQBANKING_DEPRECATED
00066 # endif
00067 # else
00068 # define AQBANKING_DEPRECATED
00069 #endif
00070
00071 #define AQBANKING_LOGDOMAIN "aqbanking"
00072
00073
00078 #define AB_ERROR_SUCCESS 0
00079 #define AB_ERROR_GENERIC (-1)
00080 #define AB_ERROR_NOT_SUPPORTED (-2)
00081 #define AB_ERROR_NOT_AVAILABLE (-3)
00082 #define AB_ERROR_BAD_CONFIG_FILE (-4)
00083 #define AB_ERROR_INVALID (-5)
00084 #define AB_ERROR_NETWORK (-6)
00085 #define AB_ERROR_NOT_FOUND (-7)
00086 #define AB_ERROR_EMPTY (-8)
00087 #define AB_ERROR_USER_ABORT (-9)
00088 #define AB_ERROR_FOUND (-10)
00089 #define AB_ERROR_NO_DATA (-11)
00090 #define AB_ERROR_NOFN (-12)
00091 #define AB_ERROR_UNKNOWN_ACCOUNT (-13)
00092 #define AB_ERROR_NOT_INIT (-14)
00093 #define AB_ERROR_SECURITY (-15)
00094 #define AB_ERROR_BAD_DATA (-16)
00095 #define AB_ERROR_UNKNOWN (-17)
00096 #define AB_ERROR_ABORTED (-18)
00097 #define AB_ERROR_DEFAULT_VALUE (-19)
00098 #define AB_ERROR_BAD_PIN (-20)
00099 #define AB_ERROR_IO (-21)
00100
00101 #define AB_ERROR_USER1 (-128)
00102 #define AB_ERROR_USER2 (-129)
00103 #define AB_ERROR_USER3 (-130)
00104 #define AB_ERROR_USER4 (-131)
00105
00110 #endif
00111
00112