1 /***************************************************************************
2  begin       : Mon Mar 01 2004
3  copyright   : (C) 2004 by Martin Preuss
4  email       : martin@libchipcard.de
5 
6  ***************************************************************************
7  * This file is part of the project "AqBanking".                           *
8  * Please see toplevel file COPYING of that project for license details.   *
9  ***************************************************************************/
10 
11 
12 #ifndef AQBANKING_ERROR_H
13 #define AQBANKING_ERROR_H
14 
15 #include <aqbanking/system.h>
16 #include <gwenhywfar/error.h>
17 
18 #ifdef AQBANKING_IS_SUBPROJECT
19 # define AQBANKING_API
20 # define AQBANKING_EXPORT
21 # define AQBANKING_NOEXPORT
22 #else
23 
24 # ifdef BUILDING_AQBANKING
25 #  /* building AqBanking */
26 #  if AQBANKING_SYS_IS_WINDOWS
27 #    /* for windows */
28 #    ifdef __declspec
29 #      define AQBANKING_API __declspec (dllexport)
30 #    else /* if __declspec */
31 #      define AQBANKING_API
32 #    endif /* if NOT __declspec */
33 #  else
34 #    /* for non-win32 */
35 #    ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
36 #      define AQBANKING_API __attribute__((visibility("default")))
37 #    else
38 #      define AQBANKING_API
39 #    endif
40 #  endif
41 # else
42 #  /* not building AqBanking */
43 #  if AQBANKING_SYS_IS_WINDOWS
44 #    /* for windows */
45 #    ifdef __declspec
46 #      define AQBANKING_API __declspec (dllimport)
47 #    else /* if __declspec */
48 #      define AQBANKING_API
49 #    endif /* if NOT __declspec */
50 #  else
51 #    /* for non-win32 */
52 #    define AQBANKING_API
53 #  endif
54 # endif
55 
56 # ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
57 #  define AQBANKING_EXPORT __attribute__((visibility("default")))
58 #  define AQBANKING_NOEXPORT __attribute__((visibility("hidden")))
59 # else
60 #  define AQBANKING_EXPORT
61 #  define AQBANKING_NOEXPORT
62 # endif
63 #endif
64 
65 
66 #ifndef AQBANKING_NOWARN_DEPRECATED
67 # ifdef __GNUC__
68 #  define AQBANKING_DEPRECATED __attribute((__deprecated__))
69 # else
70 #  define AQBANKING_DEPRECATED
71 # endif
72 # else
73 #  define AQBANKING_DEPRECATED
74 #endif
75 
76 #define AQBANKING_LOGDOMAIN "aqbanking"
77 
78 
79 /** @defgroup AB_ERROR Error Codes
80  * @ingroup G_AB_C_INTERFACE
81  */
82 /*@{*/
83 
84 #define AB_ERROR_OFFSET GWEN_ERROR_USEROFFSET
85 
86 #define AB_ERROR_BAD_CONFIG_FILE (AB_ERROR_OFFSET-1)
87 #define AB_ERROR_NETWORK         (AB_ERROR_OFFSET-2)
88 #define AB_ERROR_EMPTY           (AB_ERROR_OFFSET-3)
89 
90 #define AB_ERROR_INDIFFERENT     (AB_ERROR_OFFSET-4)
91 #define AB_ERROR_UNKNOWN_ACCOUNT (AB_ERROR_OFFSET-5)
92 
93 #define AB_ERROR_NOT_INIT        (AB_ERROR_OFFSET-6)
94 #define AB_ERROR_SECURITY        (AB_ERROR_OFFSET-7)
95 #define AB_ERROR_PLUGIN_MISSING  (AB_ERROR_OFFSET-8)
96 
97 #define AB_ERROR_USER1           (AB_ERROR_OFFSET-50)
98 #define AB_ERROR_USER2           (AB_ERROR_OFFSET-51)
99 #define AB_ERROR_USER3           (AB_ERROR_OFFSET-52)
100 #define AB_ERROR_USER4           (AB_ERROR_OFFSET-53)
101 
102 #define AB_ERROR_USEROFFSET      (AB_ERROR_OFFSET-100)
103 
104 /*@}*/
105 
106 
107 
108 
109 #endif /* AQBANKING_ERROR_H */
110 
111 
112