|
|
/*************************************************************************** xqltypes.h - description ------------------- begin : Mon Jun 26 2000 copyright : (C) 2000 by Raoul Markus email : raoul.markus@arcormail.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ // xqltypes.h // Standardtypen fuer die Klassenbibliothek xql #ifndef main_xqltypes_h #define main_xqltypes_h #define VERBOSE true /** the version of the database scheme */ #define XQL_VERSION "0.1-alpha" /** definitions for the objectss */ typedef long xqlid; static const xqlid xqlnoid = -1; #define XQL_NO_OBJECT -1 #define XQL_NO_FILE -1 /** definitions for the object xqlUser */ typedef int xqlUserId; #define XQL_TYPEID_USER 1 #define XQL_NO_USER -1 #define XQL_SUPER_USER 1 /** typeid for the stores */ #define XQL_TYPEID_STORE 2 typedef int sqltype; #define SQLTYPEINSERT 1 #define SQLTYPEUPDATE 2 #define SQLTYPEDELETE 4 #define SQL_STRING "varchar(60)" #define SQL_INT "int" /** some critical lenghts */ #define XQL_STRING_MAX_LENGTH 2000 #define XQL_OBJECTTYPE_LENGTH 60 #define XQL_LEN_OF_ERRORMSG 2000 #define XQL_SQL_MAX_RETRIES 10 #define XQL_MAX_TABLE_LENGTH 60 #define XQL_MAX_UNLENGTH 10 #define XQL_MAX_PWLENGTH 10 #define XQL_BINOBJ_LINESIZE 256 #define XQL_ICON_NOT_SET -1 typedef char* xqlAttributeType; #define MAX_NUM_ATTRIBS 10 // Fehlermeldungen #define XQL_ERROR_TYPE_EXISTS 1 #define XQL_ERROR_TYPE_ISCREA 2 #define XQL_ERROR_TYPE_CREATE 3 #define XQL_ERROR_TYPE_LOAD 4 #define XQL_ERROR_GETMAX_ID 5 #define XQL_ERROR_INST_CREATE 6 #define XQL_ERROR_INST_SAVE 7 #define XQL_ERROR_INST_LOAD 8 #define XQL_ERROR_STRINGLEN 9 #define XQL_ERROR_TABLECREATE 10 #define XQL_ERROR_ATTRIB_CREA 11 #define XQL_ERROR_NO_CLASS_FO 12 #define XQL_ERROR_NO_NEW_ID 13 #define XQL_ERROR_USEREXITST 14 #define XQL_ERROR_USEROBJEXIST 15 #define XQL_ERROR_PW_TOO_LONG 16 #define XQL_ERROR_FTP 17 #define TABLEOBJECT "xqlobject" #endif
Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53. |