1 // /usr/libexec/gcc/x86_64-pc-linux-gnu/4.1.2/cc1plus -quiet -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/corelib/arch/generic -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/corelib/global -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/script -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/mkspecs/linux-g++ -D_GNU_SOURCE -DQMAKE_OPENSOURCE_EDITION -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT generators/unix/unixmake2.cpp -quiet -dumpbase unixmake2.cpp -march=athlon64 -auxbase-strip unixmake2.o -O2 -o - -frandom-seed=0
2 # 1 "generators/unix/unixmake2.cpp"
5 # 1 "generators/unix/unixmake2.cpp"
6 # 39 "generators/unix/unixmake2.cpp"
7 # 1 "generators/unix/unixmake.h" 1
8 # 42 "generators/unix/unixmake.h"
9 # 1 "generators/makefile.h" 1
10 # 42 "generators/makefile.h"
15 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qstringlist.h" 1
16 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstringlist.h" 1
17 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstringlist.h"
18 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qalgorithms.h" 1
19 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h" 1
20 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h"
21 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
22 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h" 1
23 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
24 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stddef.h" 1 3 4
25 # 152 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stddef.h" 3 4
26 typedef long int ptrdiff_t;
27 # 214 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stddef.h" 3 4
28 typedef long unsigned int size_t;
29 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h" 2
30 # 57 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
31 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qconfig.h" 1
32 # 58 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h" 2
33 # 609 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
34 typedef signed char qint8;
35 typedef unsigned char quint8;
37 typedef unsigned short quint16;
39 typedef unsigned int quint32;
40 # 623 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
41 typedef long long qint64;
42 typedef unsigned long long quint64;
45 typedef qint64 qlonglong;
46 typedef quint64 qulonglong;
47 # 653 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
48 template <int> class QUintForSize { private: typedef void Type; };
49 template <> class QUintForSize<4> { public: typedef quint32 Type; };
50 template <> class QUintForSize<8> { public: typedef quint64 Type; };
51 template <typename T> class QUintForType : public QUintForSize<sizeof(T)> { };
52 typedef QUintForType<void *>::Type quintptr;
54 template <int> class QIntForSize { private: typedef void Type; };
55 template <> class QIntForSize<4> { public: typedef qint32 Type; };
56 template <> class QIntForSize<8> { public: typedef qint64 Type; };
57 template <typename T> class QIntForType : public QIntForSize<sizeof(T)> { };
58 typedef QIntForType<void *>::Type qptrdiff;
64 typedef unsigned char uchar;
65 typedef unsigned short ushort;
66 typedef unsigned int uint;
67 typedef unsigned long ulong;
68 # 697 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
70 # 837 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
71 typedef int QNoImplicitBoolCast;
72 # 848 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
81 inline T qAbs(const T &t) { return t >= 0 ? t : -t; }
83 inline int qRound(qreal d)
84 { return d >= 0.0 ? int(d + 0.5) : int(d - int(d-1) + 0.5) + int(d-1); }
86 inline qint64 qRound64(qreal d)
87 { return d >= 0.0 ? qint64(d + 0.5) : qint64(d - qint64(d-1) + 0.5) + qint64(d-1); }
90 inline const T &qMin(const T &a, const T &b) { if (a < b) return a; return b; }
92 inline const T &qMax(const T &a, const T &b) { if (a < b) return b; return a; }
94 inline const T &qBound(const T &min, const T &val, const T &max)
95 { return qMax(min, qMin(max, val)); }
96 # 901 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
98 # 937 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
99 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qfeatures.h" 1
100 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qfeatures.h" 1
101 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qfeatures.h" 2
102 # 938 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h" 2
103 # 1104 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
108 WordSize = (sizeof(void *)<<3)
117 static const int ByteOrder;
118 # 1180 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
121 const char *qVersion();
123 # 1251 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
124 void qDebug(const char *, ...)
126 __attribute__ ((format (printf, 1, 2)))
130 void qWarning(const char *, ...)
132 __attribute__ ((format (printf, 1, 2)))
137 QString qt_error_string(int errorCode = -1);
138 void qCritical(const char *, ...)
140 __attribute__ ((format (printf, 1, 2)))
143 void qFatal(const char *, ...)
145 __attribute__ ((format (printf, 1, 2)))
152 void qErrnoWarning(int code, const char *msg, ...);
153 void qErrnoWarning(const char *msg, ...);
154 # 1291 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
158 inline QDebug qDebug();
159 inline QDebug qWarning();
160 inline QDebug qCritical();
161 # 1310 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
162 inline void qt_noop() {}
164 void qt_assert(const char *assertion, const char *file, int line);
165 # 1326 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
166 void qt_assert_x(const char *where, const char *what, const char *file, int line);
167 # 1336 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
168 void qt_check_pointer(const char *, int);
169 # 1371 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
170 enum QtMsgType { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg = QtCriticalMsg };
172 void qt_message_output(QtMsgType, const char *buf);
174 typedef void (*QtMsgHandler)(QtMsgType, const char *);
175 QtMsgHandler qInstallMsgHandler(QtMsgHandler);
176 # 1385 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
177 template <typename T>
182 inline QGlobalStatic(T *p) : pointer(p) { }
183 inline ~QGlobalStatic() { pointer = 0; }
185 # 1481 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
191 inline explicit QBool(bool B) : b(B) {}
192 inline operator const void *() const
193 { return b ? static_cast<const void *>(this) : static_cast<const void *>(0); }
196 inline bool operator==(QBool b1, bool b2) { return !b1 == !b2; }
197 inline bool operator==(bool b1, QBool b2) { return !b1 == !b2; }
198 inline bool operator==(QBool b1, QBool b2) { return !b1 == !b2; }
199 inline bool operator!=(QBool b1, bool b2) { return !b1 != !b2; }
200 inline bool operator!=(bool b1, QBool b2) { return !b1 != !b2; }
201 inline bool operator!=(QBool b1, QBool b2) { return !b1 != !b2; }
203 static inline bool qFuzzyCompare(double p1, double p2)
205 return qAbs(p1 - p2) < 0.00000000001;
208 static inline bool qFuzzyCompare(float p1, float p2)
210 return qAbs(p1 - p2) < 0.000001;
218 static inline bool qIsNull(double d)
226 return val.u == quint64(0);
234 static inline bool qIsNull(float f)
244 # 1571 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
245 template <typename T> inline bool qIsDetached(T &) { return true; }
247 template <typename T>
255 isLarge = (sizeof(T)>sizeof(void*)),
260 template <typename T>
272 # 1629 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
275 Q_PRIMITIVE_TYPE = 0x1,
277 Q_MOVABLE_TYPE = 0x2,
280 # 1692 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
281 template <> class QTypeInfo<bool> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(bool)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "bool"; } };
282 template <> class QTypeInfo<char> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(char)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "char"; } };
283 template <> class QTypeInfo<signed char> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(signed char)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "signed char"; } };
284 template <> class QTypeInfo<uchar> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(uchar)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "uchar"; } };
285 template <> class QTypeInfo<short> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(short)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "short"; } };
286 template <> class QTypeInfo<ushort> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(ushort)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "ushort"; } };
287 template <> class QTypeInfo<int> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(int)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "int"; } };
288 template <> class QTypeInfo<uint> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(uint)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "uint"; } };
289 template <> class QTypeInfo<long> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(long)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "long"; } };
290 template <> class QTypeInfo<ulong> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(ulong)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "ulong"; } };
291 template <> class QTypeInfo<qint64> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(qint64)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "qint64"; } };
292 template <> class QTypeInfo<quint64> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(quint64)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "quint64"; } };
293 template <> class QTypeInfo<float> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(float)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "float"; } };
294 template <> class QTypeInfo<double> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(double)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "double"; } };
296 template <> class QTypeInfo<long double> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(long double)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "long double"; } };
303 void *qMalloc(size_t size);
304 void qFree(void *ptr);
305 void *qRealloc(void *ptr, size_t size);
306 void *qMemCopy(void *dest, const void *src, size_t n);
307 void *qMemSet(void *dest, int c, size_t n);
308 # 1755 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
314 inline operator int() const { return i; }
317 inline QFlag::QFlag(int ai) : i(ai) {}
322 template<typename Enum>
328 typedef Enum enum_type;
329 inline QFlags(const QFlags &f) : i(f.i) {}
330 inline QFlags(Enum f) : i(f) {}
331 inline QFlags(Zero = 0) : i(0) {}
332 inline QFlags(QFlag f) : i(f) {}
334 inline QFlags &operator=(const QFlags &f) { i = f.i; return *this; }
335 inline QFlags &operator&=(int mask) { i &= mask; return *this; }
336 inline QFlags &operator&=(uint mask) { i &= mask; return *this; }
337 inline QFlags &operator|=(QFlags f) { i |= f.i; return *this; }
338 inline QFlags &operator|=(Enum f) { i |= f; return *this; }
339 inline QFlags &operator^=(QFlags f) { i ^= f.i; return *this; }
340 inline QFlags &operator^=(Enum f) { i ^= f; return *this; }
342 inline operator int() const { return i; }
344 inline QFlags operator|(QFlags f) const { QFlags g; g.i = i | f.i; return g; }
345 inline QFlags operator|(Enum f) const { QFlags g; g.i = i | f; return g; }
346 inline QFlags operator^(QFlags f) const { QFlags g; g.i = i ^ f.i; return g; }
347 inline QFlags operator^(Enum f) const { QFlags g; g.i = i ^ f; return g; }
348 inline QFlags operator&(int mask) const { QFlags g; g.i = i & mask; return g; }
349 inline QFlags operator&(uint mask) const { QFlags g; g.i = i & mask; return g; }
350 inline QFlags operator&(Enum f) const { QFlags g; g.i = i & f; return g; }
351 inline QFlags operator~() const { QFlags g; g.i = ~i; return g; }
353 inline bool operator!() const { return !i; }
355 inline bool testFlag(Enum f) const { return i & f; }
362 # 1827 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
363 template <typename T>
364 class QForeachContainer {
366 inline QForeachContainer(const T& t) : c(t), brk(0), i(c.begin()), e(c.end()) { }
369 typename T::const_iterator i, e;
371 # 1939 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
373 QByteArray qgetenv(const char *varName);
375 inline int qIntCast(double f) { return int(f); }
376 inline int qIntCast(float f) { return int(f); }
381 void qsrand(uint seed);
383 # 2031 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
384 enum QtValidLicenseForCoreModule { LicensedCore = true };
387 enum QtValidLicenseForGuiModule { LicensedGui = true };
390 enum QtValidLicenseForNetworkModule { LicensedNetwork = true };
393 enum QtValidLicenseForOpenGLModule { LicensedOpenGL = true };
396 enum QtValidLicenseForSqlModule { LicensedSql = true };
399 enum QtValidLicenseForXmlModule { LicensedXml = true };
402 enum QtValidLicenseForScriptModule { LicensedScript = true };
405 enum QtValidLicenseForQt3SupportLightModule { LicensedQt3SupportLight = true };
408 enum QtValidLicenseForQt3SupportModule { LicensedQt3Support = true };
411 enum QtValidLicenseForSvgModule { LicensedSvg = true };
414 enum QtValidLicenseForActiveQtModule { LicensedActiveQt = true };
421 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 2
422 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h" 2
426 typedef QtValidLicenseForCoreModule QtCoreModule;
432 namespace QAlgorithmsPrivate {
434 template <typename RandomAccessIterator, typename T, typename LessThan>
435 void qSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan);
436 template <typename RandomAccessIterator, typename T>
437 inline void qSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy);
439 template <typename RandomAccessIterator, typename T, typename LessThan>
440 void qStableSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan);
441 template <typename RandomAccessIterator, typename T>
442 inline void qStableSortHelper(RandomAccessIterator, RandomAccessIterator, const T &);
444 template <typename RandomAccessIterator, typename T, typename LessThan>
445 RandomAccessIterator qLowerBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
446 template <typename RandomAccessIterator, typename T, typename LessThan>
447 RandomAccessIterator qUpperBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
448 template <typename RandomAccessIterator, typename T, typename LessThan>
449 RandomAccessIterator qBinaryFindHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
453 template <typename InputIterator, typename OutputIterator>
454 inline OutputIterator qCopy(InputIterator begin, InputIterator end, OutputIterator dest)
461 template <typename BiIterator1, typename BiIterator2>
462 inline BiIterator2 qCopyBackward(BiIterator1 begin, BiIterator1 end, BiIterator2 dest)
469 template <typename InputIterator1, typename InputIterator2>
470 inline bool qEqual(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2)
472 for (; first1 != last1; ++first1, ++first2)
473 if (!(*first1 == *first2))
478 template <typename ForwardIterator, typename T>
479 inline void qFill(ForwardIterator first, ForwardIterator last, const T &val)
481 for (; first != last; ++first)
485 template <typename Container, typename T>
486 inline void qFill(Container &container, const T &val)
488 qFill(container.begin(), container.end(), val);
491 template <typename InputIterator, typename T>
492 inline InputIterator qFind(InputIterator first, InputIterator last, const T &val)
494 while (first != last && !(*first == val))
499 template <typename Container, typename T>
500 inline typename Container::const_iterator qFind(const Container &container, const T &val)
502 return qFind(container.constBegin(), container.constEnd(), val);
505 template <typename InputIterator, typename T, typename Size>
506 inline void qCount(InputIterator first, InputIterator last, const T &value, Size &n)
508 for (; first != last; ++first)
513 template <typename Container, typename T, typename Size>
514 inline void qCount(const Container &container, const T &value, Size &n)
516 qCount(container.constBegin(), container.constEnd(), value, n);
518 # 147 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h"
519 template <typename T>
520 inline void qSwap(T &value1, T &value2)
526 # 167 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h"
527 template <typename T>
531 inline bool operator()(const T &t1, const T &t2) const
537 template <typename T>
541 inline bool operator()(const T &t1, const T &t2) const
548 template <typename RandomAccessIterator>
549 inline void qSort(RandomAccessIterator start, RandomAccessIterator end)
552 QAlgorithmsPrivate::qSortHelper(start, end, *start);
555 template <typename RandomAccessIterator, typename LessThan>
556 inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
559 QAlgorithmsPrivate::qSortHelper(start, end, *start, lessThan);
562 template<typename Container>
563 inline void qSort(Container &c)
570 QAlgorithmsPrivate::qSortHelper(c.begin(), c.end(), *c.begin());
573 template <typename RandomAccessIterator>
574 inline void qStableSort(RandomAccessIterator start, RandomAccessIterator end)
577 QAlgorithmsPrivate::qStableSortHelper(start, end, *start);
580 template <typename RandomAccessIterator, typename LessThan>
581 inline void qStableSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
584 QAlgorithmsPrivate::qStableSortHelper(start, end, *start, lessThan);
587 template<typename Container>
588 inline void qStableSort(Container &c)
595 QAlgorithmsPrivate::qStableSortHelper(c.begin(), c.end(), *c.begin());
598 template <typename RandomAccessIterator, typename T>
599 RandomAccessIterator qLowerBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
604 RandomAccessIterator middle;
610 middle = begin + half;
611 if (*middle < value) {
621 template <typename RandomAccessIterator, typename T, typename LessThan>
622 RandomAccessIterator qLowerBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
624 return QAlgorithmsPrivate::qLowerBoundHelper(begin, end, value, lessThan);
627 template <typename Container, typename T>
628 typename Container::const_iterator qLowerBound(const Container &container, const T &value)
630 return QAlgorithmsPrivate::qLowerBoundHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
633 template <typename RandomAccessIterator, typename T>
634 RandomAccessIterator qUpperBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
637 RandomAccessIterator middle;
643 middle = begin + half;
644 if (value < *middle) {
654 template <typename RandomAccessIterator, typename T, typename LessThan>
655 RandomAccessIterator qUpperBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
657 return QAlgorithmsPrivate::qUpperBoundHelper(begin, end, value, lessThan);
660 template <typename Container, typename T>
661 typename Container::const_iterator qUpperBound(const Container &container, const T &value)
663 return QAlgorithmsPrivate::qUpperBoundHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
666 template <typename RandomAccessIterator, typename T>
667 RandomAccessIterator qBinaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
671 int r = end - begin - 1;
674 int i = (l + r + 1) / 2;
677 if (value < begin[i])
683 if (begin[i] < value || value < begin[i])
689 template <typename RandomAccessIterator, typename T, typename LessThan>
690 RandomAccessIterator qBinaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
692 return QAlgorithmsPrivate::qBinaryFindHelper(begin, end, value, lessThan);
695 template <typename Container, typename T>
696 typename Container::const_iterator qBinaryFind(const Container &container, const T &value)
698 return QAlgorithmsPrivate::qBinaryFindHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
701 template <typename ForwardIterator>
702 void qDeleteAll(ForwardIterator begin, ForwardIterator end)
704 while (begin != end) {
710 template <typename Container>
711 inline void qDeleteAll(const Container &c)
713 qDeleteAll(c.begin(), c.end());
720 namespace QAlgorithmsPrivate {
722 template <typename RandomAccessIterator, typename T, typename LessThan>
723 void qSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan)
726 int span = end - start;
731 RandomAccessIterator low = start, high = end - 1;
732 RandomAccessIterator pivot = start + span / 2;
734 if (lessThan(*end, *start))
739 if (lessThan(*pivot, *start))
740 qSwap(*pivot, *start);
741 if (lessThan(*end, *pivot))
749 while (low < high && lessThan(*low, *end))
752 while (high > low && lessThan(*end, *high))
764 if (lessThan(*low, *end))
768 qSortHelper(start, low, t, lessThan);
775 template <typename RandomAccessIterator, typename T>
776 inline void qSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy)
778 qSortHelper(begin, end, dummy, qLess<T>());
781 template <typename RandomAccessIterator>
782 void qReverse(RandomAccessIterator begin, RandomAccessIterator end)
786 qSwap(*begin++, *end--);
789 template <typename RandomAccessIterator>
790 void qRotate(RandomAccessIterator begin, RandomAccessIterator middle, RandomAccessIterator end)
792 qReverse(begin, middle);
793 qReverse(middle, end);
794 qReverse(begin, end);
797 template <typename RandomAccessIterator, typename T, typename LessThan>
798 void qMerge(RandomAccessIterator begin, RandomAccessIterator pivot, RandomAccessIterator end, T &t, LessThan lessThan)
800 const int len1 = pivot - begin;
801 const int len2 = end - pivot;
803 if (len1 == 0 || len2 == 0)
806 if (len1 + len2 == 2) {
807 if (lessThan(*(begin + 1), *(begin)))
808 qSwap(*begin, *(begin + 1));
812 RandomAccessIterator firstCut;
813 RandomAccessIterator secondCut;
816 const int len1Half = len1 / 2;
817 firstCut = begin + len1Half;
818 secondCut = qLowerBound(pivot, end, *firstCut, lessThan);
819 len2Half = secondCut - pivot;
822 secondCut = pivot + len2Half;
823 firstCut = qUpperBound(begin, pivot, *secondCut, lessThan);
826 qRotate(firstCut, pivot, secondCut);
827 const RandomAccessIterator newPivot = firstCut + len2Half;
828 qMerge(begin, firstCut, newPivot, t, lessThan);
829 qMerge(newPivot, secondCut, end, t, lessThan);
832 template <typename RandomAccessIterator, typename T, typename LessThan>
833 void qStableSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &t, LessThan lessThan)
835 const int span = end - begin;
839 const RandomAccessIterator middle = begin + span / 2;
840 qStableSortHelper(begin, middle, t, lessThan);
841 qStableSortHelper(middle, end, t, lessThan);
842 qMerge(begin, middle, end, t, lessThan);
845 template <typename RandomAccessIterator, typename T>
846 inline void qStableSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy)
848 qStableSortHelper(begin, end, dummy, qLess<T>());
851 template <typename RandomAccessIterator, typename T, typename LessThan>
852 RandomAccessIterator qLowerBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
854 RandomAccessIterator middle;
860 middle = begin + half;
861 if (lessThan(*middle, value)) {
872 template <typename RandomAccessIterator, typename T, typename LessThan>
873 RandomAccessIterator qUpperBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
875 RandomAccessIterator middle;
881 middle = begin + half;
882 if (lessThan(value, *middle)) {
892 template <typename RandomAccessIterator, typename T, typename LessThan>
893 RandomAccessIterator qBinaryFindHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
896 int r = end - begin - 1;
899 int i = (l + r + 1) / 2;
902 if (lessThan(value, begin[i]))
908 if (lessThan(begin[i], value) || lessThan(value, begin[i]))
917 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qalgorithms.h" 2
918 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstringlist.h" 2
919 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qdatastream.h" 1
920 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qdatastream.h" 1
921 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qdatastream.h"
922 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qiodevice.h" 1
923 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qiodevice.h" 1
924 # 45 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qiodevice.h"
925 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qobjectdefs.h" 1
926 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h" 1
927 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h"
928 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qnamespace.h" 1
929 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h" 1
930 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
931 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
932 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h" 2
936 typedef QtValidLicenseForCoreModule QtCoreModule;
944 # 75 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
968 enum KeyboardModifier {
969 NoModifier = 0x00000000,
970 ShiftModifier = 0x02000000,
971 ControlModifier = 0x04000000,
972 AltModifier = 0x08000000,
973 MetaModifier = 0x10000000,
974 KeypadModifier = 0x20000000,
975 GroupSwitchModifier = 0x40000000,
977 KeyboardModifierMask = 0xfe000000
979 typedef QFlags<KeyboardModifier> KeyboardModifiers;
983 META = Qt::MetaModifier,
984 SHIFT = Qt::ShiftModifier,
985 CTRL = Qt::ControlModifier,
986 ALT = Qt::AltModifier,
987 MODIFIER_MASK = KeyboardModifierMask,
988 UNICODE_ACCEL = 0x00000000
992 NoButton = 0x00000000,
993 LeftButton = 0x00000001,
994 RightButton = 0x00000002,
995 MidButton = 0x00000004,
996 XButton1 = 0x00000008,
997 XButton2 = 0x00000010,
998 MouseButtonMask = 0x000000ff
1000 typedef QFlags<MouseButton> MouseButtons;
1001 # 144 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1007 typedef QFlags<Orientation> Orientations;
1013 StrongFocus = TabFocus | ClickFocus | 0x8,
1014 WheelFocus = StrongFocus | 0x4
1030 enum AlignmentFlag {
1032 AlignLeading = AlignLeft,
1033 AlignRight = 0x0002,
1034 AlignTrailing = AlignRight,
1035 AlignHCenter = 0x0004,
1036 AlignJustify = 0x0008,
1037 AlignAbsolute = 0x0010,
1038 AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute,
1041 AlignBottom = 0x0040,
1042 AlignVCenter = 0x0080,
1043 AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,
1045 AlignCenter = AlignVCenter | AlignHCenter
1051 typedef QFlags<AlignmentFlag> Alignment;
1054 TextSingleLine = 0x0100,
1055 TextDontClip = 0x0200,
1056 TextExpandTabs = 0x0400,
1057 TextShowMnemonic = 0x0800,
1058 TextWordWrap = 0x1000,
1059 TextWrapAnywhere = 0x2000,
1060 TextDontPrint = 0x4000,
1061 TextIncludeTrailingSpaces = 0x08000000,
1062 TextHideMnemonic = 0x8000,
1063 TextJustificationForced = 0x10000
1064 # 218 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1070 enum TextElideMode {
1078 Widget = 0x00000000,
1079 Window = 0x00000001,
1080 Dialog = 0x00000002 | Window,
1081 Sheet = 0x00000004 | Window,
1082 Drawer = 0x00000006 | Window,
1083 Popup = 0x00000008 | Window,
1084 Tool = 0x0000000a | Window,
1085 ToolTip = 0x0000000c | Window,
1086 SplashScreen = 0x0000000e | Window,
1087 Desktop = 0x00000010 | Window,
1088 SubWindow = 0x00000012,
1090 WindowType_Mask = 0x000000ff,
1091 MSWindowsFixedSizeDialogHint = 0x00000100,
1092 MSWindowsOwnDC = 0x00000200,
1093 X11BypassWindowManagerHint = 0x00000400,
1094 FramelessWindowHint = 0x00000800,
1095 WindowTitleHint = 0x00001000,
1096 WindowSystemMenuHint = 0x00002000,
1097 WindowMinimizeButtonHint = 0x00004000,
1098 WindowMaximizeButtonHint = 0x00008000,
1099 WindowMinMaxButtonsHint = WindowMinimizeButtonHint | WindowMaximizeButtonHint,
1100 WindowContextHelpButtonHint = 0x00010000,
1101 WindowShadeButtonHint = 0x00020000,
1102 WindowStaysOnTopHint = 0x00040000,
1103 CustomizeWindowHint = 0x02000000
1104 # 307 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1107 typedef QFlags<WindowType> WindowFlags;
1110 WindowNoState = 0x00000000,
1111 WindowMinimized = 0x00000001,
1112 WindowMaximized = 0x00000002,
1113 WindowFullScreen = 0x00000004,
1114 WindowActive = 0x00000008
1117 typedef QFlags<WindowState> WindowStates;
1119 enum WidgetAttribute {
1122 WA_MouseTracking = 2,
1123 WA_ContentsPropagated = 3,
1124 WA_OpaquePaintEvent = 4,
1125 WA_NoBackground = WA_OpaquePaintEvent,
1126 WA_StaticContents = 5,
1128 WA_PaintOnScreen = 8,
1129 WA_NoSystemBackground = 9,
1130 WA_UpdatesDisabled = 10,
1132 WA_MacNoClickThrough = 12,
1133 WA_PaintOutsidePaintEvent = 13,
1134 WA_InputMethodEnabled = 14,
1135 WA_WState_Visible = 15,
1136 WA_WState_Hidden = 16,
1138 WA_ForceDisabled = 32,
1139 WA_KeyCompression = 33,
1140 WA_PendingMoveEvent = 34,
1141 WA_PendingResizeEvent = 35,
1145 WA_NoChildEventsFromChildren = 39,
1146 WA_WindowModified = 41,
1149 WA_PendingUpdate = 44,
1150 WA_InvalidSize = 45,
1151 WA_MacBrushedMetal = 46,
1152 WA_MacMetalStyle = WA_MacBrushedMetal,
1153 WA_CustomWhatsThis = 47,
1154 WA_LayoutOnEntireRect = 48,
1155 WA_OutsideWSRange = 49,
1156 WA_GrabbedShortcut = 50,
1157 WA_TransparentForMouseEvents = 51,
1158 WA_PaintUnclipped = 52,
1159 WA_SetWindowIcon = 53,
1160 WA_NoMouseReplay = 54,
1161 WA_DeleteOnClose = 55,
1162 WA_RightToLeft = 56,
1163 WA_SetLayoutDirection = 57,
1164 WA_NoChildEventsForParent = 58,
1165 WA_ForceUpdatesDisabled = 59,
1167 WA_WState_Created = 60,
1168 WA_WState_CompressKeys = 61,
1169 WA_WState_InPaintEvent = 62,
1170 WA_WState_Reparented = 63,
1171 WA_WState_ConfigPending = 64,
1172 WA_WState_Polished = 66,
1174 WA_WState_OwnSizePolicy = 68,
1175 WA_WState_ExplicitShowHide = 69,
1178 WA_MouseNoMask = 71,
1179 WA_GroupLeader = 72,
1180 WA_NoMousePropagation = 73,
1182 WA_InputMethodTransparent = 75,
1183 WA_QuitOnClose = 76,
1185 WA_KeyboardFocusChange = 77,
1187 WA_AcceptDrops = 78,
1188 WA_DropSiteRegistered = 79,
1189 WA_ForceAcceptDrops = WA_DropSiteRegistered,
1191 WA_WindowPropagation = 80,
1193 WA_NoX11EventCompression = 81,
1194 WA_TintedBackground = 82,
1195 WA_X11OpenGLOverlay = 83,
1196 WA_AlwaysShowToolTips = 84,
1197 WA_MacOpaqueSizeGrip = 85,
1201 WA_MacShowFocusRect = 88,
1203 WA_MacNormalSize = 89,
1204 WA_MacSmallSize = 90,
1205 WA_MacMiniSize = 91,
1207 WA_LayoutUsesWidgetRect = 92,
1208 WA_StyledBackground = 93,
1209 WA_MSWindowsUseDirect3D = 94,
1210 WA_CanHostQMdiSubWindowTitleBar = 95,
1212 WA_MacAlwaysShowToolWindow = 96,
1220 enum ApplicationAttribute
1222 AA_ImmediateWidgetCreation = 0,
1223 AA_MSWindowsUseDirect3DByDefault = 1,
1233 enum ImageConversionFlag {
1234 ColorMode_Mask = 0x00000003,
1235 AutoColor = 0x00000000,
1236 ColorOnly = 0x00000003,
1237 MonoOnly = 0x00000002,
1240 AlphaDither_Mask = 0x0000000c,
1241 ThresholdAlphaDither = 0x00000000,
1242 OrderedAlphaDither = 0x00000004,
1243 DiffuseAlphaDither = 0x00000008,
1244 NoAlpha = 0x0000000c,
1246 Dither_Mask = 0x00000030,
1247 DiffuseDither = 0x00000000,
1248 OrderedDither = 0x00000010,
1249 ThresholdDither = 0x00000020,
1252 DitherMode_Mask = 0x000000c0,
1253 AutoDither = 0x00000000,
1254 PreferDither = 0x00000040,
1255 AvoidDither = 0x00000080
1257 typedef QFlags<ImageConversionFlag> ImageConversionFlags;
1263 # 485 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1265 Key_Escape = 0x01000000,
1266 Key_Tab = 0x01000001,
1267 Key_Backtab = 0x01000002,
1271 Key_Backspace = 0x01000003,
1275 Key_Return = 0x01000004,
1276 Key_Enter = 0x01000005,
1277 Key_Insert = 0x01000006,
1278 Key_Delete = 0x01000007,
1279 Key_Pause = 0x01000008,
1280 Key_Print = 0x01000009,
1281 Key_SysReq = 0x0100000a,
1282 Key_Clear = 0x0100000b,
1283 Key_Home = 0x01000010,
1284 Key_End = 0x01000011,
1285 Key_Left = 0x01000012,
1286 Key_Up = 0x01000013,
1287 Key_Right = 0x01000014,
1288 Key_Down = 0x01000015,
1289 Key_PageUp = 0x01000016,
1293 Key_PageDown = 0x01000017,
1297 Key_Shift = 0x01000020,
1298 Key_Control = 0x01000021,
1299 Key_Meta = 0x01000022,
1300 Key_Alt = 0x01000023,
1301 Key_CapsLock = 0x01000024,
1302 Key_NumLock = 0x01000025,
1303 Key_ScrollLock = 0x01000026,
1304 Key_F1 = 0x01000030,
1305 Key_F2 = 0x01000031,
1306 Key_F3 = 0x01000032,
1307 Key_F4 = 0x01000033,
1308 Key_F5 = 0x01000034,
1309 Key_F6 = 0x01000035,
1310 Key_F7 = 0x01000036,
1311 Key_F8 = 0x01000037,
1312 Key_F9 = 0x01000038,
1313 Key_F10 = 0x01000039,
1314 Key_F11 = 0x0100003a,
1315 Key_F12 = 0x0100003b,
1316 Key_F13 = 0x0100003c,
1317 Key_F14 = 0x0100003d,
1318 Key_F15 = 0x0100003e,
1319 Key_F16 = 0x0100003f,
1320 Key_F17 = 0x01000040,
1321 Key_F18 = 0x01000041,
1322 Key_F19 = 0x01000042,
1323 Key_F20 = 0x01000043,
1324 Key_F21 = 0x01000044,
1325 Key_F22 = 0x01000045,
1326 Key_F23 = 0x01000046,
1327 Key_F24 = 0x01000047,
1328 Key_F25 = 0x01000048,
1329 Key_F26 = 0x01000049,
1330 Key_F27 = 0x0100004a,
1331 Key_F28 = 0x0100004b,
1332 Key_F29 = 0x0100004c,
1333 Key_F30 = 0x0100004d,
1334 Key_F31 = 0x0100004e,
1335 Key_F32 = 0x0100004f,
1336 Key_F33 = 0x01000050,
1337 Key_F34 = 0x01000051,
1338 Key_F35 = 0x01000052,
1339 Key_Super_L = 0x01000053,
1340 Key_Super_R = 0x01000054,
1341 Key_Menu = 0x01000055,
1342 Key_Hyper_L = 0x01000056,
1343 Key_Hyper_R = 0x01000057,
1344 Key_Help = 0x01000058,
1345 Key_Direction_L = 0x01000059,
1346 Key_Direction_R = 0x01000060,
1348 Key_Any = Key_Space,
1350 Key_QuoteDbl = 0x22,
1351 Key_NumberSign = 0x23,
1354 Key_Ampersand = 0x26,
1355 Key_Apostrophe = 0x27,
1356 Key_ParenLeft = 0x28,
1357 Key_ParenRight = 0x29,
1358 Key_Asterisk = 0x2a,
1375 Key_Semicolon = 0x3b,
1379 Key_Question = 0x3f,
1407 Key_BracketLeft = 0x5b,
1408 Key_Backslash = 0x5c,
1409 Key_BracketRight = 0x5d,
1410 Key_AsciiCircum = 0x5e,
1411 Key_Underscore = 0x5f,
1412 Key_QuoteLeft = 0x60,
1413 Key_BraceLeft = 0x7b,
1415 Key_BraceRight = 0x7d,
1416 Key_AsciiTilde = 0x7e,
1418 Key_nobreakspace = 0x0a0,
1419 Key_exclamdown = 0x0a1,
1421 Key_sterling = 0x0a3,
1422 Key_currency = 0x0a4,
1424 Key_brokenbar = 0x0a6,
1425 Key_section = 0x0a7,
1426 Key_diaeresis = 0x0a8,
1427 Key_copyright = 0x0a9,
1428 Key_ordfeminine = 0x0aa,
1429 Key_guillemotleft = 0x0ab,
1430 Key_notsign = 0x0ac,
1432 Key_registered = 0x0ae,
1435 Key_plusminus = 0x0b1,
1436 Key_twosuperior = 0x0b2,
1437 Key_threesuperior = 0x0b3,
1440 Key_paragraph = 0x0b6,
1441 Key_periodcentered = 0x0b7,
1442 Key_cedilla = 0x0b8,
1443 Key_onesuperior = 0x0b9,
1444 Key_masculine = 0x0ba,
1445 Key_guillemotright = 0x0bb,
1446 Key_onequarter = 0x0bc,
1447 Key_onehalf = 0x0bd,
1448 Key_threequarters = 0x0be,
1449 Key_questiondown = 0x0bf,
1452 Key_Acircumflex = 0x0c2,
1454 Key_Adiaeresis = 0x0c4,
1457 Key_Ccedilla = 0x0c7,
1460 Key_Ecircumflex = 0x0ca,
1461 Key_Ediaeresis = 0x0cb,
1464 Key_Icircumflex = 0x0ce,
1465 Key_Idiaeresis = 0x0cf,
1470 Key_Ocircumflex = 0x0d4,
1472 Key_Odiaeresis = 0x0d6,
1473 Key_multiply = 0x0d7,
1474 Key_Ooblique = 0x0d8,
1477 Key_Ucircumflex = 0x0db,
1478 Key_Udiaeresis = 0x0dc,
1482 # 728 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1483 Key_division = 0x0f7,
1484 # 738 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1485 Key_ydiaeresis = 0x0ff,
1492 Key_AltGr = 0x01001103,
1493 Key_Multi_key = 0x01001120,
1494 Key_Codeinput = 0x01001137,
1495 Key_SingleCandidate = 0x0100113c,
1496 Key_MultipleCandidate = 0x0100113d,
1497 Key_PreviousCandidate = 0x0100113e,
1500 Key_Mode_switch = 0x0100117e,
1504 Key_Kanji = 0x01001121,
1505 Key_Muhenkan = 0x01001122,
1507 Key_Henkan = 0x01001123,
1508 Key_Romaji = 0x01001124,
1509 Key_Hiragana = 0x01001125,
1510 Key_Katakana = 0x01001126,
1511 Key_Hiragana_Katakana = 0x01001127,
1512 Key_Zenkaku = 0x01001128,
1513 Key_Hankaku = 0x01001129,
1514 Key_Zenkaku_Hankaku = 0x0100112a,
1515 Key_Touroku = 0x0100112b,
1516 Key_Massyo = 0x0100112c,
1517 Key_Kana_Lock = 0x0100112d,
1518 Key_Kana_Shift = 0x0100112e,
1519 Key_Eisu_Shift = 0x0100112f,
1520 Key_Eisu_toggle = 0x01001130,
1521 # 783 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1522 Key_Hangul = 0x01001131,
1523 Key_Hangul_Start = 0x01001132,
1524 Key_Hangul_End = 0x01001133,
1525 Key_Hangul_Hanja = 0x01001134,
1526 Key_Hangul_Jamo = 0x01001135,
1527 Key_Hangul_Romaja = 0x01001136,
1529 Key_Hangul_Jeonja = 0x01001138,
1530 Key_Hangul_Banja = 0x01001139,
1531 Key_Hangul_PreHanja = 0x0100113a,
1532 Key_Hangul_PostHanja = 0x0100113b,
1536 Key_Hangul_Special = 0x0100113f,
1540 Key_Dead_Grave = 0x01001250,
1541 Key_Dead_Acute = 0x01001251,
1542 Key_Dead_Circumflex = 0x01001252,
1543 Key_Dead_Tilde = 0x01001253,
1544 Key_Dead_Macron = 0x01001254,
1545 Key_Dead_Breve = 0x01001255,
1546 Key_Dead_Abovedot = 0x01001256,
1547 Key_Dead_Diaeresis = 0x01001257,
1548 Key_Dead_Abovering = 0x01001258,
1549 Key_Dead_Doubleacute = 0x01001259,
1550 Key_Dead_Caron = 0x0100125a,
1551 Key_Dead_Cedilla = 0x0100125b,
1552 Key_Dead_Ogonek = 0x0100125c,
1553 Key_Dead_Iota = 0x0100125d,
1554 Key_Dead_Voiced_Sound = 0x0100125e,
1555 Key_Dead_Semivoiced_Sound = 0x0100125f,
1556 Key_Dead_Belowdot = 0x01001260,
1557 Key_Dead_Hook = 0x01001261,
1558 Key_Dead_Horn = 0x01001262,
1562 Key_Back = 0x01000061,
1563 Key_Forward = 0x01000062,
1564 Key_Stop = 0x01000063,
1565 Key_Refresh = 0x01000064,
1567 Key_VolumeDown = 0x01000070,
1568 Key_VolumeMute = 0x01000071,
1569 Key_VolumeUp = 0x01000072,
1570 Key_BassBoost = 0x01000073,
1571 Key_BassUp = 0x01000074,
1572 Key_BassDown = 0x01000075,
1573 Key_TrebleUp = 0x01000076,
1574 Key_TrebleDown = 0x01000077,
1576 Key_MediaPlay = 0x01000080,
1577 Key_MediaStop = 0x01000081,
1578 Key_MediaPrevious = 0x01000082,
1582 Key_MediaNext = 0x01000083,
1583 Key_MediaRecord = 0x01000084,
1585 Key_HomePage = 0x01000090,
1586 Key_Favorites = 0x01000091,
1587 Key_Search = 0x01000092,
1588 Key_Standby = 0x01000093,
1589 Key_OpenUrl = 0x01000094,
1591 Key_LaunchMail = 0x010000a0,
1592 Key_LaunchMedia = 0x010000a1,
1593 Key_Launch0 = 0x010000a2,
1594 Key_Launch1 = 0x010000a3,
1595 Key_Launch2 = 0x010000a4,
1596 Key_Launch3 = 0x010000a5,
1597 Key_Launch4 = 0x010000a6,
1598 Key_Launch5 = 0x010000a7,
1599 Key_Launch6 = 0x010000a8,
1600 Key_Launch7 = 0x010000a9,
1601 Key_Launch8 = 0x010000aa,
1602 Key_Launch9 = 0x010000ab,
1603 Key_LaunchA = 0x010000ac,
1604 Key_LaunchB = 0x010000ad,
1605 Key_LaunchC = 0x010000ae,
1606 Key_LaunchD = 0x010000af,
1607 Key_LaunchE = 0x010000b0,
1608 Key_LaunchF = 0x010000b1,
1610 Key_MediaLast = 0x0100ffff,
1613 Key_Select = 0x01010000,
1614 Key_Yes = 0x01010001,
1615 Key_No = 0x01010002,
1618 Key_Cancel = 0x01020001,
1619 Key_Printer = 0x01020002,
1620 Key_Execute = 0x01020003,
1621 Key_Sleep = 0x01020004,
1622 Key_Play = 0x01020005,
1623 Key_Zoom = 0x01020006,
1629 Key_Context1 = 0x01100000,
1630 Key_Context2 = 0x01100001,
1631 Key_Context3 = 0x01100002,
1632 Key_Context4 = 0x01100003,
1633 Key_Call = 0x01100004,
1634 Key_Hangup = 0x01100005,
1635 Key_Flip = 0x01100006,
1637 Key_unknown = 0x01ffffff
1672 SvgMiterJoin = 0x100,
1673 MPenJoinStyle = 0x1c0
1692 LinearGradientPattern,
1693 RadialGradientPattern,
1694 ConicalGradientPattern,
1700 # 1020 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1731 LastCursor = ClosedHandCursor,
1734 # 1073 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1744 enum AspectRatioMode {
1747 KeepAspectRatioByExpanding
1758 enum AnchorAttribute {
1763 enum DockWidgetArea {
1764 LeftDockWidgetArea = 0x1,
1765 RightDockWidgetArea = 0x2,
1766 TopDockWidgetArea = 0x4,
1767 BottomDockWidgetArea = 0x8,
1769 DockWidgetArea_Mask = 0xf,
1770 AllDockWidgetAreas = DockWidgetArea_Mask,
1771 NoDockWidgetArea = 0
1773 enum DockWidgetAreaSizes {
1774 NDockWidgetAreas = 4
1777 typedef QFlags<DockWidgetArea> DockWidgetAreas;
1780 LeftToolBarArea = 0x1,
1781 RightToolBarArea = 0x2,
1782 TopToolBarArea = 0x4,
1783 BottomToolBarArea = 0x8,
1785 ToolBarArea_Mask = 0xf,
1786 AllToolBarAreas = ToolBarArea_Mask,
1790 enum ToolBarAreaSizes {
1794 typedef QFlags<ToolBarArea> ToolBarAreas;
1795 # 1156 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1800 LocalDate = SystemLocaleDate,
1819 enum ScrollBarPolicy {
1824 # 1210 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1825 enum CaseSensitivity {
1831 TopLeftCorner = 0x00000,
1832 TopRightCorner = 0x00001,
1833 BottomLeftCorner = 0x00002,
1834 BottomRightCorner = 0x00003
1843 enum ConnectionType {
1847 AutoCompatConnection,
1848 BlockingQueuedConnection
1851 enum ShortcutContext {
1867 enum ClipOperation {
1875 enum ItemSelectionMode {
1876 ContainsItemShape = 0x0,
1877 IntersectsItemShape = 0x1,
1878 ContainsItemBoundingRect = 0x2,
1879 IntersectsItemBoundingRect = 0x3
1882 enum TransformationMode {
1884 SmoothTransformation
1897 ActiveWindowFocusReason,
1899 ShortcutFocusReason,
1905 enum ContextMenuPolicy {
1913 enum InputMethodQuery {
1921 enum ToolButtonStyle {
1924 ToolButtonTextBesideIcon,
1925 ToolButtonTextUnderIcon
1928 enum LayoutDirection {
1938 TargetMoveAction = 0x8002,
1941 typedef QFlags<DropAction> DropActions;
1958 TextAlignmentRole = 7,
1959 BackgroundColorRole = 8,
1963 CheckStateRole = 10,
1965 AccessibleTextRole = 11,
1966 AccessibleDescriptionRole = 12,
1974 ItemIsSelectable = 1,
1976 ItemIsDragEnabled = 4,
1977 ItemIsDropEnabled = 8,
1978 ItemIsUserCheckable = 16,
1982 typedef QFlags<ItemFlag> ItemFlags;
1987 MatchStartsWith = 2,
1991 MatchFixedString = 8,
1992 MatchCaseSensitive = 16,
1996 typedef QFlags<MatchFlag> MatchFlags;
2003 typedef unsigned long HANDLE;
2007 typedef WindowFlags WFlags;
2009 enum WindowModality {
2015 enum TextInteractionFlag {
2016 NoTextInteraction = 0,
2017 TextSelectableByMouse = 1,
2018 TextSelectableByKeyboard = 2,
2019 LinksAccessibleByMouse = 4,
2020 LinksAccessibleByKeyboard = 8,
2023 TextEditorInteraction = TextSelectableByMouse | TextSelectableByKeyboard | TextEditable,
2024 TextBrowserInteraction = TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard
2026 typedef QFlags<TextInteractionFlag> TextInteractionFlags;
2028 enum EventPriority {
2029 HighEventPriority = 1,
2030 NormalEventPriority = 0,
2031 LowEventPriority = -1
2039 inline QFlags<Qt::MouseButtons::enum_type> operator|(Qt::MouseButtons::enum_type f1, Qt::MouseButtons::enum_type f2) { return QFlags<Qt::MouseButtons::enum_type>(f1) | f2; } inline QFlags<Qt::MouseButtons::enum_type> operator|(Qt::MouseButtons::enum_type f1, QFlags<Qt::MouseButtons::enum_type> f2) { return f2 | f1; }
2040 inline QFlags<Qt::Orientations::enum_type> operator|(Qt::Orientations::enum_type f1, Qt::Orientations::enum_type f2) { return QFlags<Qt::Orientations::enum_type>(f1) | f2; } inline QFlags<Qt::Orientations::enum_type> operator|(Qt::Orientations::enum_type f1, QFlags<Qt::Orientations::enum_type> f2) { return f2 | f1; }
2041 inline QFlags<Qt::KeyboardModifiers::enum_type> operator|(Qt::KeyboardModifiers::enum_type f1, Qt::KeyboardModifiers::enum_type f2) { return QFlags<Qt::KeyboardModifiers::enum_type>(f1) | f2; } inline QFlags<Qt::KeyboardModifiers::enum_type> operator|(Qt::KeyboardModifiers::enum_type f1, QFlags<Qt::KeyboardModifiers::enum_type> f2) { return f2 | f1; }
2042 inline QFlags<Qt::WindowFlags::enum_type> operator|(Qt::WindowFlags::enum_type f1, Qt::WindowFlags::enum_type f2) { return QFlags<Qt::WindowFlags::enum_type>(f1) | f2; } inline QFlags<Qt::WindowFlags::enum_type> operator|(Qt::WindowFlags::enum_type f1, QFlags<Qt::WindowFlags::enum_type> f2) { return f2 | f1; }
2043 inline QFlags<Qt::Alignment::enum_type> operator|(Qt::Alignment::enum_type f1, Qt::Alignment::enum_type f2) { return QFlags<Qt::Alignment::enum_type>(f1) | f2; } inline QFlags<Qt::Alignment::enum_type> operator|(Qt::Alignment::enum_type f1, QFlags<Qt::Alignment::enum_type> f2) { return f2 | f1; }
2044 inline QFlags<Qt::ImageConversionFlags::enum_type> operator|(Qt::ImageConversionFlags::enum_type f1, Qt::ImageConversionFlags::enum_type f2) { return QFlags<Qt::ImageConversionFlags::enum_type>(f1) | f2; } inline QFlags<Qt::ImageConversionFlags::enum_type> operator|(Qt::ImageConversionFlags::enum_type f1, QFlags<Qt::ImageConversionFlags::enum_type> f2) { return f2 | f1; }
2045 inline QFlags<Qt::DockWidgetAreas::enum_type> operator|(Qt::DockWidgetAreas::enum_type f1, Qt::DockWidgetAreas::enum_type f2) { return QFlags<Qt::DockWidgetAreas::enum_type>(f1) | f2; } inline QFlags<Qt::DockWidgetAreas::enum_type> operator|(Qt::DockWidgetAreas::enum_type f1, QFlags<Qt::DockWidgetAreas::enum_type> f2) { return f2 | f1; }
2046 inline QFlags<Qt::ToolBarAreas::enum_type> operator|(Qt::ToolBarAreas::enum_type f1, Qt::ToolBarAreas::enum_type f2) { return QFlags<Qt::ToolBarAreas::enum_type>(f1) | f2; } inline QFlags<Qt::ToolBarAreas::enum_type> operator|(Qt::ToolBarAreas::enum_type f1, QFlags<Qt::ToolBarAreas::enum_type> f2) { return f2 | f1; }
2047 inline QFlags<Qt::WindowStates::enum_type> operator|(Qt::WindowStates::enum_type f1, Qt::WindowStates::enum_type f2) { return QFlags<Qt::WindowStates::enum_type>(f1) | f2; } inline QFlags<Qt::WindowStates::enum_type> operator|(Qt::WindowStates::enum_type f1, QFlags<Qt::WindowStates::enum_type> f2) { return f2 | f1; }
2048 inline QFlags<Qt::DropActions::enum_type> operator|(Qt::DropActions::enum_type f1, Qt::DropActions::enum_type f2) { return QFlags<Qt::DropActions::enum_type>(f1) | f2; } inline QFlags<Qt::DropActions::enum_type> operator|(Qt::DropActions::enum_type f1, QFlags<Qt::DropActions::enum_type> f2) { return f2 | f1; }
2049 inline QFlags<Qt::ItemFlags::enum_type> operator|(Qt::ItemFlags::enum_type f1, Qt::ItemFlags::enum_type f2) { return QFlags<Qt::ItemFlags::enum_type>(f1) | f2; } inline QFlags<Qt::ItemFlags::enum_type> operator|(Qt::ItemFlags::enum_type f1, QFlags<Qt::ItemFlags::enum_type> f2) { return f2 | f1; }
2050 inline QFlags<Qt::MatchFlags::enum_type> operator|(Qt::MatchFlags::enum_type f1, Qt::MatchFlags::enum_type f2) { return QFlags<Qt::MatchFlags::enum_type>(f1) | f2; } inline QFlags<Qt::MatchFlags::enum_type> operator|(Qt::MatchFlags::enum_type f1, QFlags<Qt::MatchFlags::enum_type> f2) { return f2 | f1; }
2051 inline QFlags<Qt::TextInteractionFlags::enum_type> operator|(Qt::TextInteractionFlags::enum_type f1, Qt::TextInteractionFlags::enum_type f2) { return QFlags<Qt::TextInteractionFlags::enum_type>(f1) | f2; } inline QFlags<Qt::TextInteractionFlags::enum_type> operator|(Qt::TextInteractionFlags::enum_type f1, QFlags<Qt::TextInteractionFlags::enum_type> f2) { return f2 | f1; }
2053 typedef bool (*qInternalCallback)(void **);
2057 enum PaintDeviceFlags {
2058 UnknownDevice = 0x00,
2065 FramebufferObject = 0x07,
2079 EventNotifyCallback,
2083 enum InternalFunction {
2084 CreateThreadForAdoption,
2087 SetCurrentThreadToMainThread,
2088 LastInternalFunction
2099 static bool registerCallback(Callback, qInternalCallback);
2100 static bool unregisterCallback(Callback, qInternalCallback);
2102 static bool activateCallbacks(Callback, void **);
2103 static bool callFunction(InternalFunction func, void **);
2105 # 1499 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
2107 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qnamespace.h" 2
2108 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h" 2
2112 typedef QtValidLicenseForCoreModule QtCoreModule;
2117 # 133 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h"
2118 template <typename T>
2119 inline int qYouForgotTheQ_OBJECT_Macro(T, T) { return 0; }
2121 template <typename T1, typename T2>
2122 inline void qYouForgotTheQ_OBJECT_Macro(T1, T2) {}
2123 # 209 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h"
2127 class QMetaProperty;
2128 class QMetaClassInfo;
2131 class QGenericArgument
2134 inline QGenericArgument(const char *aName = 0, const void *aData = 0)
2135 : _data(aData), _name(aName) {}
2136 inline void *data() const { return const_cast<void *>(_data); }
2137 inline const char *name() const { return _name; }
2144 class QGenericReturnArgument: public QGenericArgument
2147 inline QGenericReturnArgument(const char *aName = 0, void *aData = 0)
2148 : QGenericArgument(aName, aData)
2153 class QArgument: public QGenericArgument
2156 inline QArgument(const char *aName, const T &aData)
2157 : QGenericArgument(aName, static_cast<const void *>(&aData))
2162 template <typename T>
2163 class QReturnArgument: public QGenericReturnArgument
2166 inline QReturnArgument(const char *aName, T &aData)
2167 : QGenericReturnArgument(aName, static_cast<void *>(&aData))
2173 const char *className() const;
2174 const QMetaObject *superClass() const;
2176 QObject *cast(QObject *obj) const;
2180 QString tr(const char *s, const char *c) const;
2181 QString trUtf8(const char *s, const char *c) const;
2182 QString tr(const char *s, const char *c, int n) const;
2183 QString trUtf8(const char *s, const char *c, int n) const;
2186 int methodOffset() const;
2187 int enumeratorOffset() const;
2188 int propertyOffset() const;
2189 int classInfoOffset() const;
2191 int methodCount() const;
2192 int enumeratorCount() const;
2193 int propertyCount() const;
2194 int classInfoCount() const;
2196 int indexOfMethod(const char *method) const;
2197 int indexOfSignal(const char *signal) const;
2198 int indexOfSlot(const char *slot) const;
2199 int indexOfEnumerator(const char *name) const;
2200 int indexOfProperty(const char *name) const;
2201 int indexOfClassInfo(const char *name) const;
2203 QMetaMethod method(int index) const;
2204 QMetaEnum enumerator(int index) const;
2205 QMetaProperty property(int index) const;
2206 QMetaClassInfo classInfo(int index) const;
2207 QMetaProperty userProperty() const;
2209 static bool checkConnectArgs(const char *signal, const char *method);
2210 static QByteArray normalizedSignature(const char *method);
2211 static QByteArray normalizedType(const char *type);
2214 static bool connect(const QObject *sender, int signal_index,
2215 const QObject *receiver, int method_index,
2216 int type = 0, int *types = 0);
2218 static bool disconnect(const QObject *sender, int signal_index,
2219 const QObject *receiver, int method_index);
2221 static void connectSlotsByName(QObject *o);
2224 static void activate(QObject *sender, int signal_index, void **argv);
2225 static void activate(QObject *sender, int from_signal_index, int to_signal_index, void **argv);
2226 static void activate(QObject *sender, const QMetaObject *, int local_signal_index, void **argv);
2227 static void activate(QObject *sender, const QMetaObject *, int from_local_signal_index, int to_local_signal_index, void **argv);
2229 static void addGuard(QObject **ptr);
2230 static void removeGuard(QObject **ptr);
2231 static void changeGuard(QObject **ptr, QObject *o);
2233 static bool invokeMethod(QObject *obj, const char *member,
2235 QGenericReturnArgument ret,
2236 QGenericArgument val0 = QGenericArgument(0),
2237 QGenericArgument val1 = QGenericArgument(),
2238 QGenericArgument val2 = QGenericArgument(),
2239 QGenericArgument val3 = QGenericArgument(),
2240 QGenericArgument val4 = QGenericArgument(),
2241 QGenericArgument val5 = QGenericArgument(),
2242 QGenericArgument val6 = QGenericArgument(),
2243 QGenericArgument val7 = QGenericArgument(),
2244 QGenericArgument val8 = QGenericArgument(),
2245 QGenericArgument val9 = QGenericArgument());
2247 static inline bool invokeMethod(QObject *obj, const char *member,
2248 QGenericReturnArgument ret,
2249 QGenericArgument val0 = QGenericArgument(0),
2250 QGenericArgument val1 = QGenericArgument(),
2251 QGenericArgument val2 = QGenericArgument(),
2252 QGenericArgument val3 = QGenericArgument(),
2253 QGenericArgument val4 = QGenericArgument(),
2254 QGenericArgument val5 = QGenericArgument(),
2255 QGenericArgument val6 = QGenericArgument(),
2256 QGenericArgument val7 = QGenericArgument(),
2257 QGenericArgument val8 = QGenericArgument(),
2258 QGenericArgument val9 = QGenericArgument())
2260 return invokeMethod(obj, member, Qt::AutoConnection, ret, val0, val1, val2, val3,
2261 val4, val5, val6, val7, val8, val9);
2264 static inline bool invokeMethod(QObject *obj, const char *member,
2265 Qt::ConnectionType type,
2266 QGenericArgument val0 = QGenericArgument(0),
2267 QGenericArgument val1 = QGenericArgument(),
2268 QGenericArgument val2 = QGenericArgument(),
2269 QGenericArgument val3 = QGenericArgument(),
2270 QGenericArgument val4 = QGenericArgument(),
2271 QGenericArgument val5 = QGenericArgument(),
2272 QGenericArgument val6 = QGenericArgument(),
2273 QGenericArgument val7 = QGenericArgument(),
2274 QGenericArgument val8 = QGenericArgument(),
2275 QGenericArgument val9 = QGenericArgument())
2277 return invokeMethod(obj, member, type, QGenericReturnArgument(), val0, val1, val2,
2278 val3, val4, val5, val6, val7, val8, val9);
2282 static inline bool invokeMethod(QObject *obj, const char *member,
2283 QGenericArgument val0 = QGenericArgument(0),
2284 QGenericArgument val1 = QGenericArgument(),
2285 QGenericArgument val2 = QGenericArgument(),
2286 QGenericArgument val3 = QGenericArgument(),
2287 QGenericArgument val4 = QGenericArgument(),
2288 QGenericArgument val5 = QGenericArgument(),
2289 QGenericArgument val6 = QGenericArgument(),
2290 QGenericArgument val7 = QGenericArgument(),
2291 QGenericArgument val8 = QGenericArgument(),
2292 QGenericArgument val9 = QGenericArgument())
2294 return invokeMethod(obj, member, Qt::AutoConnection, QGenericReturnArgument(), val0,
2295 val1, val2, val3, val4, val5, val6, val7, val8, val9);
2303 QueryPropertyDesignable,
2304 QueryPropertyScriptable,
2305 QueryPropertyStored,
2306 QueryPropertyEditable,
2315 const QMetaObject *superdata;
2316 const char *stringdata;
2318 const QMetaObject **extradata;
2322 inline const char *QMetaObject::className() const
2323 { return d.stringdata; }
2325 inline const QMetaObject *QMetaObject::superClass() const
2326 { return d.superdata; }
2334 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qobjectdefs.h" 2
2335 # 46 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qiodevice.h" 2
2337 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qstring.h" 1
2338 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 1
2339 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
2340 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qchar.h" 1
2341 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qchar.h" 1
2342 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qchar.h"
2343 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
2344 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qchar.h" 2
2348 typedef QtValidLicenseForCoreModule QtCoreModule;
2355 inline explicit QLatin1Char(char c) : ch(c) {}
2356 inline const char toLatin1() const { return ch; }
2357 inline const ushort unicode() const { return ushort(uchar(ch)); }
2371 QChar(QLatin1Char ch);
2372 QChar(uchar c, uchar r);
2373 inline QChar(ushort rc) : ucs(rc){}
2377 enum SpecialCharacter {
2380 ReplacementCharacter = 0xfffd,
2381 ObjectReplacementCharacter = 0xfffc,
2382 ByteOrderMark = 0xfeff,
2383 ByteOrderSwapped = 0xfffe,
2391 ParagraphSeparator = 0x2029,
2392 LineSeparator = 0x2028
2394 QChar(SpecialCharacter sc);
2403 Mark_SpacingCombining,
2406 Number_DecimalDigit,
2412 Separator_Paragraph,
2426 Punctuation_Connector,
2430 Punctuation_InitialQuote,
2431 Punctuation_FinalQuote,
2439 Punctuation_Dask = Punctuation_Dash
2444 DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS, DirWS, DirON,
2445 DirLRE, DirLRO, DirAL, DirRLE, DirRLO, DirPDF, DirNSM, DirBN
2476 OtherJoining, Dual, Right, Center
2481 Combining_BelowLeftAttached = 200,
2482 Combining_BelowAttached = 202,
2483 Combining_BelowRightAttached = 204,
2484 Combining_LeftAttached = 208,
2485 Combining_RightAttached = 210,
2486 Combining_AboveLeftAttached = 212,
2487 Combining_AboveAttached = 214,
2488 Combining_AboveRightAttached = 216,
2490 Combining_BelowLeft = 218,
2491 Combining_Below = 220,
2492 Combining_BelowRight = 222,
2493 Combining_Left = 224,
2494 Combining_Right = 226,
2495 Combining_AboveLeft = 228,
2496 Combining_Above = 230,
2497 Combining_AboveRight = 232,
2499 Combining_DoubleBelow = 233,
2500 Combining_DoubleAbove = 234,
2501 Combining_IotaSubscript = 240
2504 enum UnicodeVersion {
2518 Category category() const;
2519 Direction direction() const;
2520 Joining joining() const;
2521 bool hasMirrored() const;
2522 unsigned char combiningClass() const;
2524 QChar mirroredChar() const;
2525 QString decomposition() const;
2526 Decomposition decompositionTag() const;
2528 int digitValue() const;
2529 QChar toLower() const;
2530 QChar toUpper() const;
2531 QChar toTitleCase() const;
2532 QChar toCaseFolded() const;
2534 UnicodeVersion unicodeVersion() const;
2536 const char toAscii() const;
2537 inline const char toLatin1() const;
2538 inline const ushort unicode() const { return ucs; }
2542 inline ushort &unicode() { return ucs; }
2545 static QChar fromAscii(char c);
2546 static QChar fromLatin1(char c);
2548 inline bool isNull() const { return ucs == 0; }
2549 bool isPrint() const;
2550 bool isPunct() const;
2551 bool isSpace() const;
2552 bool isMark() const;
2553 bool isLetter() const;
2554 bool isNumber() const;
2555 bool isLetterOrNumber() const;
2556 bool isDigit() const;
2557 bool isSymbol() const;
2558 inline bool isLower() const { return category() == Letter_Lowercase; }
2559 inline bool isUpper() const { return category() == Letter_Uppercase; }
2560 inline bool isTitleCase() const { return category() == Letter_Titlecase; }
2562 inline bool isHighSurrogate() const {
2563 return ((ucs & 0xfc00) == 0xd800);
2565 inline bool isLowSurrogate() const {
2566 return ((ucs & 0xfc00) == 0xdc00);
2569 inline uchar cell() const { return uchar(ucs & 0xff); }
2570 inline uchar row() const { return uchar((ucs>>8)&0xff); }
2571 inline void setCell(uchar cell);
2572 inline void setRow(uchar row);
2574 static inline uint surrogateToUcs4(ushort high, ushort low) {
2575 return (uint(high)<<10) + low - 0x35fdc00;
2577 static inline uint surrogateToUcs4(QChar high, QChar low) {
2578 return (uint(high.ucs)<<10) + low.ucs - 0x35fdc00;
2580 static inline ushort highSurrogate(uint ucs4) {
2581 return (ucs4>>10) + 0xd7c0;
2583 static inline ushort lowSurrogate(uint ucs4) {
2584 return ucs4%0x400 + 0xdc00;
2587 static Category category(uint ucs4);
2588 static Category category(ushort ucs2);
2589 static Direction direction(uint ucs4);
2590 static Direction direction(ushort ucs2);
2591 static Joining joining(uint ucs4);
2592 static Joining joining(ushort ucs2);
2593 static unsigned char combiningClass(uint ucs4);
2594 static unsigned char combiningClass(ushort ucs2);
2596 static uint mirroredChar(uint ucs4);
2597 static ushort mirroredChar(ushort ucs2);
2598 static Decomposition decompositionTag(uint ucs4);
2600 static int digitValue(uint ucs4);
2601 static int digitValue(ushort ucs2);
2602 static uint toLower(uint ucs4);
2603 static ushort toLower(ushort ucs2);
2604 static uint toUpper(uint ucs4);
2605 static ushort toUpper(ushort ucs2);
2606 static uint toTitleCase(uint ucs4);
2607 static ushort toTitleCase(ushort ucs2);
2608 static uint toCaseFolded(uint ucs4);
2609 static ushort toCaseFolded(ushort ucs2);
2611 static UnicodeVersion unicodeVersion(uint ucs4);
2612 static UnicodeVersion unicodeVersion(ushort ucs2);
2614 static QString decomposition(uint ucs4);
2615 # 325 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qchar.h"
2624 template <> class QTypeInfo<QChar> { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(QChar)>sizeof(void*)), isPointer = false, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "QChar"; } };
2626 inline QChar::QChar() : ucs(0) {}
2628 inline const char QChar::toLatin1() const { return ucs > 0xff ? '\0' : char(ucs); }
2629 inline QChar QChar::fromLatin1(char c) { return QChar(ushort(uchar(c))); }
2631 inline QChar::QChar(uchar c, uchar r) : ucs((r << 8) | c){}
2632 inline QChar::QChar(short rc) : ucs(ushort(rc)){}
2633 inline QChar::QChar(uint rc) : ucs(ushort(rc & 0xffff)){}
2634 inline QChar::QChar(int rc) : ucs(ushort(rc & 0xffff)){}
2635 inline QChar::QChar(SpecialCharacter s) : ucs(ushort(s)) {}
2636 inline QChar::QChar(QLatin1Char ch) : ucs(ch.unicode()) {}
2638 inline void QChar::setCell(uchar acell)
2639 { ucs = (ucs & 0xff00) + acell; }
2640 inline void QChar::setRow(uchar arow)
2641 { ucs = (ushort(arow)<<8) + (ucs&0xff); }
2643 inline bool operator==(QChar c1, QChar c2) { return c1.unicode() == c2.unicode(); }
2644 inline bool operator!=(QChar c1, QChar c2) { return c1.unicode() != c2.unicode(); }
2645 inline bool operator<=(QChar c1, QChar c2) { return c1.unicode() <= c2.unicode(); }
2646 inline bool operator>=(QChar c1, QChar c2) { return c1.unicode() >= c2.unicode(); }
2647 inline bool operator<(QChar c1, QChar c2) { return c1.unicode() < c2.unicode(); }
2648 inline bool operator>(QChar c1, QChar c2) { return c1.unicode() > c2.unicode(); }
2651 QDataStream &operator<<(QDataStream &, const QChar &);
2652 QDataStream &operator>>(QDataStream &, QChar &);
2656 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qchar.h" 2
2657 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 2
2658 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qbytearray.h" 1
2659 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 1
2660 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
2661 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
2662 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 2
2663 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic.h" 1
2664 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h" 1
2665 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h"
2666 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic_generic.h" 1
2667 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/arch/qatomic_generic.h" 1
2668 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/arch/qatomic_generic.h"
2669 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
2670 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/arch/qatomic_generic.h" 2
2674 inline int q_atomic_test_and_set_int(volatile int *ptr, int expected, int newval)
2676 if (*ptr == expected) {
2683 inline int q_atomic_test_and_set_acquire_int(volatile int *ptr, int expected, int newval)
2685 return q_atomic_test_and_set_int(ptr, expected, newval);
2688 inline int q_atomic_test_and_set_release_int(volatile int *ptr, int expected, int newval)
2690 return q_atomic_test_and_set_int(ptr, expected, newval);
2693 inline int q_atomic_test_and_set_ptr(volatile void *ptr, void *expected, void *newval)
2695 if (*reinterpret_cast<void * volatile *>(ptr) == expected) {
2696 *reinterpret_cast<void * volatile *>(ptr) = newval;
2702 inline int q_atomic_increment(volatile int *ptr)
2703 { return ++(*ptr); }
2705 inline int q_atomic_decrement(volatile int *ptr)
2706 { return --(*ptr); }
2708 inline int q_atomic_set_int(volatile int *ptr, int newval)
2710 register int ret = *ptr;
2715 inline void *q_atomic_set_ptr(volatile void *ptr, void *newval)
2717 register void *ret = *reinterpret_cast<void * volatile *>(ptr);
2718 *reinterpret_cast<void * volatile *>(ptr) = newval;
2722 inline int q_atomic_fetch_and_add_int(volatile int *ptr, int value)
2724 int originalValue = *ptr;
2726 return originalValue;
2729 inline int q_atomic_fetch_and_add_acquire_int(volatile int *ptr, int value)
2731 return q_atomic_fetch_and_add_int(ptr, value);
2734 inline int q_atomic_fetch_and_add_release_int(volatile int *ptr, int value)
2736 return q_atomic_fetch_and_add_int(ptr, value);
2740 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic_generic.h" 2
2741 # 44 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h" 2
2745 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
2746 # 48 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h" 2
2750 typedef QtValidLicenseForCoreModule QtCoreModule;
2751 # 83 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h"
2752 struct QBasicAtomic {
2755 void init(int x = 0)
2759 { return q_atomic_increment(&value) != 0; }
2762 { return q_atomic_decrement(&value) != 0; }
2764 inline bool operator==(int x) const
2765 { return value == x; }
2767 inline bool operator!=(int x) const
2768 { return value != x; }
2770 inline bool operator!() const
2771 { return value == 0; }
2773 inline operator int() const
2776 inline QBasicAtomic &operator=(int x)
2782 inline bool testAndSet(int expected, int newval)
2783 { return q_atomic_test_and_set_int(&value, expected, newval) != 0; }
2785 inline bool testAndSetAcquire(int expected, int newval)
2786 { return q_atomic_test_and_set_acquire_int(&value, expected, newval) != 0; }
2788 inline bool testAndSetRelease(int expected, int newval)
2789 { return q_atomic_test_and_set_release_int(&value, expected, newval) != 0; }
2791 inline int exchange(int newval)
2792 { return q_atomic_set_int(&value, newval); }
2794 inline int fetchAndAdd(int aValue)
2795 { return q_atomic_fetch_and_add_int(&value, aValue); }
2797 inline int fetchAndAddAcquire(int aValue)
2798 { return q_atomic_fetch_and_add_acquire_int(&value, aValue); }
2800 inline int fetchAndAddRelease(int aValue)
2801 { return q_atomic_fetch_and_add_release_int(&value, aValue); }
2804 template <typename T>
2805 struct QBasicAtomicPointer
2812 inline bool operator==(T *t) const
2813 { return value == t; }
2815 inline bool operator!=(T *t) const
2816 { return !operator==(t); }
2818 inline bool operator!() const
2819 { return operator==(0); }
2821 inline operator T *() const
2822 { return const_cast<T *>(value); }
2824 inline T *operator->() const
2825 { return const_cast<T *>(value); }
2827 inline QBasicAtomicPointer<T> &operator=(T *t)
2833 inline bool testAndSet(T *expected, T *newval)
2834 { return q_atomic_test_and_set_ptr(&value, expected, newval); }
2836 inline T *exchange(T * newval)
2837 { return static_cast<T *>(q_atomic_set_ptr(&value, newval)); }
2844 template <typename T>
2845 inline T qAtomicSetPtr(volatile T *ptr, T newval)
2846 { return static_cast<T>(q_atomic_set_ptr(ptr, newval)); }
2849 class QAtomic : public QBasicAtomic
2852 inline QAtomic(int x = 0)
2854 inline QAtomic(const QAtomic ©)
2857 inline QAtomic &operator=(int x)
2859 (void) QBasicAtomic::operator=(x);
2863 inline QAtomic &operator=(const QAtomic ©)
2865 (void) QBasicAtomic::operator=(copy);
2871 template <typename T>
2872 class QAtomicPointer : public QBasicAtomicPointer<T>
2875 inline QAtomicPointer(T *t = 0)
2877 inline QAtomicPointer(const QAtomicPointer<T> ©)
2880 inline QAtomicPointer<T> &operator=(T *t)
2882 (void) QBasicAtomicPointer<T>::operator=(t);
2886 inline QAtomicPointer<T> &operator=(const QAtomicPointer<T> ©)
2888 (void) QBasicAtomicPointer<T>::operator=(copy);
2892 # 233 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h"
2893 template <typename T>
2894 inline void qAtomicAssign(T *&d, T *x)
2899 if (!d->ref.deref())
2903 # 255 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h"
2904 template <typename T>
2905 inline void qAtomicDetach(T *&d)
2911 if (!x->ref.deref())
2916 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic.h" 2
2917 # 44 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 2
2919 # 1 "/usr/include/string.h" 1 3 4
2927 # 1 "/usr/include/gentoo-multilib/amd64/string.h" 1 3 4
2928 # 26 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
2929 # 1 "/usr/include/features.h" 1 3 4
2937 # 1 "/usr/include/gentoo-multilib/amd64/features.h" 1 3 4
2938 # 322 "/usr/include/gentoo-multilib/amd64/features.h" 3 4
2939 # 1 "/usr/include/sys/cdefs.h" 1 3 4
2947 # 1 "/usr/include/gentoo-multilib/amd64/sys/cdefs.h" 1 3 4
2948 # 324 "/usr/include/gentoo-multilib/amd64/sys/cdefs.h" 3 4
2949 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2957 # 1 "/usr/include/gentoo-multilib/amd64/bits/wordsize.h" 1 3 4
2958 # 9 "/usr/include/bits/wordsize.h" 2 3 4
2959 # 325 "/usr/include/gentoo-multilib/amd64/sys/cdefs.h" 2 3 4
2960 # 9 "/usr/include/sys/cdefs.h" 2 3 4
2961 # 323 "/usr/include/gentoo-multilib/amd64/features.h" 2 3 4
2962 # 345 "/usr/include/gentoo-multilib/amd64/features.h" 3 4
2963 # 1 "/usr/include/gnu/stubs.h" 1 3 4
2971 # 1 "/usr/include/gentoo-multilib/amd64/gnu/stubs.h" 1 3 4
2975 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2983 # 1 "/usr/include/gentoo-multilib/amd64/bits/wordsize.h" 1 3 4
2984 # 9 "/usr/include/bits/wordsize.h" 2 3 4
2985 # 5 "/usr/include/gentoo-multilib/amd64/gnu/stubs.h" 2 3 4
2990 # 1 "/usr/include/gnu/stubs-64.h" 1 3 4
2994 # 1 "/usr/include/gentoo-multilib/amd64/gnu/stubs-64.h" 1 3 4
2995 # 5 "/usr/include/gnu/stubs-64.h" 2 3 4
2996 # 10 "/usr/include/gentoo-multilib/amd64/gnu/stubs.h" 2 3 4
2997 # 9 "/usr/include/gnu/stubs.h" 2 3 4
2998 # 346 "/usr/include/gentoo-multilib/amd64/features.h" 2 3 4
2999 # 9 "/usr/include/features.h" 2 3 4
3000 # 27 "/usr/include/gentoo-multilib/amd64/string.h" 2 3 4
3007 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stddef.h" 1 3 4
3008 # 34 "/usr/include/gentoo-multilib/amd64/string.h" 2 3 4
3013 extern void *memcpy (void *__restrict __dest,
3014 __const void *__restrict __src, size_t __n)
3015 throw () __attribute__ ((__nonnull__ (1, 2)));
3018 extern void *memmove (void *__dest, __const void *__src, size_t __n)
3019 throw () __attribute__ ((__nonnull__ (1, 2)));
3026 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
3027 int __c, size_t __n)
3028 throw () __attribute__ ((__nonnull__ (1, 2)));
3034 extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3037 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
3038 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3041 extern void *memchr (__const void *__s, int __c, size_t __n)
3042 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3048 extern void *rawmemchr (__const void *__s, int __c)
3049 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3052 extern void *memrchr (__const void *__s, int __c, size_t __n)
3053 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3059 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
3060 throw () __attribute__ ((__nonnull__ (1, 2)));
3062 extern char *strncpy (char *__restrict __dest,
3063 __const char *__restrict __src, size_t __n)
3064 throw () __attribute__ ((__nonnull__ (1, 2)));
3067 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
3068 throw () __attribute__ ((__nonnull__ (1, 2)));
3070 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
3071 size_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
3074 extern int strcmp (__const char *__s1, __const char *__s2)
3075 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3077 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
3078 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3081 extern int strcoll (__const char *__s1, __const char *__s2)
3082 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3084 extern size_t strxfrm (char *__restrict __dest,
3085 __const char *__restrict __src, size_t __n)
3086 throw () __attribute__ ((__nonnull__ (2)));
3093 # 1 "/usr/include/xlocale.h" 1 3 4
3101 # 1 "/usr/include/gentoo-multilib/amd64/xlocale.h" 1 3 4
3102 # 28 "/usr/include/gentoo-multilib/amd64/xlocale.h" 3 4
3103 typedef struct __locale_struct
3106 struct locale_data *__locales[13];
3109 const unsigned short int *__ctype_b;
3110 const int *__ctype_tolower;
3111 const int *__ctype_toupper;
3114 const char *__names[13];
3116 # 9 "/usr/include/xlocale.h" 2 3 4
3117 # 119 "/usr/include/gentoo-multilib/amd64/string.h" 2 3 4
3120 extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
3121 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
3123 extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
3124 __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4)));
3129 extern char *strdup (__const char *__s)
3130 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
3137 extern char *strndup (__const char *__string, size_t __n)
3138 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
3139 # 165 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
3142 extern char *strchr (__const char *__s, int __c)
3143 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3145 extern char *strrchr (__const char *__s, int __c)
3146 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3152 extern char *strchrnul (__const char *__s, int __c)
3153 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3159 extern size_t strcspn (__const char *__s, __const char *__reject)
3160 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3163 extern size_t strspn (__const char *__s, __const char *__accept)
3164 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3166 extern char *strpbrk (__const char *__s, __const char *__accept)
3167 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3169 extern char *strstr (__const char *__haystack, __const char *__needle)
3170 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3174 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
3175 throw () __attribute__ ((__nonnull__ (2)));
3180 extern char *__strtok_r (char *__restrict __s,
3181 __const char *__restrict __delim,
3182 char **__restrict __save_ptr)
3183 throw () __attribute__ ((__nonnull__ (2, 3)));
3185 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
3186 char **__restrict __save_ptr)
3187 throw () __attribute__ ((__nonnull__ (2, 3)));
3192 extern char *strcasestr (__const char *__haystack, __const char *__needle)
3193 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3200 extern void *memmem (__const void *__haystack, size_t __haystacklen,
3201 __const void *__needle, size_t __needlelen)
3202 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
3206 extern void *__mempcpy (void *__restrict __dest,
3207 __const void *__restrict __src, size_t __n)
3208 throw () __attribute__ ((__nonnull__ (1, 2)));
3209 extern void *mempcpy (void *__restrict __dest,
3210 __const void *__restrict __src, size_t __n)
3211 throw () __attribute__ ((__nonnull__ (1, 2)));
3217 extern size_t strlen (__const char *__s)
3218 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3224 extern size_t strnlen (__const char *__string, size_t __maxlen)
3225 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3231 extern char *strerror (int __errnum) throw ();
3233 # 281 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
3234 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
3235 throw () __attribute__ ((__nonnull__ (2)));
3241 extern char *strerror_l (int __errnum, __locale_t __l) throw ();
3247 extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3251 extern void bcopy (__const void *__src, void *__dest, size_t __n)
3252 throw () __attribute__ ((__nonnull__ (1, 2)));
3255 extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3258 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
3259 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3262 extern char *index (__const char *__s, int __c)
3263 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3266 extern char *rindex (__const char *__s, int __c)
3267 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3271 extern int ffs (int __i) throw () __attribute__ ((__const__));
3276 extern int ffsl (long int __l) throw () __attribute__ ((__const__));
3278 __extension__ extern int ffsll (long long int __ll)
3279 throw () __attribute__ ((__const__));
3284 extern int strcasecmp (__const char *__s1, __const char *__s2)
3285 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3288 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
3289 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3295 extern int strcasecmp_l (__const char *__s1, __const char *__s2,
3297 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
3299 extern int strncasecmp_l (__const char *__s1, __const char *__s2,
3300 size_t __n, __locale_t __loc)
3301 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
3307 extern char *strsep (char **__restrict __stringp,
3308 __const char *__restrict __delim)
3309 throw () __attribute__ ((__nonnull__ (1, 2)));
3314 extern int strverscmp (__const char *__s1, __const char *__s2)
3315 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3318 extern char *strsignal (int __sig) throw ();
3321 extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
3322 throw () __attribute__ ((__nonnull__ (1, 2)));
3323 extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
3324 throw () __attribute__ ((__nonnull__ (1, 2)));
3328 extern char *__stpncpy (char *__restrict __dest,
3329 __const char *__restrict __src, size_t __n)
3330 throw () __attribute__ ((__nonnull__ (1, 2)));
3331 extern char *stpncpy (char *__restrict __dest,
3332 __const char *__restrict __src, size_t __n)
3333 throw () __attribute__ ((__nonnull__ (1, 2)));
3336 extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1)));
3339 extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3346 extern char *basename (__const char *__filename) throw () __attribute__ ((__nonnull__ (1)));
3347 # 432 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
3349 # 9 "/usr/include/string.h" 2 3 4
3350 # 46 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 2
3351 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stdarg.h" 1 3 4
3352 # 43 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stdarg.h" 3 4
3353 typedef __builtin_va_list __gnuc_va_list;
3354 # 105 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stdarg.h" 3 4
3355 typedef __gnuc_va_list va_list;
3356 # 47 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 2
3364 typedef QtValidLicenseForCoreModule QtCoreModule;
3370 char *qstrdup(const char *);
3372 inline uint qstrlen(const char *str)
3373 { return str ? uint(strlen(str)) : 0; }
3375 inline uint qstrnlen(const char *str, uint maxlen)
3379 while (length < maxlen && *str++)
3385 char *qstrcpy(char *dst, const char *src);
3386 char *qstrncpy(char *dst, const char *src, uint len);
3388 int qstrcmp(const char *str1, const char *str2);
3390 inline int qstrncmp(const char *str1, const char *str2, uint len)
3392 return (str1 && str2) ? strncmp(str1, str2, len)
3393 : (str1 ? 1 : (str2 ? -1 : 0));
3395 int qstricmp(const char *, const char *);
3396 int qstrnicmp(const char *, const char *, uint len);
3399 int qvsnprintf(char *str, size_t n, const char *fmt, va_list ap);
3400 int qsnprintf(char *str, size_t n, const char *fmt, ...);
3401 # 107 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
3402 quint16 qChecksum(const char *s, uint len);
3407 template <typename T> class QList;
3412 inline QByteArray();
3413 QByteArray(const char *);
3414 QByteArray(const char *, int size);
3415 QByteArray(int size, char c);
3416 inline QByteArray(const QByteArray &);
3417 inline ~QByteArray();
3419 QByteArray &operator=(const QByteArray &);
3420 QByteArray &operator=(const char *str);
3422 inline int size() const;
3423 bool isEmpty() const;
3424 void resize(int size);
3426 QByteArray &fill(char c, int size = -1);
3428 int capacity() const;
3429 void reserve(int size);
3432 operator const char *() const;
3433 operator const void *() const;
3435 const char *data() const;
3436 inline const char *constData() const;
3437 inline void detach();
3438 bool isDetached() const;
3441 const char at(int i) const;
3442 const char operator[](int i) const;
3443 QByteRef operator[](int i);
3444 const char operator[](uint i) const;
3445 QByteRef operator[](uint i);
3447 int indexOf(char c, int from = 0) const;
3448 inline int indexOf(const char *c, int from = 0) const;
3449 int indexOf(const QByteArray &a, int from = 0) const;
3450 int lastIndexOf(char c, int from = -1) const;
3451 inline int lastIndexOf(const char *c, int from = -1) const;
3452 int lastIndexOf(const QByteArray &a, int from = -1) const;
3454 QBool contains(char c) const;
3455 QBool contains(const char *a) const;
3456 QBool contains(const QByteArray &a) const;
3457 int count(char c) const;
3458 int count(const char *a) const;
3459 int count(const QByteArray &a) const;
3461 QByteArray left(int len) const;
3462 QByteArray right(int len) const;
3463 QByteArray mid(int index, int len = -1) const;
3465 bool startsWith(const QByteArray &a) const;
3466 bool startsWith(char c) const;
3467 bool startsWith(const char *c) const;
3469 bool endsWith(const QByteArray &a) const;
3470 bool endsWith(char c) const;
3471 bool endsWith(const char *c) const;
3473 void truncate(int pos);
3476 QByteArray toLower() const;
3477 QByteArray toUpper() const;
3479 QByteArray trimmed() const;
3480 QByteArray simplified() const;
3481 QByteArray leftJustified(int width, char fill = ' ', bool truncate = false) const;
3482 QByteArray rightJustified(int width, char fill = ' ', bool truncate = false) const;
3483 # 196 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
3484 QByteArray &prepend(char c);
3485 QByteArray &prepend(const char *s);
3486 QByteArray &prepend(const QByteArray &a);
3487 QByteArray &append(char c);
3488 QByteArray &append(const char *s);
3489 QByteArray &append(const QByteArray &a);
3490 QByteArray &insert(int i, char c);
3491 QByteArray &insert(int i, const char *s);
3492 QByteArray &insert(int i, const QByteArray &a);
3493 QByteArray &remove(int index, int len);
3494 QByteArray &replace(int index, int len, const char *s);
3495 QByteArray &replace(int index, int len, const QByteArray &s);
3496 QByteArray &replace(char before, const char *after);
3497 QByteArray &replace(char before, const QByteArray &after);
3498 QByteArray &replace(const char *before, const char *after);
3499 QByteArray &replace(const QByteArray &before, const QByteArray &after);
3500 QByteArray &replace(const QByteArray &before, const char *after);
3501 QByteArray &replace(const char *before, const QByteArray &after);
3502 QByteArray &replace(char before, char after);
3503 QByteArray &operator+=(char c);
3504 QByteArray &operator+=(const char *s);
3505 QByteArray &operator+=(const QByteArray &a);
3507 QList<QByteArray> split(char sep) const;
3510 QByteArray &append(const QString &s);
3511 QByteArray &insert(int i, const QString &s);
3512 QByteArray &replace(const QString &before, const char *after);
3513 QByteArray &replace(char c, const QString &after);
3514 QByteArray &replace(const QString &before, const QByteArray &after);
3516 QByteArray &operator+=(const QString &s);
3517 int indexOf(const QString &s, int from = 0) const;
3518 int lastIndexOf(const QString &s, int from = -1) const;
3521 inline bool operator==(const QString &s2) const;
3522 inline bool operator!=(const QString &s2) const;
3523 inline bool operator<(const QString &s2) const;
3524 inline bool operator>(const QString &s2) const;
3525 inline bool operator<=(const QString &s2) const;
3526 inline bool operator>=(const QString &s2) const;
3529 short toShort(bool *ok = 0, int base = 10) const;
3530 ushort toUShort(bool *ok = 0, int base = 10) const;
3531 int toInt(bool *ok = 0, int base = 10) const;
3532 uint toUInt(bool *ok = 0, int base = 10) const;
3533 long toLong(bool *ok = 0, int base = 10) const;
3534 ulong toULong(bool *ok = 0, int base = 10) const;
3535 qlonglong toLongLong(bool *ok = 0, int base = 10) const;
3536 qulonglong toULongLong(bool *ok = 0, int base = 10) const;
3537 float toFloat(bool *ok = 0) const;
3538 double toDouble(bool *ok = 0) const;
3539 QByteArray toBase64() const;
3540 QByteArray toHex() const;
3542 QByteArray &setNum(short, int base = 10);
3543 QByteArray &setNum(ushort, int base = 10);
3544 QByteArray &setNum(int, int base = 10);
3545 QByteArray &setNum(uint, int base = 10);
3546 QByteArray &setNum(qlonglong, int base = 10);
3547 QByteArray &setNum(qulonglong, int base = 10);
3548 QByteArray &setNum(float, char f = 'g', int prec = 6);
3549 QByteArray &setNum(double, char f = 'g', int prec = 6);
3551 static QByteArray number(int, int base = 10);
3552 static QByteArray number(uint, int base = 10);
3553 static QByteArray number(qlonglong, int base = 10);
3554 static QByteArray number(qulonglong, int base = 10);
3555 static QByteArray number(double, char f = 'g', int prec = 6);
3556 static QByteArray fromRawData(const char *, int size);
3557 static QByteArray fromBase64(const QByteArray &base64);
3558 static QByteArray fromHex(const QByteArray &hexEncoded);
3560 typedef char *iterator;
3561 typedef const char *const_iterator;
3562 typedef iterator Iterator;
3563 typedef const_iterator ConstIterator;
3565 const_iterator begin() const;
3566 const_iterator constBegin() const;
3568 const_iterator end() const;
3569 const_iterator constEnd() const;
3572 typedef const char & const_reference;
3573 typedef char & reference;
3574 void push_back(char c);
3575 void push_back(const char *c);
3576 void push_back(const QByteArray &a);
3577 void push_front(char c);
3578 void push_front(const char *c);
3579 void push_front(const QByteArray &a);
3581 inline int count() const { return d->size; }
3582 int length() const { return d->size; }
3583 bool isNull() const;
3584 # 322 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
3586 operator QNoImplicitBoolCast() const;
3593 static Data shared_null;
3594 static Data shared_empty;
3596 QByteArray(Data *dd, int , int ) : d(dd) {}
3597 void realloc(int alloc);
3600 friend class QByteRef;
3601 friend class QString;
3603 typedef Data * DataPtr;
3604 inline DataPtr &data_ptr() { return d; }
3607 inline QByteArray::QByteArray(): d(&shared_null) { d->ref.ref(); }
3608 inline QByteArray::~QByteArray() { if (!d->ref.deref()) qFree(d); }
3609 inline int QByteArray::size() const
3611 inline const char QByteArray::at(int i) const
3612 { do {if(!(i >= 0 && i < size()))qt_assert("i >= 0 && i < size()","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h",349);} while (0); return d->data[i]; }
3613 inline const char QByteArray::operator[](int i) const
3614 { do {if(!(i >= 0 && i < size()))qt_assert("i >= 0 && i < size()","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h",351);} while (0); return d->data[i]; }
3615 inline const char QByteArray::operator[](uint i) const
3616 { do {if(!(i < uint(size())))qt_assert("i < uint(size())","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h",353);} while (0); return d->data[i]; }
3617 inline bool QByteArray::isEmpty() const
3618 { return d->size == 0; }
3619 inline QByteArray::operator const char *() const
3621 inline QByteArray::operator const void *() const
3623 inline char *QByteArray::data()
3624 { detach(); return d->data; }
3625 inline const char *QByteArray::data() const
3627 inline const char *QByteArray::constData() const
3629 inline void QByteArray::detach()
3630 { if (d->ref != 1 || d->data != d->array) realloc(d->size); }
3631 inline bool QByteArray::isDetached() const
3632 { return d->ref == 1; }
3633 inline QByteArray::QByteArray(const QByteArray &a) : d(a.d)
3640 inline int QByteArray::capacity() const
3641 { return d->alloc; }
3643 inline void QByteArray::reserve(int asize)
3644 { if (d->ref != 1 || asize > d->alloc) realloc(asize); }
3646 inline void QByteArray::squeeze()
3647 { if (d->size < d->alloc) realloc(d->size); }
3652 inline QByteRef(QByteArray &array, int idx)
3653 : a(array),i(idx) {}
3654 friend class QByteArray;
3656 inline operator const char() const
3657 { return i < a.d->size ? a.d->data[i] : 0; }
3658 inline QByteRef &operator=(char c)
3659 { if (a.d->ref != 1 || i >= a.d->size) a.expand(i);
3660 a.d->data[i] = c; return *this; }
3661 inline QByteRef &operator=(const QByteRef &c)
3662 { if (a.d->ref != 1 || i >= a.d->size) a.expand(i);
3663 a.d->data[i] = c.a.d->data[c.i]; return *this; }
3664 inline bool operator==(char c) const
3665 { return a.d->data[i] == c; }
3666 inline bool operator!=(char c) const
3667 { return a.d->data[i] != c; }
3668 inline bool operator>(char c) const
3669 { return a.d->data[i] > c; }
3670 inline bool operator>=(char c) const
3671 { return a.d->data[i] >= c; }
3672 inline bool operator<(char c) const
3673 { return a.d->data[i] < c; }
3674 inline bool operator<=(char c) const
3675 { return a.d->data[i] <= c; }
3678 inline QByteRef QByteArray::operator[](int i)
3679 { do {if(!(i >= 0))qt_assert("i >= 0","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h",416);} while (0); return QByteRef(*this, i); }
3680 inline QByteRef QByteArray::operator[](uint i)
3681 { return QByteRef(*this, i); }
3682 inline QByteArray::iterator QByteArray::begin()
3683 { detach(); return d->data; }
3684 inline QByteArray::const_iterator QByteArray::begin() const
3686 inline QByteArray::const_iterator QByteArray::constBegin() const
3688 inline QByteArray::iterator QByteArray::end()
3689 { detach(); return d->data + d->size; }
3690 inline QByteArray::const_iterator QByteArray::end() const
3691 { return d->data + d->size; }
3692 inline QByteArray::const_iterator QByteArray::constEnd() const
3693 { return d->data + d->size; }
3694 inline QByteArray &QByteArray::operator+=(char c)
3695 { return append(c); }
3696 inline QByteArray &QByteArray::operator+=(const char *s)
3697 { return append(s); }
3698 inline QByteArray &QByteArray::operator+=(const QByteArray &a)
3699 { return append(a); }
3700 inline void QByteArray::push_back(char c)
3702 inline void QByteArray::push_back(const char *c)
3704 inline void QByteArray::push_back(const QByteArray &a)
3706 inline void QByteArray::push_front(char c)
3708 inline void QByteArray::push_front(const char *c)
3710 inline void QByteArray::push_front(const QByteArray &a)
3712 inline QBool QByteArray::contains(const QByteArray &a) const
3713 { return QBool(indexOf(a) != -1); }
3714 inline QBool QByteArray::contains(char c) const
3715 { return QBool(indexOf(c) != -1); }
3716 inline bool operator==(const QByteArray &a1, const QByteArray &a2)
3717 { return (a1.size() == a2.size()) && (memcmp(a1, a2, a1.size())==0); }
3718 inline bool operator==(const QByteArray &a1, const char *a2)
3719 { return a2 ? strcmp(a1,a2) == 0 : a1.isEmpty(); }
3720 inline bool operator==(const char *a1, const QByteArray &a2)
3721 { return a1 ? strcmp(a1,a2) == 0 : a2.isEmpty(); }
3722 inline bool operator!=(const QByteArray &a1, const QByteArray &a2)
3723 { return !(a1==a2); }
3724 inline bool operator!=(const QByteArray &a1, const char *a2)
3725 { return a2 ? strcmp(a1,a2) != 0 : !a1.isEmpty(); }
3726 inline bool operator!=(const char *a1, const QByteArray &a2)
3727 { return a1 ? strcmp(a1,a2) != 0 : !a2.isEmpty(); }
3728 inline bool operator<(const QByteArray &a1, const QByteArray &a2)
3729 { return strcmp(a1, a2) < 0; }
3730 inline bool operator<(const QByteArray &a1, const char *a2)
3731 { return qstrcmp(a1, a2) < 0; }
3732 inline bool operator<(const char *a1, const QByteArray &a2)
3733 { return qstrcmp(a1, a2) < 0; }
3734 inline bool operator<=(const QByteArray &a1, const QByteArray &a2)
3735 { return strcmp(a1, a2) <= 0; }
3736 inline bool operator<=(const QByteArray &a1, const char *a2)
3737 { return qstrcmp(a1, a2) <= 0; }
3738 inline bool operator<=(const char *a1, const QByteArray &a2)
3739 { return qstrcmp(a1, a2) <= 0; }
3740 inline bool operator>(const QByteArray &a1, const QByteArray &a2)
3741 { return strcmp(a1, a2) > 0; }
3742 inline bool operator>(const QByteArray &a1, const char *a2)
3743 { return qstrcmp(a1, a2) > 0; }
3744 inline bool operator>(const char *a1, const QByteArray &a2)
3745 { return qstrcmp(a1, a2) > 0; }
3746 inline bool operator>=(const QByteArray &a1, const QByteArray &a2)
3747 { return strcmp(a1, a2) >= 0; }
3748 inline bool operator>=(const QByteArray &a1, const char *a2)
3749 { return qstrcmp(a1, a2) >= 0; }
3750 inline bool operator>=(const char *a1, const QByteArray &a2)
3751 { return qstrcmp(a1, a2) >= 0; }
3752 inline const QByteArray operator+(const QByteArray &a1, const QByteArray &a2)
3753 { return QByteArray(a1) += a2; }
3754 inline const QByteArray operator+(const QByteArray &a1, const char *a2)
3755 { return QByteArray(a1) += a2; }
3756 inline const QByteArray operator+(const QByteArray &a1, char a2)
3757 { return QByteArray(a1) += a2; }
3758 inline const QByteArray operator+(const char *a1, const QByteArray &a2)
3759 { return QByteArray(a1) += a2; }
3760 inline const QByteArray operator+(char a1, const QByteArray &a2)
3761 { return QByteArray(&a1, 1) += a2; }
3762 inline int QByteArray::indexOf(const char *c, int i) const
3763 { return indexOf(fromRawData(c, qstrlen(c)), i); }
3764 inline int QByteArray::lastIndexOf(const char *c, int i) const
3765 { return lastIndexOf(fromRawData(c, qstrlen(c)), i); }
3766 inline QBool QByteArray::contains(const char *c) const
3767 { return contains(fromRawData(c, qstrlen(c))); }
3768 inline QByteArray &QByteArray::replace(int index, int len, const char *c)
3769 { return replace(index, len, fromRawData(c, qstrlen(c))); }
3770 inline QByteArray &QByteArray::replace(char before, const char *c)
3771 { return replace(before, fromRawData(c, qstrlen(c))); }
3772 inline QByteArray &QByteArray::replace(const QByteArray &before, const char *c)
3773 { return replace(before, fromRawData(c, qstrlen(c))); }
3774 inline QByteArray &QByteArray::replace(const char *c, const QByteArray &after)
3775 { return replace(fromRawData(c, qstrlen(c)), after); }
3776 inline QByteArray &QByteArray::replace(const char *before, const char *after)
3777 { return replace(fromRawData(before, qstrlen(before)), fromRawData(after, qstrlen(after))); }
3779 inline QByteArray &QByteArray::setNum(short n, int base)
3780 { return setNum(qlonglong(n), base); }
3781 inline QByteArray &QByteArray::setNum(ushort n, int base)
3782 { return setNum(qulonglong(n), base); }
3783 inline QByteArray &QByteArray::setNum(int n, int base)
3784 { return setNum(qlonglong(n), base); }
3785 inline QByteArray &QByteArray::setNum(uint n, int base)
3786 { return setNum(qulonglong(n), base); }
3787 inline QByteArray &QByteArray::setNum(float n, char f, int prec)
3788 { return setNum(double(n),f,prec); }
3792 QDataStream &operator<<(QDataStream &, const QByteArray &);
3793 QDataStream &operator>>(QDataStream &, QByteArray &);
3794 # 542 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
3795 template <> class QTypeInfo<QByteArray> { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(QByteArray)>sizeof(void*)), isPointer = false, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "QByteArray"; } };
3796 template <> inline bool qIsDetached<QByteArray>(QByteArray &t) { return t.isDetached(); } template <typename T> inline void qSwap(T &, T &); template <> inline void qSwap<QByteArray>(QByteArray &value1, QByteArray &value2) { const QByteArray::DataPtr t = value1.data_ptr(); value1.data_ptr() = value2.data_ptr(); value2.data_ptr() = t; }
3799 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qbytearray.h" 2
3800 # 44 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 2
3801 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic.h" 1
3802 # 45 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 2
3803 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qnamespace.h" 1
3804 # 46 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 2
3805 # 73 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
3808 typedef QtValidLicenseForCoreModule QtCoreModule;
3814 class QLatin1String;
3816 template <typename T> class QVector;
3822 QString(const QChar *unicode, int size);
3824 QString(int size, QChar c);
3825 inline QString(const QLatin1String &latin1);
3826 inline QString(const QString &);
3828 QString &operator=(QChar c);
3829 QString &operator=(const QString &);
3830 inline QString &operator=(const QLatin1String &);
3832 inline int size() const { return d->size; }
3833 inline int count() const { return d->size; }
3834 inline int length() const;
3835 inline bool isEmpty() const;
3836 void resize(int size);
3838 QString &fill(QChar c, int size = -1);
3839 void truncate(int pos);
3842 int capacity() const;
3843 inline void reserve(int size);
3844 inline void squeeze() { if (d->size < d->alloc) realloc(); d->capacity = 0;}
3846 inline const QChar *unicode() const;
3847 inline QChar *data();
3848 inline const QChar *data() const;
3849 inline const QChar *constData() const;
3851 inline void detach();
3852 inline bool isDetached() const;
3855 inline const QChar at(int i) const;
3856 const QChar operator[](int i) const;
3857 QCharRef operator[](int i);
3858 const QChar operator[](uint i) const;
3859 QCharRef operator[](uint i);
3861 QString arg(qlonglong a, int fieldwidth=0, int base=10,
3862 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3863 QString arg(qulonglong a, int fieldwidth=0, int base=10,
3864 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3865 QString arg(long a, int fieldwidth=0, int base=10,
3866 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3867 QString arg(ulong a, int fieldwidth=0, int base=10,
3868 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3869 QString arg(int a, int fieldWidth = 0, int base = 10,
3870 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3871 QString arg(uint a, int fieldWidth = 0, int base = 10,
3872 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3873 QString arg(short a, int fieldWidth = 0, int base = 10,
3874 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3875 QString arg(ushort a, int fieldWidth = 0, int base = 10,
3876 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3877 QString arg(double a, int fieldWidth = 0, char fmt = 'g', int prec = -1,
3878 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3879 QString arg(char a, int fieldWidth = 0,
3880 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3881 QString arg(QChar a, int fieldWidth = 0,
3882 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3883 QString arg(const QString &a, int fieldWidth = 0,
3884 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3885 QString arg(const QString &a1, const QString &a2) const __attribute__ ((warn_unused_result));
3886 QString arg(const QString &a1, const QString &a2, const QString &a3) const __attribute__ ((warn_unused_result));
3887 QString arg(const QString &a1, const QString &a2, const QString &a3,
3888 const QString &a4) const __attribute__ ((warn_unused_result));
3889 QString arg(const QString &a1, const QString &a2, const QString &a3,
3890 const QString &a4, const QString &a5) const __attribute__ ((warn_unused_result));
3891 QString arg(const QString &a1, const QString &a2, const QString &a3,
3892 const QString &a4, const QString &a5, const QString &a6) const __attribute__ ((warn_unused_result));
3893 QString arg(const QString &a1, const QString &a2, const QString &a3,
3894 const QString &a4, const QString &a5, const QString &a6,
3895 const QString &a7) const __attribute__ ((warn_unused_result));
3896 QString arg(const QString &a1, const QString &a2, const QString &a3,
3897 const QString &a4, const QString &a5, const QString &a6,
3898 const QString &a7, const QString &a8) const __attribute__ ((warn_unused_result));
3899 QString arg(const QString &a1, const QString &a2, const QString &a3,
3900 const QString &a4, const QString &a5, const QString &a6,
3901 const QString &a7, const QString &a8, const QString &a9) const __attribute__ ((warn_unused_result));
3903 QString &vsprintf(const char *format, va_list ap);
3904 QString &sprintf(const char *format, ...)
3906 __attribute__ ((format (printf, 2, 3)))
3910 int indexOf(QChar c, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3911 int indexOf(const QString &s, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3912 int lastIndexOf(QChar c, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3913 int lastIndexOf(const QString &s, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3915 inline QBool contains(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3916 inline QBool contains(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3917 int count(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3918 int count(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3921 int indexOf(const QRegExp &, int from = 0) const;
3922 int lastIndexOf(const QRegExp &, int from = -1) const;
3923 inline QBool contains(const QRegExp &rx) const { return QBool(indexOf(rx) != -1); }
3924 int count(const QRegExp &) const;
3928 SectionDefault = 0x00,
3929 SectionSkipEmpty = 0x01,
3930 SectionIncludeLeadingSep = 0x02,
3931 SectionIncludeTrailingSep = 0x04,
3932 SectionCaseInsensitiveSeps = 0x08
3934 typedef QFlags<SectionFlag> SectionFlags;
3936 QString section(QChar sep, int start, int end = -1, SectionFlags flags = SectionDefault) const;
3937 QString section(const QString &in_sep, int start, int end = -1, SectionFlags flags = SectionDefault) const;
3939 QString section(const QRegExp ®, int start, int end = -1, SectionFlags flags = SectionDefault) const;
3942 QString left(int n) const __attribute__ ((warn_unused_result));
3943 QString right(int n) const __attribute__ ((warn_unused_result));
3944 QString mid(int position, int n = -1) const __attribute__ ((warn_unused_result));
3946 bool startsWith(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3947 bool startsWith(const QLatin1String &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3948 bool startsWith(const QChar &c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3949 bool endsWith(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3950 bool endsWith(const QLatin1String &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3951 bool endsWith(const QChar &c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3953 QString leftJustified(int width, QChar fill = QLatin1Char(' '), bool trunc = false) const __attribute__ ((warn_unused_result));
3954 QString rightJustified(int width, QChar fill = QLatin1Char(' '), bool trunc = false) const __attribute__ ((warn_unused_result));
3956 QString toLower() const __attribute__ ((warn_unused_result));
3957 QString toUpper() const __attribute__ ((warn_unused_result));
3958 QString toCaseFolded() const __attribute__ ((warn_unused_result));
3960 QString trimmed() const __attribute__ ((warn_unused_result));
3961 QString simplified() const __attribute__ ((warn_unused_result));
3963 QString &insert(int i, QChar c);
3964 QString &insert(int i, const QChar *uc, int len);
3965 inline QString &insert(int i, const QString &s) { return insert(i, s.constData(), s.length()); }
3966 QString &insert(int i, const QLatin1String &s);
3967 QString &append(QChar c);
3968 QString &append(const QString &s);
3969 QString &append(const QLatin1String &s);
3970 inline QString &prepend(QChar c) { return insert(0, c); }
3971 inline QString &prepend(const QString &s) { return insert(0, s); }
3972 inline QString &prepend(const QLatin1String &s) { return insert(0, s); }
3973 inline QString &operator+=(QChar c) { return append(c); }
3974 inline QString &operator+=(QChar::SpecialCharacter c) { return append(QChar(c)); }
3975 inline QString &operator+=(const QString &s) { return append(s); }
3976 inline QString &operator+=(const QLatin1String &s) { return append(s); }
3978 QString &remove(int i, int len);
3979 QString &remove(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive);
3980 QString &remove(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive);
3981 QString &replace(int i, int len, QChar after);
3982 QString &replace(int i, int len, const QChar *s, int slen);
3983 QString &replace(int i, int len, const QString &after);
3984 QString &replace(QChar before, QChar after, Qt::CaseSensitivity cs = Qt::CaseSensitive);
3985 QString &replace(QChar c, const QString &after, Qt::CaseSensitivity cs = Qt::CaseSensitive);
3986 QString &replace(const QString &before, const QString &after,
3987 Qt::CaseSensitivity cs = Qt::CaseSensitive);
3989 QString &replace(const QRegExp &rx, const QString &after);
3990 inline QString &remove(const QRegExp &rx)
3991 { return replace(rx, QString()); }
3994 enum SplitBehavior { KeepEmptyParts, SkipEmptyParts };
3996 QStringList split(const QString &sep, SplitBehavior behavior = KeepEmptyParts,
3997 Qt::CaseSensitivity cs = Qt::CaseSensitive) const __attribute__ ((warn_unused_result));
3998 QStringList split(const QChar &sep, SplitBehavior behavior = KeepEmptyParts,
3999 Qt::CaseSensitivity cs = Qt::CaseSensitive) const __attribute__ ((warn_unused_result));
4001 QStringList split(const QRegExp &sep, SplitBehavior behavior = KeepEmptyParts) const __attribute__ ((warn_unused_result));
4004 enum NormalizationForm {
4005 NormalizationForm_D,
4006 NormalizationForm_C,
4007 NormalizationForm_KD,
4008 NormalizationForm_KC
4010 QString normalized(NormalizationForm mode) const __attribute__ ((warn_unused_result));
4011 QString normalized(NormalizationForm mode, QChar::UnicodeVersion version) const __attribute__ ((warn_unused_result));
4013 const ushort *utf16() const;
4015 QByteArray toAscii() const __attribute__ ((warn_unused_result));
4016 QByteArray toLatin1() const __attribute__ ((warn_unused_result));
4017 QByteArray toUtf8() const __attribute__ ((warn_unused_result));
4018 QByteArray toLocal8Bit() const __attribute__ ((warn_unused_result));
4019 QVector<uint> toUcs4() const __attribute__ ((warn_unused_result));
4021 static QString fromAscii(const char *, int size = -1);
4022 static QString fromLatin1(const char *, int size = -1);
4023 static QString fromUtf8(const char *, int size = -1);
4024 static QString fromLocal8Bit(const char *, int size = -1);
4025 static QString fromUtf16(const ushort *, int size = -1);
4026 static QString fromUcs4(const uint *, int size = -1);
4027 static QString fromRawData(const QChar *, int size);
4029 int toWCharArray(wchar_t *array) const;
4030 static QString fromWCharArray(const wchar_t *, int size = -1);
4032 QString &setUnicode(const QChar *unicode, int size);
4033 inline QString &setUtf16(const ushort *utf16, int size);
4036 int compare(const QString &s) const;
4037 int compare(const QString &s, Qt::CaseSensitivity cs) const;
4039 int compare(const QLatin1String &other, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
4042 static inline int compare(const QString &s1, const QString &s2)
4043 { return s1.compare(s2); }
4044 static inline int compare(const QString &s1, const QString &s2, Qt::CaseSensitivity cs)
4045 { return s1.compare(s2, cs); }
4047 static inline int compare(const QString& s1, const QLatin1String &s2,
4048 Qt::CaseSensitivity cs = Qt::CaseSensitive)
4049 { return s1.compare(s2, cs); }
4050 static inline int compare(const QLatin1String& s1, const QString &s2,
4051 Qt::CaseSensitivity cs = Qt::CaseSensitive)
4052 { return -s2.compare(s1, cs); }
4054 int localeAwareCompare(const QString& s) const;
4055 static int localeAwareCompare(const QString& s1, const QString& s2)
4056 { return s1.localeAwareCompare(s2); }
4058 short toShort(bool *ok=0, int base=10) const;
4059 ushort toUShort(bool *ok=0, int base=10) const;
4060 int toInt(bool *ok=0, int base=10) const;
4061 uint toUInt(bool *ok=0, int base=10) const;
4062 long toLong(bool *ok=0, int base=10) const;
4063 ulong toULong(bool *ok=0, int base=10) const;
4064 qlonglong toLongLong(bool *ok=0, int base=10) const;
4065 qulonglong toULongLong(bool *ok=0, int base=10) const;
4066 float toFloat(bool *ok=0) const;
4067 double toDouble(bool *ok=0) const;
4069 QString &setNum(short, int base=10);
4070 QString &setNum(ushort, int base=10);
4071 QString &setNum(int, int base=10);
4072 QString &setNum(uint, int base=10);
4073 QString &setNum(long, int base=10);
4074 QString &setNum(ulong, int base=10);
4075 QString &setNum(qlonglong, int base=10);
4076 QString &setNum(qulonglong, int base=10);
4077 QString &setNum(float, char f='g', int prec=6);
4078 QString &setNum(double, char f='g', int prec=6);
4080 static QString number(int, int base=10);
4081 static QString number(uint, int base=10);
4082 static QString number(long, int base=10);
4083 static QString number(ulong, int base=10);
4084 static QString number(qlonglong, int base=10);
4085 static QString number(qulonglong, int base=10);
4086 static QString number(double, char f='g', int prec=6);
4088 bool operator==(const QString &s) const;
4089 bool operator<(const QString &s) const;
4090 inline bool operator>(const QString &s) const { return s < *this; }
4091 inline bool operator!=(const QString &s) const { return !operator==(s); }
4092 inline bool operator<=(const QString &s) const { return !operator>(s); }
4093 inline bool operator>=(const QString &s) const { return !operator<(s); }
4095 bool operator==(const QLatin1String &s) const;
4096 bool operator<(const QLatin1String &s) const;
4097 bool operator>(const QLatin1String &s) const;
4098 inline bool operator!=(const QLatin1String &s) const { return !operator==(s); }
4099 inline bool operator<=(const QLatin1String &s) const { return !operator>(s); }
4100 inline bool operator>=(const QLatin1String &s) const { return !operator<(s); }
4104 inline QString(const char *ch) : d(fromAscii_helper(ch))
4106 inline QString(const QByteArray &a)
4107 : d(fromAscii_helper(a.constData(), qstrnlen(a.constData(), a.size())))
4109 inline QString &operator=(const char *ch)
4110 { return (*this = fromAscii(ch)); }
4111 inline QString &operator=(const QByteArray &a)
4112 { return (*this = fromAscii(a.constData(), qstrnlen(a.constData(), a.size()))); }
4113 inline QString &operator=(char c)
4114 { return (*this = QChar::fromAscii(c)); }
4117 inline QString &prepend(const char *s)
4118 { return prepend(QString::fromAscii(s)); }
4119 inline QString &prepend(const QByteArray &s)
4120 { return prepend(QString::fromAscii(s.constData(), qstrnlen(s.constData(), s.size()))); }
4121 inline QString &append(const char *s)
4122 { return append(QString::fromAscii(s)); }
4123 inline QString &append(const QByteArray &s)
4124 { return append(QString::fromAscii(s.constData(), qstrnlen(s.constData(), s.size()))); }
4125 inline QString &operator+=(const char *s)
4126 { return append(QString::fromAscii(s)); }
4127 inline QString &operator+=(const QByteArray &s)
4128 { return append(QString::fromAscii(s.constData(), qstrnlen(s.constData(), s.size()))); }
4129 inline QString &operator+=(char c)
4130 { return append(QChar::fromAscii(c)); }
4132 inline bool operator==(const char *s) const;
4133 inline bool operator!=(const char *s) const;
4134 inline bool operator<(const char *s) const;
4135 inline bool operator<=(const char *s2) const;
4136 inline bool operator>(const char *s2) const;
4137 inline bool operator>=(const char *s2) const;
4139 inline bool operator==(const QByteArray &s) const;
4140 inline bool operator!=(const QByteArray &s) const;
4141 inline bool operator<(const QByteArray &s) const
4142 { return *this < QString::fromAscii(s.constData(), s.size()); }
4143 inline bool operator>(const QByteArray &s) const
4144 { return *this > QString::fromAscii(s.constData(), s.size()); }
4145 inline bool operator<=(const QByteArray &s) const
4146 { return *this <= QString::fromAscii(s.constData(), s.size()); }
4147 inline bool operator>=(const QByteArray &s) const
4148 { return *this >= QString::fromAscii(s.constData(), s.size()); }
4151 typedef QChar *iterator;
4152 typedef const QChar *const_iterator;
4153 typedef iterator Iterator;
4154 typedef const_iterator ConstIterator;
4156 const_iterator begin() const;
4157 const_iterator constBegin() const;
4159 const_iterator end() const;
4160 const_iterator constEnd() const;
4162 inline QString &inline_append(QChar ch) {
4163 if (d->ref != 1 || d->size + 1 > d->alloc)
4164 realloc(grow(d->size + 1));
4165 d->data[d->size++] = ch.unicode();
4166 d->data[d->size] = '\0';
4171 inline void push_back(QChar c) { append(c); }
4172 inline void push_back(const QString &s) { append(s); }
4173 inline void push_front(QChar c) { prepend(c); }
4174 inline void push_front(const QString &s) { prepend(s); }
4175 # 458 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
4177 static const Null null;
4178 inline QString(const Null &): d(&shared_null) { d->ref.ref(); }
4179 inline QString &operator=(const Null &) { *this = QString(); return *this; }
4180 inline bool isNull() const { return d == &shared_null; }
4181 # 541 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
4182 bool isSimpleText() const { if (!d->clean) updateProperties(); return d->simpletext; }
4183 bool isRightToLeft() const { if (!d->clean) updateProperties(); return d->righttoleft; }
4186 # 554 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
4192 ushort simpletext : 1;
4193 ushort righttoleft : 1;
4194 ushort asciiCache : 1;
4195 ushort capacity : 1;
4196 ushort reserved : 11;
4199 static Data shared_null;
4200 static Data shared_empty;
4202 QString(Data *dd, int ) : d(dd) {}
4206 static int grow(int);
4207 static void free(Data *);
4209 void realloc(int alloc);
4211 void updateProperties() const;
4212 QString multiArg(int numArgs, const QString **args) const;
4213 static Data *fromLatin1_helper(const char *str, int size = -1);
4214 static Data *fromAscii_helper(const char *str, int size = -1);
4215 friend class QCharRef;
4216 friend class QTextCodec;
4217 friend class QStringRef;
4218 friend inline bool qStringComparisonHelper(const QString &s1, const char *s2);
4219 friend inline bool qStringComparisonHelper(const QStringRef &s1, const char *s2);
4221 typedef Data * DataPtr;
4222 inline DataPtr &data_ptr() { return d; }
4229 inline explicit QLatin1String(const char *s) : chars(s) {}
4230 inline QLatin1String &operator=(const QLatin1String &other)
4231 { chars = other.chars; return *this; }
4233 inline const char *latin1() const { return chars; }
4235 inline bool operator==(const QString &s) const
4236 { return s == *this; }
4237 inline bool operator!=(const QString &s) const
4238 { return s != *this; }
4239 inline bool operator>(const QString &s) const
4240 { return s < *this; }
4241 inline bool operator<(const QString &s) const
4242 { return s > *this; }
4243 inline bool operator>=(const QString &s) const
4244 { return s <= *this; }
4245 inline bool operator<=(const QString &s) const
4246 { return s >= *this; }
4248 inline bool operator==(const char *s) const
4249 { return QString::fromAscii(s) == *this; }
4250 inline bool operator!=(const char *s) const
4251 { return QString::fromAscii(s) != *this; }
4252 inline bool operator<(const char *s) const
4253 { return QString::fromAscii(s) > *this; }
4254 inline bool operator>(const char *s) const
4255 { return QString::fromAscii(s) < *this; }
4256 inline bool operator<=(const char *s) const
4257 { return QString::fromAscii(s) >= *this; }
4258 inline bool operator>=(const char *s) const
4259 { return QString::fromAscii(s) <= *this; }
4266 inline QString::QString(const QLatin1String &latin1) : d(fromLatin1_helper(latin1.latin1()))
4268 inline int QString::length() const
4270 inline const QChar QString::at(int i) const
4271 { do {if(!(i >= 0 && i < size()))qt_assert("i >= 0 && i < size()","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",638);} while (0); return d->data[i]; }
4272 inline const QChar QString::operator[](int i) const
4273 { do {if(!(i >= 0 && i < size()))qt_assert("i >= 0 && i < size()","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",640);} while (0); return d->data[i]; }
4274 inline const QChar QString::operator[](uint i) const
4275 { do {if(!(i < uint(size())))qt_assert("i < uint(size())","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",642);} while (0); return d->data[i]; }
4276 inline bool QString::isEmpty() const
4277 { return d->size == 0; }
4278 inline const QChar *QString::unicode() const
4279 { return reinterpret_cast<const QChar*>(d->data); }
4280 inline const QChar *QString::data() const
4281 { return reinterpret_cast<const QChar*>(d->data); }
4282 inline QChar *QString::data()
4283 { detach(); return reinterpret_cast<QChar*>(d->data); }
4284 inline const QChar *QString::constData() const
4285 { return reinterpret_cast<const QChar*>(d->data); }
4286 inline void QString::detach()
4287 { if (d->ref != 1 || d->data != d->array) realloc(); }
4288 inline bool QString::isDetached() const
4289 { return d->ref == 1; }
4290 inline QString &QString::operator=(const QLatin1String &s)
4292 *this = fromLatin1(s.latin1());
4295 inline void QString::clear()
4296 { if (!isNull()) *this = QString(); }
4297 inline QString::QString(const QString &other) : d(other.d)
4298 { do {if(!(&other != this))qt_assert("&other != this","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",665);} while (0); d->ref.ref(); }
4299 inline int QString::capacity() const
4300 { return d->alloc; }
4301 inline QString &QString::setNum(short n, int base)
4302 { return setNum(qlonglong(n), base); }
4303 inline QString &QString::setNum(ushort n, int base)
4304 { return setNum(qulonglong(n), base); }
4305 inline QString &QString::setNum(int n, int base)
4306 { return setNum(qlonglong(n), base); }
4307 inline QString &QString::setNum(uint n, int base)
4308 { return setNum(qulonglong(n), base); }
4309 inline QString &QString::setNum(long n, int base)
4310 { return setNum(qlonglong(n), base); }
4311 inline QString &QString::setNum(ulong n, int base)
4312 { return setNum(qulonglong(n), base); }
4313 inline QString &QString::setNum(float n, char f, int prec)
4314 { return setNum(double(n),f,prec); }
4315 inline QString QString::arg(int a, int fieldWidth, int base, const QChar &fillChar) const
4316 { return arg(qlonglong(a), fieldWidth, base, fillChar); }
4317 inline QString QString::arg(uint a, int fieldWidth, int base, const QChar &fillChar) const
4318 { return arg(qulonglong(a), fieldWidth, base, fillChar); }
4319 inline QString QString::arg(long a, int fieldWidth, int base, const QChar &fillChar) const
4320 { return arg(qlonglong(a), fieldWidth, base, fillChar); }
4321 inline QString QString::arg(ulong a, int fieldWidth, int base, const QChar &fillChar) const
4322 { return arg(qulonglong(a), fieldWidth, base, fillChar); }
4323 inline QString QString::arg(short a, int fieldWidth, int base, const QChar &fillChar) const
4324 { return arg(qlonglong(a), fieldWidth, base, fillChar); }
4325 inline QString QString::arg(ushort a, int fieldWidth, int base, const QChar &fillChar) const
4326 { return arg(qulonglong(a), fieldWidth, base, fillChar); }
4327 inline QString QString::arg(const QString &a1, const QString &a2) const
4328 { const QString *args[2] = { &a1, &a2 }; return multiArg(2, args); }
4329 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3) const
4330 { const QString *args[3] = { &a1, &a2, &a3 }; return multiArg(3, args); }
4331 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4332 const QString &a4) const
4333 { const QString *args[4] = { &a1, &a2, &a3, &a4 }; return multiArg(4, args); }
4334 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4335 const QString &a4, const QString &a5) const
4336 { const QString *args[5] = { &a1, &a2, &a3, &a4, &a5 }; return multiArg(5, args); }
4337 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4338 const QString &a4, const QString &a5, const QString &a6) const
4339 { const QString *args[6] = { &a1, &a2, &a3, &a4, &a5, &a6 }; return multiArg(6, args); }
4340 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4341 const QString &a4, const QString &a5, const QString &a6,
4342 const QString &a7) const
4343 { const QString *args[7] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7 }; return multiArg(7, args); }
4344 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4345 const QString &a4, const QString &a5, const QString &a6,
4346 const QString &a7, const QString &a8) const
4347 { const QString *args[8] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8 }; return multiArg(8, args); }
4348 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4349 const QString &a4, const QString &a5, const QString &a6,
4350 const QString &a7, const QString &a8, const QString &a9) const
4351 { const QString *args[9] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8, &a9 }; return multiArg(9, args); }
4353 inline QString QString::section(QChar asep, int astart, int aend, SectionFlags aflags) const
4354 { return section(QString(asep), astart, aend, aflags); }
4360 inline QCharRef(QString &str, int idx)
4362 friend class QString;
4368 inline operator QChar() const
4369 { return i < s.d->size ? s.d->data[i] : 0; }
4370 inline QCharRef &operator=(const QChar &c)
4371 { if (s.d->ref != 1 || i >= s.d->size) s.expand(i);