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