Eneboo - Documentación para desarrolladores
|
00001 /**************************************************************************** 00002 ** $Id: qsglobal.h 1.1.5 edited 2006-02-23T15:39:57$ 00003 ** 00004 ** Copyright (C) 2001-2006 Trolltech AS. All rights reserved. 00005 ** 00006 ** This file is part of the Qt Script for Applications framework (QSA). 00007 ** 00008 ** This file may be distributed and/or modified under the terms of the 00009 ** GNU General Public License version 2 as published by the Free Software 00010 ** Foundation and appearing in the file LICENSE.GPL included in the 00011 ** packaging of this file. 00012 ** 00013 ** Licensees holding a valid Qt Script for Applications license may use 00014 ** this file in accordance with the Qt Script for Applications License 00015 ** Agreement provided with the Software. 00016 ** 00017 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00018 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00019 ** 00020 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for 00021 ** information about QSA Commercial License Agreements. 00022 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00023 ** 00024 ** Contact info@trolltech.com if any conditions of this licensing are 00025 ** not clear to you. 00026 ** 00027 *****************************************************************************/ 00028 00029 #ifndef QSGLOBAL_H 00030 #define QSGLOBAL_H 00031 00032 // keep in sync with attrStr (qscheck.cpp) 00033 enum QSAttribute { 00034 AttributeNone = 0, 00035 AttributeAbstract = 1 << 1, 00036 AttributeFinal = 1 << 2, 00037 AttributePrivate = 1 << 3, 00038 AttributePublic = 1 << 4, 00039 AttributeStatic = 1 << 5, 00040 AttributeTrue = 1 << 6, 00041 AttributeFalse = 1 << 7, 00042 AttributeConstructor = 1 << 8, 00043 AttributeExecutable = 1 << 9, 00044 AttributeNonReadable = 1 << 10, 00045 AttributeNonWritable = 1 << 11, 00046 AttributeEnumerable = 1 << 12 00047 }; 00048 00049 enum QSCompareResult { 00050 CompareLess = -1, 00051 CompareEqual = 0, 00052 CompareGreater = 1, 00053 CompareUndefined = 2 00054 }; 00055 00056 enum QSEqualsResult { 00057 EqualsNotEqual = 0, 00058 EqualsIsEqual = 1, 00059 EqualsUndefined = 2 00060 }; 00061 00062 // max call stack size. -1 means no limit 00063 #define QS_MAX_STACK 500 00064 00065 // for debug 00066 // do some extra memory managment checking (0: off, 1: on) 00067 #if 0 00068 #define QS_DEBUG_MEM 1 00069 #define QT_CHECK_STATE 00070 #define QT_FATAL_ASSERT 00071 #endif 00072 00073 // enable/disable garabage collection 00074 //#define QSNODES_ALLOC_DEBUG 1 00075 #define AQ_NO_GARBAGE_COLLECTION 00076 00077 // used until reference counting is 100% safe 00078 // #define QS_LEAK 00079 00080 #endif