#ifndef QGLOBAL_H
#define QGLOBAL_H
#include <stddef.h>
#define QT_VERSION_STR "4.2.3"
#define QT_VERSION 0x040203
#define QT_PACKAGEDATE_STR "2007-02-21"
#if !defined(QT_BUILD_MOC)
#include <QtCore/qconfig.h>
#endif
#if defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__) || defined(__xlc__))
#elif defined(__CYGWIN__)
#elif defined(MSDOS) || defined(_MSDOS)
#elif defined(__OS2__)
#elif !defined(SAG_COM) && (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))
#elif !defined(SAG_COM) && (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__))
#elif defined(__MWERKS__) && defined(__INTEL__)
#elif defined(__sun) || defined(sun)
#elif defined(hpux) || defined(__hpux)
#elif defined(__ultrix) || defined(ultrix)
#elif defined(sinix)
#elif defined(__linux__) || defined(__linux)
#define Q_OS_LINUX
#elif defined(__FreeBSD__) || defined(__DragonFly__)
#elif defined(__NetBSD__)
#elif defined(__OpenBSD__)
#elif defined(__bsdi__)
#elif defined(__sgi)
#elif defined(__osf__)
#elif defined(_AIX)
#elif defined(__Lynx__)
#elif defined(__GNU_HURD__)
#elif defined(__DGUX__)
#elif defined(__QNXNTO__)
#elif defined(__QNX__)
#elif defined(_SEQUENT_)
#elif defined(_SCO_DS) /* SCO OpenServer 5 + GCC */
#elif defined(__USLC__) /* all SCO platforms + UDK or OUDK */
#elif defined(__svr4__) && defined(i386) /* Open UNIX 8 + GCC */
#elif defined(__MAKEDEPEND__)
#else
#endif
#if defined(Q_OS_MSDOS) || defined(Q_OS_OS2) || defined(Q_OS_WIN)
#elif !defined(Q_OS_UNIX)
#define Q_OS_UNIX
#endif
#if defined(__DMC__) || defined(__SC__)
#elif defined(__MWERKS__)
#elif defined(_MSC_VER)
#elif defined(__BORLANDC__) || defined(__TURBOC__)
#elif defined(__WATCOMC__)
#elif defined(__GNUC__)
#define Q_CC_GNU
#define Q_C_CALLBACKS
#elif defined(__xlC__)
#elif defined(__DECCXX) || defined(__DECC)
#elif defined(__PGI)
#elif defined(__EDG) || defined(__EDG__)
#elif defined(__HIGHC__)
#elif defined(__SUNPRO_CC) || defined(__SUNPRO_C)
#elif defined(sinix)
#elif defined(Q_OS_HPUX)
#else
#endif
#ifndef Q_PACKED
#define Q_PACKED
#undef Q_NO_PACKED_REFERENCE
#endif
#ifndef Q_CONSTRUCTOR_FUNCTION
#define Q_CONSTRUCTOR_FUNCTION(AFUNC) static const int AFUNC ## __init_variable__ = AFUNC();
#endif
#ifndef Q_DESTRUCTOR_FUNCTION
#define Q_DESTRUCTOR_FUNCTION(AFUNC) class AFUNC ## __dest_class__ { public: inline AFUNC ## __dest_class__() { } inline ~ AFUNC ## __dest_class__() { AFUNC(); } } AFUNC ## __dest_instance__;
#endif
#ifndef Q_REQUIRED_RESULT
#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1))
#define Q_REQUIRED_RESULT __attribute__ ((warn_unused_result))
#else
#endif
#endif
#if defined(Q_OS_MSDOS)
#elif defined(_WIN32_X11_)
#elif defined(Q_OS_WIN32)
#elif defined(Q_OS_OS2)
#elif defined(Q_OS_UNIX)
#if defined(Q_OS_DARWIN) && !defined(__USE_WS_X11__)
#elif !defined(Q_WS_QWS)
#define Q_WS_X11
#endif
#endif
typedef signed char qint8;
typedef unsigned char quint8;
typedef short int qint16;
typedef short unsigned int quint16;
typedef int qint32;
typedef unsigned int quint32;
#if defined(Q_OS_WIN) && !defined(Q_CC_GNU)
#else
#define Q_INT64_C(c) static_cast<long long>(c ## LL)
#define Q_UINT64_C(c) static_cast<unsigned long long>(c ## ULL)
typedef long long int qint64;
typedef long long unsigned int quint64;
#endif
typedef long long int qlonglong;
typedef long long unsigned int qulonglong;
#define Q_INIT_RESOURCE(name) do { extern int qInitResources_ ## name (); qInitResources_ ## name (); } while (0)
#define Q_CLEANUP_RESOURCE(name) do { extern int qCleanupResources_ ## name (); qCleanupResources_ ## name (); } while (0)
#if defined(__cplusplus)
template < int > class QUintForSize{
private: typedef void Type;
};
template < > class QUintForSize < 4 >{
public: typedef quint32 Type;
};
template < > class QUintForSize < 8 >{
public: typedef quint64 Type;
};
template < typename T > class QUintForType: public QUintForSize{
};
typedef long long unsigned int quintptr;
template < int > class QIntForSize{
private: typedef void Type;
};
template < > class QIntForSize < 4 >{
public: typedef qint32 Type;
};
template < > class QIntForSize < 8 >{
public: typedef qint64 Type;
};
template < typename T > class QIntForType: public QIntForSize{
};
typedef long long int qptrdiff;
typedef unsigned char uchar;
typedef short unsigned int ushort;
typedef unsigned int uint;
typedef long unsigned int ulong;
#ifndef QT_LSB /* the LSB defines TRUE and FALSE for us */
#ifndef TRUE
#define TRUE true
#define FALSE false
#endif
#endif
#if defined(Q_OS_MAC) && !defined(Q_CC_INTEL)
#else
#define QT_BEGIN_HEADER
#define QT_END_HEADER
#endif
#if defined(Q_CC_MSVC)
#else
#define QT_STATIC_CONST static const
#define QT_STATIC_CONST_IMPL const
#endif
#if defined(Q_MOC_RUN)
#elif defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2))
#define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
#elif defined(Q_CC_MSVC) && (_MSC_VER >= 1300)
#else
#endif
#ifndef Q_DECL_VARIABLE_DEPRECATED
#define Q_DECL_VARIABLE_DEPRECATED Q_DECL_DEPRECATED
#endif
#ifndef Q_DECL_CONSTRUCTOR_DEPRECATED
#if defined(Q_MOC_RUN)
#elif defined(Q_NO_DEPRECATED_CONSTRUCTORS)
#else
#define Q_DECL_CONSTRUCTOR_DEPRECATED Q_DECL_DEPRECATED
#endif
#endif
#if defined(QT_NO_DEPRECATED)
#elif defined(QT_DEPRECATED_WARNINGS)
#else
#undef QT_DEPRECATED
#define QT_DEPRECATED
#undef QT_DEPRECATED_VARIABLE
#define QT_DEPRECATED_VARIABLE
#undef QT_DEPRECATED_CONSTRUCTOR
#define QT_DEPRECATED_CONSTRUCTOR
#endif
#ifndef QT_MOC_COMPAT
#if defined(QT3_SUPPORT)
#else
#define QT_MOC_COMPAT
#endif
#else
#endif
#if 0 /* #ifdef QT_ASCII_CAST_WARNINGS */
#else
#define QT_ASCII_CAST_WARN
#define QT_ASCII_CAST_WARN_CONSTRUCTOR
#endif
#ifdef __i386__
#else
#define QT_FASTCALL
#endif
typedef int QNoImplicitBoolCast;
#if defined(QT_COORD_TYPE)
#elif defined(__arm__)
#else
typedef double qreal;
#endif
inline float qAbs(float const & t);
inline double qAbs(double const & t);
template < typename T > inline T qAbs(T const & t);
inline int qRound(qreal d);
inline qint64 qRound64(qreal d);
template < typename T > inline T const & qMin(T const & a, T const & b);
template < typename T > inline T const & qMax(T const & a, T const & b);
template < typename T > inline T const & qBound(T const & min, T const & val, T const & max);
struct QDataStream;
#if !defined(Q_WS_QWS) && !defined(QT_NO_COP)
#define QT_NO_COP
#endif
#include <QtCore/qfeatures.h>
#ifndef Q_DECL_EXPORT
#ifdef Q_OS_WIN
#elif defined(QT_VISIBILITY_AVAILABLE)
#define Q_DECL_EXPORT __attribute__((visibility("default")))
#endif
#endif
#ifndef Q_DECL_IMPORT
#ifdef Q_OS_WIN
#else
#define Q_DECL_IMPORT
#endif
#endif
#if defined(Q_OS_WIN)
#else
#undef QT_MAKEDLL
#undef QT_DLL
#endif
#if !defined(Q_CORE_EXPORT)
#if defined(QT_SHARED)
#else
#define Q_CORE_EXPORT
#define Q_GUI_EXPORT
#define Q_SQL_EXPORT
#define Q_NETWORK_EXPORT
#define Q_SVG_EXPORT
#define Q_OPENGL_EXPORT
#define Q_XML_EXPORT
#define Q_COMPAT_EXPORT
#endif
#endif
#if defined(Q_CC_MINGW)
#else
#define Q_CORE_EXPORT_INLINE Q_CORE_EXPORT inline
#define Q_GUI_EXPORT_INLINE Q_GUI_EXPORT inline
#endif
#if defined(QT_BUILD_INTERNAL) && defined(Q_OS_WIN) && defined(QT_MAKEDLL)
#elif defined(QT_BUILD_INTERNAL) && !defined(Q_OS_WIN) && defined(QT_SHARED)
#else
#define Q_AUTOTEST_EXPORT
#endif
struct QString;
class QSysInfo{
public: enum Sizes{
WordSize = 64,
};
public: enum Endian{
BigEndian = 0,
LittleEndian = 1,
#ifdef Q_BYTE_ORDER
#ifdef qdoc
#elif Q_BYTE_ORDER == Q_BIG_ENDIAN
#elif Q_BYTE_ORDER == Q_LITTLE_ENDIAN
ByteOrder = 1,
#else
#endif
#endif
};
};
char const * qVersion();
bool qSharedBuild();
#ifndef Q_OUTOFLINE_TEMPLATE
#define Q_OUTOFLINE_TEMPLATE
#endif
#ifndef Q_INLINE_TEMPLATE
#define Q_INLINE_TEMPLATE inline
#endif
#ifndef Q_TYPENAME
#define Q_TYPENAME typename
#endif
#if defined(Q_CC_INTEL) && !defined(Q_OS_WIN)
#else
#define Q_UNUSED(x) (void)x;
#endif
#if !defined(QT_NO_DEBUG) && !defined(QT_DEBUG)
#define QT_DEBUG
#endif
#ifndef qPrintable
#define qPrintable(string) (string).toLocal8Bit().constData()
#endif
void qDebug(char const *, ...);
void qWarning(char const *, ...);
struct QString qt_error_string(int errorCode = -1);
void qCritical(char const *, ...);
void qFatal(char const *, ...);
void qErrnoWarning(int code, char const * msg, ...);
void qErrnoWarning(char const * msg, ...);
struct QDebug;
struct QNoDebug;
#ifndef QT_NO_DEBUG_STREAM
inline struct QDebug qDebug();
inline struct QDebug qWarning();
inline struct QDebug qCritical();
#else
#endif
inline void qt_noop();
void qt_assert(char const * assertion, char const * file, int line);
#if !defined(Q_ASSERT)
#ifndef QT_NO_DEBUG
#define Q_ASSERT(cond) do {if(!(cond))qt_assert(#cond,__FILE__,__LINE__);} while (0)
#else
#endif
#endif
void qt_assert_x(char const * where, char const * what, char const * file, int line);
#if !defined(Q_ASSERT_X)
#ifndef QT_NO_DEBUG
#define Q_ASSERT_X(cond,where,what) do {if(!(cond))qt_assert_x(where, what,__FILE__,__LINE__);} while (0)
#else
#endif
#endif
void qt_check_pointer(char const *, int);
#ifndef QT_NO_DEBUG
#define Q_CHECK_PTR(p) do {if(!(p))qt_check_pointer(__FILE__,__LINE__);} while (0)
#else
#endif
enum QtMsgType{
QtDebugMsg = 0,
QtWarningMsg = 1,
QtCriticalMsg = 2,
QtFatalMsg = 3,
QtSystemMsg = 2,
};
void qt_message_output(enum QtMsgType, char const * buf);
typedef void (* QtMsgHandler)(enum QtMsgType, char const *);
QtMsgHandler qInstallMsgHandler(QtMsgHandler);
#if defined(QT_NO_THREAD)
#else
template < typename T > class QGlobalStatic{
public: T* pointer;
public: bool destroyed;
public: inline QGlobalStatic();
public: inline ~QGlobalStatic();
};
#define Q_GLOBAL_STATIC(TYPE,NAME) static TYPE *NAME() { static QGlobalStatic<TYPE > this_ ##NAME; if (!this_ ##NAME.pointer && !this_ ##NAME.destroyed) { TYPE *x = new TYPE; if (!q_atomic_test_and_set_ptr(&this_ ##NAME.pointer, 0, x)) delete x; } return this_ ##NAME.pointer; }
#define Q_GLOBAL_STATIC_WITH_ARGS(TYPE,NAME,ARGS) static TYPE *NAME() { static QGlobalStatic<TYPE > this_ ##NAME; if (!this_ ##NAME.pointer && !this_ ##NAME.destroyed) { TYPE *x = new TYPE ARGS; if (!q_atomic_test_and_set_ptr(&this_ ##NAME.pointer, 0, x)) delete x; } return this_ ##NAME.pointer; }
#endif
class QBool{
private: bool b;
public: explicit inline QBool(bool B);
public: inline operator void const * () const
};
inline bool operator ==(class QBool b1, bool b2);
inline bool operator ==(bool b1, class QBool b2);
inline bool operator ==(class QBool b1, class QBool b2);
inline bool operator !=(class QBool b1, bool b2);
inline bool operator !=(bool b1, class QBool b2);
inline bool operator !=(class QBool b1, class QBool b2);
static inline bool qFuzzyCompare(double p1, double p2);
static inline bool qFuzzyCompare(float p1, float p2);
static inline bool qIsNull(double d);
static inline bool qIsNull(float f);
#ifdef Q_FULL_TEMPLATE_INSTANTIATION
#else
#define Q_DUMMY_COMPARISON_OPERATOR(C)
#endif
#ifndef QT_NO_PARTIAL_TEMPLATE_SPECIALIZATION
template < typename T > inline bool qIsDetached(T&);
template < typename T > class QTypeInfo{
public: enum /*anonymous*/{
isPointer = 0,
isComplex = 1,
isStatic = 1,
isLarge = 0,
isDummy = 0,
};
};
template < typename T > class QTypeInfo < T* >{
public: enum /*anonymous*/{
isPointer = 1,
isComplex = 0,
isStatic = 0,
isLarge = 0,
isDummy = 0,
};
};
#else
#endif /* QT_NO_PARTIAL_TEMPLATE_SPECIALIZATION */
enum /*anonymous*/{
Q_COMPLEX_TYPE = 0,
Q_PRIMITIVE_TYPE = 1,
Q_STATIC_TYPE = 0,
Q_MOVABLE_TYPE = 2,
Q_DUMMY_TYPE = 4,
};
#define Q_DECLARE_TYPEINFO(TYPE,FLAGS) template <> class QTypeInfo<TYPE> { public: enum { isComplex = (((FLAGS) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((FLAGS) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(TYPE)>sizeof(void*)), isPointer = false, isDummy = (((FLAGS) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return #TYPE; } }
#define Q_DECLARE_SHARED(TYPE) template <> inline bool qIsDetached<TYPE>(TYPE &t) { return t.isDetached(); }
template < > class QTypeInfo < bool >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < char >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < signed char >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < unsigned char >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < short int >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < short unsigned int >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < int >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < unsigned int >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < long int >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < long unsigned int >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < long long int >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < long long unsigned int >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < float >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < double >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 0,
isPointer = 0,
isDummy = 0,
};
};
template < > class QTypeInfo < long double >{
public: static inline char const * name();
public: enum /*anonymous*/{
isComplex = 0,
isStatic = 0,
isLarge = 1,
isPointer = 0,
isDummy = 0,
};
};
#endif
void* qMalloc(size_t size);
void qFree(void* ptr);
void* qRealloc(void* ptr, size_t size);
void* qMemCopy(void* dest, void const * src, size_t n);
void* qMemSet(void* dest, int c, size_t n);
#if !defined(QT_CC_WARNINGS)
#define QT_NO_WARNINGS
#endif
class QFlag{
private: int i;
public: inline operator int () const
public: inline QFlag(int ai);
};
#ifndef Q_NO_TYPESAFE_FLAGS
template < typename Enum > class QFlags{
private: typedef void* * Zero;
private: int i;
public: typedef Enum enum_type;
public: inline QFlags(class QFlags const & f);
public: inline QFlags(Enum f);
public: inline QFlags(void* * = 0);
public: inline QFlags(class QFlag f);
public: inline class QFlags& operator =(class QFlags const & f);
public: inline class QFlags& operator &=(int mask);
public: inline class QFlags& operator &=(uint mask);
public: inline class QFlags& operator |=(class QFlags f);
public: inline class QFlags& operator |=(Enum f);
public: inline class QFlags& operator ^=(class QFlags f);
public: inline class QFlags& operator ^=(Enum f);
public: inline operator int () const
public: inline class QFlags operator |(class QFlags f) const
public: inline class QFlags operator |(Enum f) const
public: inline class QFlags operator ^(class QFlags f) const
public: inline class QFlags operator ^(Enum f) const
public: inline class QFlags operator &(int mask) const
public: inline class QFlags operator &(uint mask) const
public: inline class QFlags operator &(Enum f) const
public: inline class QFlags operator ~() const
public: inline bool operator !() const
public: inline bool testFlag(Enum f) const
};
#define Q_DECLARE_FLAGS(Flags,Enum) typedef QFlags<Enum> Flags;
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags) inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) { return QFlags<Flags::enum_type>(f1) | f2; } inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) { return f2 | f1; }
#else /* Q_NO_TYPESAFE_FLAGS */
#endif /* Q_NO_TYPESAFE_FLAGS */
#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL)
template < typename T > class QForeachContainer{
public: inline QForeachContainer(T const & t);
public: T c;
public: int brk;
public: typename T::const_iterator i;
public: typename T::const_iterator e;
};
#define Q_FOREACH(variable,container) for (QForeachContainer<__typeof__(container)> _container_(container); !_container_.brk && _container_.i != _container_.e; __extension__ ({ ++_container_.brk; ++_container_.i; })) for (variable = *_container_.i; __extension__ ({--_container_.brk; break;}))
#else
#endif
#define Q_FOREVER for(;)
#ifndef QT_NO_KEYWORDS
#ifndef foreach
#define foreach Q_FOREACH
#endif
#ifndef forever
#define forever Q_FOREVER
#endif
#endif
#define Q_DECLARE_PRIVATE(Class) inline Class ##Private* d_func() { return reinterpret_cast<Class ##Private *>(d_ptr); } inline const Class ##Private* d_func() const { return reinterpret_cast<const Class ##Private *>(d_ptr); } friend class Class ##Private;
#define Q_DECLARE_PUBLIC(Class) inline Class* q_func() { return static_cast<Class *>(q_ptr); } inline const Class* q_func() const { return static_cast<const Class *>(q_ptr); } friend class Class;
#define Q_D(Class) Class ##Private * const d = d_func()
#define Q_Q(Class) Class * const q = q_func()
#define QT_TR_NOOP(x) (x)
#define QT_TRANSLATE_NOOP(scope,x) (x)
#define QDOC_PROPERTY(text)
#if !defined(Q_NO_DECLARED_NOT_DEFINED) || !defined(QT_MAKEDLL)
#define Q_DISABLE_COPY(Class) Class(const Class &); Class &operator=(const Class &);
#else
#endif
struct QByteArray;
struct QByteArray qgetenv(char const * varName);
inline int qIntCast(double f);
inline int qIntCast(float f);
void qsrand(uint seed);
int qrand();
#define QT_MODULE_CORE 0x001
#define QT_MODULE_GUI 0x002
#define QT_MODULE_NETWORK 0x004
#define QT_MODULE_OPENGL 0x008
#define QT_MODULE_SQL 0x010
#define QT_MODULE_XML 0x020
#define QT_MODULE_QT3SUPPORTLIGHT 0x040
#define QT_MODULE_QT3SUPPORT 0x080
#define QT_MODULE_SVG 0x100
#define QT_MODULE_ACTIVEQT 0x200
#define QT_MODULE_GRAPHICSVIEW 0x400
#define QT_EDITION_CONSOLE (QT_MODULE_CORE | QT_MODULE_NETWORK | QT_MODULE_SQL | QT_MODULE_XML)
#define QT_EDITION_DESKTOPLIGHT (QT_MODULE_CORE | QT_MODULE_GUI | QT_MODULE_QT3SUPPORTLIGHT)
#define QT_EDITION_OPENSOURCE (QT_MODULE_CORE | QT_MODULE_GUI | QT_MODULE_NETWORK | QT_MODULE_OPENGL | QT_MODULE_SQL | QT_MODULE_XML | QT_MODULE_QT3SUPPORTLIGHT | QT_MODULE_QT3SUPPORT | QT_MODULE_SVG | QT_MODULE_GRAPHICSVIEW)
#define QT_EDITION_DESKTOP (QT_EDITION_OPENSOURCE | QT_MODULE_ACTIVEQT)
#define QT_EDITION_UNIVERSAL QT_EDITION_DESKTOP
#define QT_EDITION_ACADEMIC QT_EDITION_DESKTOP
#define QT_EDITION_EDUCATIONAL QT_EDITION_DESKTOP
#define QT_EDITION_EVALUATION QT_EDITION_DESKTOP
#define QT_LICENSED_MODULE(x) enum QtValidLicenseFor ##x ##Module { Licensed ##x = true };
#if (QT_EDITION & QT_MODULE_CORE)
enum QtValidLicenseForCoreModule{
LicensedCore = 1,
};
#endif
#if (QT_EDITION & QT_MODULE_GUI)
enum QtValidLicenseForGuiModule{
LicensedGui = 1,
};
#endif
#if (QT_EDITION & QT_MODULE_NETWORK)
enum QtValidLicenseForNetworkModule{
LicensedNetwork = 1,
};
#endif
#if (QT_EDITION & QT_MODULE_OPENGL)
enum QtValidLicenseForOpenGLModule{
LicensedOpenGL = 1,
};
#endif
#if (QT_EDITION & QT_MODULE_SQL)
enum QtValidLicenseForSqlModule{
LicensedSql = 1,
};
#endif
#if (QT_EDITION & QT_MODULE_XML)
enum QtValidLicenseForXmlModule{
LicensedXml = 1,
};
#endif
#if (QT_EDITION & QT_MODULE_QT3SUPPORTLIGHT)
enum QtValidLicenseForQt3SupportLightModule{
LicensedQt3SupportLight = 1,
};
#endif
#if (QT_EDITION & QT_MODULE_QT3SUPPORT)
enum QtValidLicenseForQt3SupportModule{
LicensedQt3Support = 1,
};
#endif
#if (QT_EDITION & QT_MODULE_SVG)
enum QtValidLicenseForSvgModule{
LicensedSvg = 1,
};
#endif
#define QT_MODULE(x) typedef QtValidLicenseFor ##x ##Module Qt ##x ##Module;
#endif /* __cplusplus */
#endif /* QGLOBAL_H */