qdataschemaglobal.h

00001 /****************************************************************************
00002 ** $Id: qdataschemaglobal.h,v 1.12 2007/02/25 18:05:57 leader Exp $
00003 **
00004 ** QT Data Schema project
00005 **
00006 ** Copyright (C) 1999-2006 Leader InfoTech.  All rights reserved.
00007 ** Copyright (C) 1999-2006 Valery Grazdankin.  All rights reserved.
00008 **
00009 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00010 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00011 **
00012 ** See http://www.leaderit.ru/ or email sales@leaderit.ru
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 #include <qvariant.h>
00168 class QDSVariant : public QVariant
00169 {
00170 public:
00171     enum Type {
00172     Invalid, Object
00173     };
00174 
00175     QDSVariant():QVariant(){};
00176     ~QDSVariant(){};
00177 };
00178 */
00179 #endif
00180 

Generated on Sun Aug 26 05:37:05 2007 for QT Database Schema library. by  doxygen 1.5.1