00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00085 #ifndef QDATASCHEMAGLOBAL_H
00086 #define QDATASCHEMAGLOBAL_H
00087 #include <qglobal.h>
00088
00089 #if QT_VERSION>=0x040000
00090 #include <Qt/QtCore>
00091 #include <Qt/QtSql>
00092 #include <Qt/QtXml>
00093 #include <QCoreApplication>
00094 #include <QStringList>
00095 #define QSqlFieldInfo QSqlField
00096 #define qApp 0
00097 #define QDATASCHEMA_QT4
00098 #else
00099 #include <qobject.h>
00100 #include <qsqldatabase.h>
00101 #endif
00102
00103 #ifdef Q_OS_WIN32
00104 # include <windows.h>
00105 # include <math.h>
00106 #endif
00107 #ifdef Q_OS_UNIX
00108 # include <unistd.h>
00109 #endif
00110
00111 #if defined(Q_OS_WIN32) && !defined(LIB_NO_DLL)
00112 # define LIB_DLLIMPORT __declspec(dllimport)
00113 # define LIB_DLLEXPORT __declspec(dllexport)
00114 #else
00115 # define LIB_DLLIMPORT
00116 # define LIB_DLLEXPORT
00117 #endif
00118
00119 #if defined (Q_CC_MSVC)
00120 #define TEMPLATE_EXTERN extern
00121 #else
00122 #define TEMPLATE_EXTERN
00123 #endif
00124
00125 #ifdef QDATASCHEMA_EXPORT
00126 # define LIB_EXPORT LIB_DLLEXPORT
00127 #else
00128 # define LIB_EXPORT LIB_DLLIMPORT
00129 #endif
00130
00131 #ifdef QDATASCHEMA_EXPORT
00132 # define LIB_TEMPLATE_EXTERN
00133 #else
00134 # define LIB_TEMPLATE_EXTERN TEMPLATE_EXTERN
00135 #endif
00136
00137 #if defined(Q_CC_MSVC)
00138 # define vsnprintf _vsnprintf
00139 #endif
00140
00156 class QDS
00157 {
00158 public:
00162 enum MO_Type { MO_ROOT, MO_CLASS, MO_ATTR, MO_RELATION };
00163
00164 };
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179 #endif
00180