initial import
[ICEs.git] / 200324 / foo.ii
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"
3 # 1 "<built-in>"
4 # 1 "<command line>"
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"
11 # 1 "./option.h" 1
12 # 42 "./option.h"
13 # 1 "./project.h" 1
14 # 42 "./project.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;
36 typedef short qint16;
37 typedef unsigned short quint16;
38 typedef int qint32;
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;
43
44
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;
53
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;
59
60
61
62
63
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"
69
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"
73 typedef double qreal;
74
75
76
77
78
79
80 template <typename T>
81 inline T qAbs(const T &t) { return t >= 0 ? t : -t; }
82
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); }
85
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); }
88
89 template <typename T>
90 inline const T &qMin(const T &a, const T &b) { if (a < b) return a; return b; }
91 template <typename T>
92 inline const T &qMax(const T &a, const T &b) { if (a < b) return b; return a; }
93 template <typename T>
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"
97 class QDataStream;
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"
104 class QString;
105 class QSysInfo {
106 public:
107 enum Sizes {
108 WordSize = (sizeof(void *)<<3)
109 };
110
111
112 enum Endian {
113 BigEndian,
114 LittleEndian
115 };
116
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"
119 };
120
121 const char *qVersion();
122 bool qSharedBuild();
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 *, ...)
125
126 __attribute__ ((format (printf, 1, 2)))
127
128 ;
129
130 void qWarning(const char *, ...)
131
132 __attribute__ ((format (printf, 1, 2)))
133
134 ;
135
136 class QString;
137 QString qt_error_string(int errorCode = -1);
138 void qCritical(const char *, ...)
139
140 __attribute__ ((format (printf, 1, 2)))
141
142 ;
143 void qFatal(const char *, ...)
144
145 __attribute__ ((format (printf, 1, 2)))
146
147 ;
148
149
150
151
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"
155 class QDebug;
156 class QNoDebug;
157
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() {}
163
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 };
171
172 void qt_message_output(QtMsgType, const char *buf);
173
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>
178 class QGlobalStatic
179 {
180 public:
181 T *pointer;
182 inline QGlobalStatic(T *p) : pointer(p) { }
183 inline ~QGlobalStatic() { pointer = 0; }
184 };
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"
186 class QBool
187 {
188 bool b;
189
190 public:
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); }
194 };
195
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; }
202
203 static inline bool qFuzzyCompare(double p1, double p2)
204 {
205 return qAbs(p1 - p2) < 0.00000000001;
206 }
207
208 static inline bool qFuzzyCompare(float p1, float p2)
209 {
210 return qAbs(p1 - p2) < 0.000001;
211 }
212
213
214
215
216
217
218 static inline bool qIsNull(double d)
219 {
220 union U {
221 double d;
222 quint64 u;
223 };
224 U val;
225 val.d = d;
226 return val.u == quint64(0);
227 }
228
229
230
231
232
233
234 static inline bool qIsNull(float f)
235 {
236 union U {
237 float f;
238 quint32 u;
239 };
240 U val;
241 val.f = f;
242 return val.u == 0u;
243 }
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; }
246
247 template <typename T>
248 class QTypeInfo
249 {
250 public:
251 enum {
252 isPointer = false,
253 isComplex = true,
254 isStatic = true,
255 isLarge = (sizeof(T)>sizeof(void*)),
256 isDummy = false
257 };
258 };
259
260 template <typename T>
261 class QTypeInfo<T*>
262 {
263 public:
264 enum {
265 isPointer = true,
266 isComplex = false,
267 isStatic = false,
268 isLarge = false,
269 isDummy = false
270 };
271 };
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"
273 enum {
274 Q_COMPLEX_TYPE = 0,
275 Q_PRIMITIVE_TYPE = 0x1,
276 Q_STATIC_TYPE = 0,
277 Q_MOVABLE_TYPE = 0x2,
278 Q_DUMMY_TYPE = 0x4
279 };
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"; } };
295
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"; } };
297
298
299
300
301
302
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"
309 class QFlag
310 {
311 int i;
312 public:
313 inline QFlag(int i);
314 inline operator int() const { return i; }
315 };
316
317 inline QFlag::QFlag(int ai) : i(ai) {}
318
319
320
321
322 template<typename Enum>
323 class QFlags
324 {
325 typedef void **Zero;
326 int i;
327 public:
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) {}
333
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; }
341
342 inline operator int() const { return i; }
343
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; }
352
353 inline bool operator!() const { return !i; }
354
355 inline bool testFlag(Enum f) const { return i & f; }
356
357 private:
358
359
360
361 };
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 {
365 public:
366 inline QForeachContainer(const T& t) : c(t), brk(0), i(c.begin()), e(c.end()) { }
367 const T c;
368 int brk;
369 typename T::const_iterator i, e;
370 };
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"
372 class QByteArray;
373 QByteArray qgetenv(const char *varName);
374
375 inline int qIntCast(double f) { return int(f); }
376 inline int qIntCast(float f) { return int(f); }
377
378
379
380
381 void qsrand(uint seed);
382 int qrand();
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 };
385
386
387 enum QtValidLicenseForGuiModule { LicensedGui = true };
388
389
390 enum QtValidLicenseForNetworkModule { LicensedNetwork = true };
391
392
393 enum QtValidLicenseForOpenGLModule { LicensedOpenGL = true };
394
395
396 enum QtValidLicenseForSqlModule { LicensedSql = true };
397
398
399 enum QtValidLicenseForXmlModule { LicensedXml = true };
400
401
402 enum QtValidLicenseForScriptModule { LicensedScript = true };
403
404
405 enum QtValidLicenseForQt3SupportLightModule { LicensedQt3SupportLight = true };
406
407
408 enum QtValidLicenseForQt3SupportModule { LicensedQt3Support = true };
409
410
411 enum QtValidLicenseForSvgModule { LicensedSvg = true };
412
413
414 enum QtValidLicenseForActiveQtModule { LicensedActiveQt = true };
415
416
417
418
419
420
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
423
424
425
426 typedef QtValidLicenseForCoreModule QtCoreModule;
427
428
429
430
431
432 namespace QAlgorithmsPrivate {
433
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);
438
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 &);
443
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);
450
451 }
452
453 template <typename InputIterator, typename OutputIterator>
454 inline OutputIterator qCopy(InputIterator begin, InputIterator end, OutputIterator dest)
455 {
456 while (begin != end)
457 *dest++ = *begin++;
458 return dest;
459 }
460
461 template <typename BiIterator1, typename BiIterator2>
462 inline BiIterator2 qCopyBackward(BiIterator1 begin, BiIterator1 end, BiIterator2 dest)
463 {
464 while (begin != end)
465 *--dest = *--end;
466 return dest;
467 }
468
469 template <typename InputIterator1, typename InputIterator2>
470 inline bool qEqual(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2)
471 {
472 for (; first1 != last1; ++first1, ++first2)
473 if (!(*first1 == *first2))
474 return false;
475 return true;
476 }
477
478 template <typename ForwardIterator, typename T>
479 inline void qFill(ForwardIterator first, ForwardIterator last, const T &val)
480 {
481 for (; first != last; ++first)
482 *first = val;
483 }
484
485 template <typename Container, typename T>
486 inline void qFill(Container &container, const T &val)
487 {
488 qFill(container.begin(), container.end(), val);
489 }
490
491 template <typename InputIterator, typename T>
492 inline InputIterator qFind(InputIterator first, InputIterator last, const T &val)
493 {
494 while (first != last && !(*first == val))
495 ++first;
496 return first;
497 }
498
499 template <typename Container, typename T>
500 inline typename Container::const_iterator qFind(const Container &container, const T &val)
501 {
502 return qFind(container.constBegin(), container.constEnd(), val);
503 }
504
505 template <typename InputIterator, typename T, typename Size>
506 inline void qCount(InputIterator first, InputIterator last, const T &value, Size &n)
507 {
508 for (; first != last; ++first)
509 if (*first == value)
510 ++n;
511 }
512
513 template <typename Container, typename T, typename Size>
514 inline void qCount(const Container &container, const T &value, Size &n)
515 {
516 qCount(container.constBegin(), container.constEnd(), value, n);
517 }
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)
521 {
522 T t = value1;
523 value1 = value2;
524 value2 = t;
525 }
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>
528 class qLess
529 {
530 public:
531 inline bool operator()(const T &t1, const T &t2) const
532 {
533 return (t1 < t2);
534 }
535 };
536
537 template <typename T>
538 class qGreater
539 {
540 public:
541 inline bool operator()(const T &t1, const T &t2) const
542 {
543 return (t2 < t1);
544 }
545 };
546
547
548 template <typename RandomAccessIterator>
549 inline void qSort(RandomAccessIterator start, RandomAccessIterator end)
550 {
551 if (start != end)
552 QAlgorithmsPrivate::qSortHelper(start, end, *start);
553 }
554
555 template <typename RandomAccessIterator, typename LessThan>
556 inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
557 {
558 if (start != end)
559 QAlgorithmsPrivate::qSortHelper(start, end, *start, lessThan);
560 }
561
562 template<typename Container>
563 inline void qSort(Container &c)
564 {
565
566
567
568
569 if (!c.empty())
570 QAlgorithmsPrivate::qSortHelper(c.begin(), c.end(), *c.begin());
571 }
572
573 template <typename RandomAccessIterator>
574 inline void qStableSort(RandomAccessIterator start, RandomAccessIterator end)
575 {
576 if (start != end)
577 QAlgorithmsPrivate::qStableSortHelper(start, end, *start);
578 }
579
580 template <typename RandomAccessIterator, typename LessThan>
581 inline void qStableSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
582 {
583 if (start != end)
584 QAlgorithmsPrivate::qStableSortHelper(start, end, *start, lessThan);
585 }
586
587 template<typename Container>
588 inline void qStableSort(Container &c)
589 {
590
591
592
593
594 if (!c.empty())
595 QAlgorithmsPrivate::qStableSortHelper(c.begin(), c.end(), *c.begin());
596 }
597
598 template <typename RandomAccessIterator, typename T>
599 RandomAccessIterator qLowerBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
600 {
601
602
603
604 RandomAccessIterator middle;
605 int n = end - begin;
606 int half;
607
608 while (n > 0) {
609 half = n >> 1;
610 middle = begin + half;
611 if (*middle < value) {
612 begin = middle + 1;
613 n -= half + 1;
614 } else {
615 n = half;
616 }
617 }
618 return begin;
619 }
620
621 template <typename RandomAccessIterator, typename T, typename LessThan>
622 RandomAccessIterator qLowerBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
623 {
624 return QAlgorithmsPrivate::qLowerBoundHelper(begin, end, value, lessThan);
625 }
626
627 template <typename Container, typename T>
628 typename Container::const_iterator qLowerBound(const Container &container, const T &value)
629 {
630 return QAlgorithmsPrivate::qLowerBoundHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
631 }
632
633 template <typename RandomAccessIterator, typename T>
634 RandomAccessIterator qUpperBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
635 {
636
637 RandomAccessIterator middle;
638 int n = end - begin;
639 int half;
640
641 while (n > 0) {
642 half = n >> 1;
643 middle = begin + half;
644 if (value < *middle) {
645 n = half;
646 } else {
647 begin = middle + 1;
648 n -= half + 1;
649 }
650 }
651 return begin;
652 }
653
654 template <typename RandomAccessIterator, typename T, typename LessThan>
655 RandomAccessIterator qUpperBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
656 {
657 return QAlgorithmsPrivate::qUpperBoundHelper(begin, end, value, lessThan);
658 }
659
660 template <typename Container, typename T>
661 typename Container::const_iterator qUpperBound(const Container &container, const T &value)
662 {
663 return QAlgorithmsPrivate::qUpperBoundHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
664 }
665
666 template <typename RandomAccessIterator, typename T>
667 RandomAccessIterator qBinaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
668 {
669
670 int l = 0;
671 int r = end - begin - 1;
672 if (r < 0)
673 return end;
674 int i = (l + r + 1) / 2;
675
676 while (r != l) {
677 if (value < begin[i])
678 r = i - 1;
679 else
680 l = i;
681 i = (l + r + 1) / 2;
682 }
683 if (begin[i] < value || value < begin[i])
684 return end;
685 else
686 return begin + i;
687 }
688
689 template <typename RandomAccessIterator, typename T, typename LessThan>
690 RandomAccessIterator qBinaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
691 {
692 return QAlgorithmsPrivate::qBinaryFindHelper(begin, end, value, lessThan);
693 }
694
695 template <typename Container, typename T>
696 typename Container::const_iterator qBinaryFind(const Container &container, const T &value)
697 {
698 return QAlgorithmsPrivate::qBinaryFindHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
699 }
700
701 template <typename ForwardIterator>
702 void qDeleteAll(ForwardIterator begin, ForwardIterator end)
703 {
704 while (begin != end) {
705 delete *begin;
706 ++begin;
707 }
708 }
709
710 template <typename Container>
711 inline void qDeleteAll(const Container &c)
712 {
713 qDeleteAll(c.begin(), c.end());
714 }
715
716
717
718
719
720 namespace QAlgorithmsPrivate {
721
722 template <typename RandomAccessIterator, typename T, typename LessThan>
723 void qSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan)
724 {
725 top:
726 int span = end - start;
727 if (span < 2)
728 return;
729
730 --end;
731 RandomAccessIterator low = start, high = end - 1;
732 RandomAccessIterator pivot = start + span / 2;
733
734 if (lessThan(*end, *start))
735 qSwap(*end, *start);
736 if (span == 2)
737 return;
738
739 if (lessThan(*pivot, *start))
740 qSwap(*pivot, *start);
741 if (lessThan(*end, *pivot))
742 qSwap(*end, *pivot);
743 if (span == 3)
744 return;
745
746 qSwap(*pivot, *end);
747
748 while (low < high) {
749 while (low < high && lessThan(*low, *end))
750 ++low;
751
752 while (high > low && lessThan(*end, *high))
753 --high;
754
755 if (low < high) {
756 qSwap(*low, *high);
757 ++low;
758 --high;
759 } else {
760 break;
761 }
762 }
763
764 if (lessThan(*low, *end))
765 ++low;
766
767 qSwap(*end, *low);
768 qSortHelper(start, low, t, lessThan);
769
770 start = low + 1;
771 ++end;
772 goto top;
773 }
774
775 template <typename RandomAccessIterator, typename T>
776 inline void qSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy)
777 {
778 qSortHelper(begin, end, dummy, qLess<T>());
779 }
780
781 template <typename RandomAccessIterator>
782 void qReverse(RandomAccessIterator begin, RandomAccessIterator end)
783 {
784 --end;
785 while (begin < end)
786 qSwap(*begin++, *end--);
787 }
788
789 template <typename RandomAccessIterator>
790 void qRotate(RandomAccessIterator begin, RandomAccessIterator middle, RandomAccessIterator end)
791 {
792 qReverse(begin, middle);
793 qReverse(middle, end);
794 qReverse(begin, end);
795 }
796
797 template <typename RandomAccessIterator, typename T, typename LessThan>
798 void qMerge(RandomAccessIterator begin, RandomAccessIterator pivot, RandomAccessIterator end, T &t, LessThan lessThan)
799 {
800 const int len1 = pivot - begin;
801 const int len2 = end - pivot;
802
803 if (len1 == 0 || len2 == 0)
804 return;
805
806 if (len1 + len2 == 2) {
807 if (lessThan(*(begin + 1), *(begin)))
808 qSwap(*begin, *(begin + 1));
809 return;
810 }
811
812 RandomAccessIterator firstCut;
813 RandomAccessIterator secondCut;
814 int len2Half;
815 if (len1 > len2) {
816 const int len1Half = len1 / 2;
817 firstCut = begin + len1Half;
818 secondCut = qLowerBound(pivot, end, *firstCut, lessThan);
819 len2Half = secondCut - pivot;
820 } else {
821 len2Half = len2 / 2;
822 secondCut = pivot + len2Half;
823 firstCut = qUpperBound(begin, pivot, *secondCut, lessThan);
824 }
825
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);
830 }
831
832 template <typename RandomAccessIterator, typename T, typename LessThan>
833 void qStableSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &t, LessThan lessThan)
834 {
835 const int span = end - begin;
836 if (span < 2)
837 return;
838
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);
843 }
844
845 template <typename RandomAccessIterator, typename T>
846 inline void qStableSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy)
847 {
848 qStableSortHelper(begin, end, dummy, qLess<T>());
849 }
850
851 template <typename RandomAccessIterator, typename T, typename LessThan>
852 RandomAccessIterator qLowerBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
853 {
854 RandomAccessIterator middle;
855 int n = end - begin;
856 int half;
857
858 while (n > 0) {
859 half = n >> 1;
860 middle = begin + half;
861 if (lessThan(*middle, value)) {
862 begin = middle + 1;
863 n -= half + 1;
864 } else {
865 n = half;
866 }
867 }
868 return begin;
869 }
870
871
872 template <typename RandomAccessIterator, typename T, typename LessThan>
873 RandomAccessIterator qUpperBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
874 {
875 RandomAccessIterator middle;
876 int n = end - begin;
877 int half;
878
879 while (n > 0) {
880 half = n >> 1;
881 middle = begin + half;
882 if (lessThan(value, *middle)) {
883 n = half;
884 } else {
885 begin = middle + 1;
886 n -= half + 1;
887 }
888 }
889 return begin;
890 }
891
892 template <typename RandomAccessIterator, typename T, typename LessThan>
893 RandomAccessIterator qBinaryFindHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
894 {
895 int l = 0;
896 int r = end - begin - 1;
897 if (r < 0)
898 return end;
899 int i = (l + r + 1) / 2;
900
901 while (r != l) {
902 if (lessThan(value, begin[i]))
903 r = i - 1;
904 else
905 l = i;
906 i = (l + r + 1) / 2;
907 }
908 if (lessThan(begin[i], value) || lessThan(value, begin[i]))
909 return end;
910 else
911 return begin + i;
912 }
913
914 }
915
916
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
933
934
935
936 typedef QtValidLicenseForCoreModule QtCoreModule;
937
938
939 namespace
940
941
942
943 Qt {
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"
945 enum GlobalColor {
946 color0,
947 color1,
948 black,
949 white,
950 darkGray,
951 gray,
952 lightGray,
953 red,
954 green,
955 blue,
956 cyan,
957 magenta,
958 yellow,
959 darkRed,
960 darkGreen,
961 darkBlue,
962 darkCyan,
963 darkMagenta,
964 darkYellow,
965 transparent
966 };
967
968 enum KeyboardModifier {
969 NoModifier = 0x00000000,
970 ShiftModifier = 0x02000000,
971 ControlModifier = 0x04000000,
972 AltModifier = 0x08000000,
973 MetaModifier = 0x10000000,
974 KeypadModifier = 0x20000000,
975 GroupSwitchModifier = 0x40000000,
976
977 KeyboardModifierMask = 0xfe000000
978 };
979 typedef QFlags<KeyboardModifier> KeyboardModifiers;
980
981
982 enum Modifier {
983 META = Qt::MetaModifier,
984 SHIFT = Qt::ShiftModifier,
985 CTRL = Qt::ControlModifier,
986 ALT = Qt::AltModifier,
987 MODIFIER_MASK = KeyboardModifierMask,
988 UNICODE_ACCEL = 0x00000000
989 };
990
991 enum MouseButton {
992 NoButton = 0x00000000,
993 LeftButton = 0x00000001,
994 RightButton = 0x00000002,
995 MidButton = 0x00000004,
996 XButton1 = 0x00000008,
997 XButton2 = 0x00000010,
998 MouseButtonMask = 0x000000ff
999 };
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"
1002 enum Orientation {
1003 Horizontal = 0x1,
1004 Vertical = 0x2
1005 };
1006
1007 typedef QFlags<Orientation> Orientations;
1008
1009 enum FocusPolicy {
1010 NoFocus = 0,
1011 TabFocus = 0x1,
1012 ClickFocus = 0x2,
1013 StrongFocus = TabFocus | ClickFocus | 0x8,
1014 WheelFocus = StrongFocus | 0x4
1015 };
1016
1017 enum SortOrder {
1018 AscendingOrder,
1019 DescendingOrder
1020
1021
1022
1023
1024 };
1025
1026
1027
1028
1029
1030 enum AlignmentFlag {
1031 AlignLeft = 0x0001,
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,
1039
1040 AlignTop = 0x0020,
1041 AlignBottom = 0x0040,
1042 AlignVCenter = 0x0080,
1043 AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,
1044
1045 AlignCenter = AlignVCenter | AlignHCenter
1046
1047
1048
1049 };
1050
1051 typedef QFlags<AlignmentFlag> Alignment;
1052
1053 enum TextFlag {
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"
1065 };
1066
1067
1068
1069
1070 enum TextElideMode {
1071 ElideLeft,
1072 ElideRight,
1073 ElideMiddle,
1074 ElideNone
1075 };
1076
1077 enum WindowType {
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,
1089
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"
1105 };
1106
1107 typedef QFlags<WindowType> WindowFlags;
1108
1109 enum WindowState {
1110 WindowNoState = 0x00000000,
1111 WindowMinimized = 0x00000001,
1112 WindowMaximized = 0x00000002,
1113 WindowFullScreen = 0x00000004,
1114 WindowActive = 0x00000008
1115 };
1116
1117 typedef QFlags<WindowState> WindowStates;
1118
1119 enum WidgetAttribute {
1120 WA_Disabled = 0,
1121 WA_UnderMouse = 1,
1122 WA_MouseTracking = 2,
1123 WA_ContentsPropagated = 3,
1124 WA_OpaquePaintEvent = 4,
1125 WA_NoBackground = WA_OpaquePaintEvent,
1126 WA_StaticContents = 5,
1127 WA_LaidOut = 7,
1128 WA_PaintOnScreen = 8,
1129 WA_NoSystemBackground = 9,
1130 WA_UpdatesDisabled = 10,
1131 WA_Mapped = 11,
1132 WA_MacNoClickThrough = 12,
1133 WA_PaintOutsidePaintEvent = 13,
1134 WA_InputMethodEnabled = 14,
1135 WA_WState_Visible = 15,
1136 WA_WState_Hidden = 16,
1137
1138 WA_ForceDisabled = 32,
1139 WA_KeyCompression = 33,
1140 WA_PendingMoveEvent = 34,
1141 WA_PendingResizeEvent = 35,
1142 WA_SetPalette = 36,
1143 WA_SetFont = 37,
1144 WA_SetCursor = 38,
1145 WA_NoChildEventsFromChildren = 39,
1146 WA_WindowModified = 41,
1147 WA_Resized = 42,
1148 WA_Moved = 43,
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,
1166
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,
1173 WA_WState_DND = 67,
1174 WA_WState_OwnSizePolicy = 68,
1175 WA_WState_ExplicitShowHide = 69,
1176
1177 WA_ShowModal = 70,
1178 WA_MouseNoMask = 71,
1179 WA_GroupLeader = 72,
1180 WA_NoMousePropagation = 73,
1181 WA_Hover = 74,
1182 WA_InputMethodTransparent = 75,
1183 WA_QuitOnClose = 76,
1184
1185 WA_KeyboardFocusChange = 77,
1186
1187 WA_AcceptDrops = 78,
1188 WA_DropSiteRegistered = 79,
1189 WA_ForceAcceptDrops = WA_DropSiteRegistered,
1190
1191 WA_WindowPropagation = 80,
1192
1193 WA_NoX11EventCompression = 81,
1194 WA_TintedBackground = 82,
1195 WA_X11OpenGLOverlay = 83,
1196 WA_AlwaysShowToolTips = 84,
1197 WA_MacOpaqueSizeGrip = 85,
1198 WA_SetStyle = 86,
1199
1200 WA_SetLocale = 87,
1201 WA_MacShowFocusRect = 88,
1202
1203 WA_MacNormalSize = 89,
1204 WA_MacSmallSize = 90,
1205 WA_MacMiniSize = 91,
1206
1207 WA_LayoutUsesWidgetRect = 92,
1208 WA_StyledBackground = 93,
1209 WA_MSWindowsUseDirect3D = 94,
1210 WA_CanHostQMdiSubWindowTitleBar = 95,
1211
1212 WA_MacAlwaysShowToolWindow = 96,
1213
1214 WA_StyleSheet = 97,
1215
1216
1217 WA_AttributeCount
1218 };
1219
1220 enum ApplicationAttribute
1221 {
1222 AA_ImmediateWidgetCreation = 0,
1223 AA_MSWindowsUseDirect3DByDefault = 1,
1224
1225
1226 AA_AttributeCount
1227 };
1228
1229
1230
1231
1232
1233 enum ImageConversionFlag {
1234 ColorMode_Mask = 0x00000003,
1235 AutoColor = 0x00000000,
1236 ColorOnly = 0x00000003,
1237 MonoOnly = 0x00000002,
1238
1239
1240 AlphaDither_Mask = 0x0000000c,
1241 ThresholdAlphaDither = 0x00000000,
1242 OrderedAlphaDither = 0x00000004,
1243 DiffuseAlphaDither = 0x00000008,
1244 NoAlpha = 0x0000000c,
1245
1246 Dither_Mask = 0x00000030,
1247 DiffuseDither = 0x00000000,
1248 OrderedDither = 0x00000010,
1249 ThresholdDither = 0x00000020,
1250
1251
1252 DitherMode_Mask = 0x000000c0,
1253 AutoDither = 0x00000000,
1254 PreferDither = 0x00000040,
1255 AvoidDither = 0x00000080
1256 };
1257 typedef QFlags<ImageConversionFlag> ImageConversionFlags;
1258
1259 enum BGMode {
1260 TransparentMode,
1261 OpaqueMode
1262 };
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"
1264 enum Key {
1265 Key_Escape = 0x01000000,
1266 Key_Tab = 0x01000001,
1267 Key_Backtab = 0x01000002,
1268
1269
1270
1271 Key_Backspace = 0x01000003,
1272
1273
1274
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,
1290
1291
1292
1293 Key_PageDown = 0x01000017,
1294
1295
1296
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,
1347 Key_Space = 0x20,
1348 Key_Any = Key_Space,
1349 Key_Exclam = 0x21,
1350 Key_QuoteDbl = 0x22,
1351 Key_NumberSign = 0x23,
1352 Key_Dollar = 0x24,
1353 Key_Percent = 0x25,
1354 Key_Ampersand = 0x26,
1355 Key_Apostrophe = 0x27,
1356 Key_ParenLeft = 0x28,
1357 Key_ParenRight = 0x29,
1358 Key_Asterisk = 0x2a,
1359 Key_Plus = 0x2b,
1360 Key_Comma = 0x2c,
1361 Key_Minus = 0x2d,
1362 Key_Period = 0x2e,
1363 Key_Slash = 0x2f,
1364 Key_0 = 0x30,
1365 Key_1 = 0x31,
1366 Key_2 = 0x32,
1367 Key_3 = 0x33,
1368 Key_4 = 0x34,
1369 Key_5 = 0x35,
1370 Key_6 = 0x36,
1371 Key_7 = 0x37,
1372 Key_8 = 0x38,
1373 Key_9 = 0x39,
1374 Key_Colon = 0x3a,
1375 Key_Semicolon = 0x3b,
1376 Key_Less = 0x3c,
1377 Key_Equal = 0x3d,
1378 Key_Greater = 0x3e,
1379 Key_Question = 0x3f,
1380 Key_At = 0x40,
1381 Key_A = 0x41,
1382 Key_B = 0x42,
1383 Key_C = 0x43,
1384 Key_D = 0x44,
1385 Key_E = 0x45,
1386 Key_F = 0x46,
1387 Key_G = 0x47,
1388 Key_H = 0x48,
1389 Key_I = 0x49,
1390 Key_J = 0x4a,
1391 Key_K = 0x4b,
1392 Key_L = 0x4c,
1393 Key_M = 0x4d,
1394 Key_N = 0x4e,
1395 Key_O = 0x4f,
1396 Key_P = 0x50,
1397 Key_Q = 0x51,
1398 Key_R = 0x52,
1399 Key_S = 0x53,
1400 Key_T = 0x54,
1401 Key_U = 0x55,
1402 Key_V = 0x56,
1403 Key_W = 0x57,
1404 Key_X = 0x58,
1405 Key_Y = 0x59,
1406 Key_Z = 0x5a,
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,
1414 Key_Bar = 0x7c,
1415 Key_BraceRight = 0x7d,
1416 Key_AsciiTilde = 0x7e,
1417
1418 Key_nobreakspace = 0x0a0,
1419 Key_exclamdown = 0x0a1,
1420 Key_cent = 0x0a2,
1421 Key_sterling = 0x0a3,
1422 Key_currency = 0x0a4,
1423 Key_yen = 0x0a5,
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,
1431 Key_hyphen = 0x0ad,
1432 Key_registered = 0x0ae,
1433 Key_macron = 0x0af,
1434 Key_degree = 0x0b0,
1435 Key_plusminus = 0x0b1,
1436 Key_twosuperior = 0x0b2,
1437 Key_threesuperior = 0x0b3,
1438 Key_acute = 0x0b4,
1439 Key_mu = 0x0b5,
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,
1450 Key_Agrave = 0x0c0,
1451 Key_Aacute = 0x0c1,
1452 Key_Acircumflex = 0x0c2,
1453 Key_Atilde = 0x0c3,
1454 Key_Adiaeresis = 0x0c4,
1455 Key_Aring = 0x0c5,
1456 Key_AE = 0x0c6,
1457 Key_Ccedilla = 0x0c7,
1458 Key_Egrave = 0x0c8,
1459 Key_Eacute = 0x0c9,
1460 Key_Ecircumflex = 0x0ca,
1461 Key_Ediaeresis = 0x0cb,
1462 Key_Igrave = 0x0cc,
1463 Key_Iacute = 0x0cd,
1464 Key_Icircumflex = 0x0ce,
1465 Key_Idiaeresis = 0x0cf,
1466 Key_ETH = 0x0d0,
1467 Key_Ntilde = 0x0d1,
1468 Key_Ograve = 0x0d2,
1469 Key_Oacute = 0x0d3,
1470 Key_Ocircumflex = 0x0d4,
1471 Key_Otilde = 0x0d5,
1472 Key_Odiaeresis = 0x0d6,
1473 Key_multiply = 0x0d7,
1474 Key_Ooblique = 0x0d8,
1475 Key_Ugrave = 0x0d9,
1476 Key_Uacute = 0x0da,
1477 Key_Ucircumflex = 0x0db,
1478 Key_Udiaeresis = 0x0dc,
1479 Key_Yacute = 0x0dd,
1480 Key_THORN = 0x0de,
1481 Key_ssharp = 0x0df,
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,
1486
1487
1488
1489
1490
1491
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,
1498
1499
1500 Key_Mode_switch = 0x0100117e,
1501
1502
1503
1504 Key_Kanji = 0x01001121,
1505 Key_Muhenkan = 0x01001122,
1506
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,
1528
1529 Key_Hangul_Jeonja = 0x01001138,
1530 Key_Hangul_Banja = 0x01001139,
1531 Key_Hangul_PreHanja = 0x0100113a,
1532 Key_Hangul_PostHanja = 0x0100113b,
1533
1534
1535
1536 Key_Hangul_Special = 0x0100113f,
1537
1538
1539
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,
1559
1560
1561
1562 Key_Back = 0x01000061,
1563 Key_Forward = 0x01000062,
1564 Key_Stop = 0x01000063,
1565 Key_Refresh = 0x01000064,
1566
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,
1575
1576 Key_MediaPlay = 0x01000080,
1577 Key_MediaStop = 0x01000081,
1578 Key_MediaPrevious = 0x01000082,
1579
1580
1581
1582 Key_MediaNext = 0x01000083,
1583 Key_MediaRecord = 0x01000084,
1584
1585 Key_HomePage = 0x01000090,
1586 Key_Favorites = 0x01000091,
1587 Key_Search = 0x01000092,
1588 Key_Standby = 0x01000093,
1589 Key_OpenUrl = 0x01000094,
1590
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,
1609
1610 Key_MediaLast = 0x0100ffff,
1611
1612
1613 Key_Select = 0x01010000,
1614 Key_Yes = 0x01010001,
1615 Key_No = 0x01010002,
1616
1617
1618 Key_Cancel = 0x01020001,
1619 Key_Printer = 0x01020002,
1620 Key_Execute = 0x01020003,
1621 Key_Sleep = 0x01020004,
1622 Key_Play = 0x01020005,
1623 Key_Zoom = 0x01020006,
1624
1625
1626
1627
1628
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,
1636
1637 Key_unknown = 0x01ffffff
1638 };
1639
1640 enum ArrowType {
1641 NoArrow,
1642 UpArrow,
1643 DownArrow,
1644 LeftArrow,
1645 RightArrow
1646 };
1647
1648 enum PenStyle {
1649 NoPen,
1650 SolidLine,
1651 DashLine,
1652 DotLine,
1653 DashDotLine,
1654 DashDotDotLine,
1655 CustomDashLine
1656
1657 , MPenStyle = 0x0f
1658
1659 };
1660
1661 enum PenCapStyle {
1662 FlatCap = 0x00,
1663 SquareCap = 0x10,
1664 RoundCap = 0x20,
1665 MPenCapStyle = 0x30
1666 };
1667
1668 enum PenJoinStyle {
1669 MiterJoin = 0x00,
1670 BevelJoin = 0x40,
1671 RoundJoin = 0x80,
1672 SvgMiterJoin = 0x100,
1673 MPenJoinStyle = 0x1c0
1674 };
1675
1676 enum BrushStyle {
1677 NoBrush,
1678 SolidPattern,
1679 Dense1Pattern,
1680 Dense2Pattern,
1681 Dense3Pattern,
1682 Dense4Pattern,
1683 Dense5Pattern,
1684 Dense6Pattern,
1685 Dense7Pattern,
1686 HorPattern,
1687 VerPattern,
1688 CrossPattern,
1689 BDiagPattern,
1690 FDiagPattern,
1691 DiagCrossPattern,
1692 LinearGradientPattern,
1693 RadialGradientPattern,
1694 ConicalGradientPattern,
1695 TexturePattern = 24
1696
1697
1698
1699 };
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"
1701 enum UIEffect {
1702 UI_General,
1703 UI_AnimateMenu,
1704 UI_FadeMenu,
1705 UI_AnimateCombo,
1706 UI_AnimateTooltip,
1707 UI_FadeTooltip,
1708 UI_AnimateToolBox
1709 };
1710
1711 enum CursorShape {
1712 ArrowCursor,
1713 UpArrowCursor,
1714 CrossCursor,
1715 WaitCursor,
1716 IBeamCursor,
1717 SizeVerCursor,
1718 SizeHorCursor,
1719 SizeBDiagCursor,
1720 SizeFDiagCursor,
1721 SizeAllCursor,
1722 BlankCursor,
1723 SplitVCursor,
1724 SplitHCursor,
1725 PointingHandCursor,
1726 ForbiddenCursor,
1727 WhatsThisCursor,
1728 BusyCursor,
1729 OpenHandCursor,
1730 ClosedHandCursor,
1731 LastCursor = ClosedHandCursor,
1732 BitmapCursor = 24,
1733 CustomCursor = 25
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"
1735 };
1736
1737 enum TextFormat {
1738 PlainText,
1739 RichText,
1740 AutoText,
1741 LogText
1742 };
1743
1744 enum AspectRatioMode {
1745 IgnoreAspectRatio,
1746 KeepAspectRatio,
1747 KeepAspectRatioByExpanding
1748
1749
1750
1751
1752
1753 };
1754
1755
1756
1757
1758 enum AnchorAttribute {
1759 AnchorName,
1760 AnchorHref
1761 };
1762
1763 enum DockWidgetArea {
1764 LeftDockWidgetArea = 0x1,
1765 RightDockWidgetArea = 0x2,
1766 TopDockWidgetArea = 0x4,
1767 BottomDockWidgetArea = 0x8,
1768
1769 DockWidgetArea_Mask = 0xf,
1770 AllDockWidgetAreas = DockWidgetArea_Mask,
1771 NoDockWidgetArea = 0
1772 };
1773 enum DockWidgetAreaSizes {
1774 NDockWidgetAreas = 4
1775 };
1776
1777 typedef QFlags<DockWidgetArea> DockWidgetAreas;
1778
1779 enum ToolBarArea {
1780 LeftToolBarArea = 0x1,
1781 RightToolBarArea = 0x2,
1782 TopToolBarArea = 0x4,
1783 BottomToolBarArea = 0x8,
1784
1785 ToolBarArea_Mask = 0xf,
1786 AllToolBarAreas = ToolBarArea_Mask,
1787 NoToolBarArea = 0
1788 };
1789
1790 enum ToolBarAreaSizes {
1791 NToolBarAreas = 4
1792 };
1793
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"
1796 enum DateFormat {
1797 TextDate,
1798 ISODate,
1799 SystemLocaleDate,
1800 LocalDate = SystemLocaleDate,
1801 LocaleDate
1802 };
1803
1804 enum TimeSpec {
1805 LocalTime,
1806 UTC
1807 };
1808
1809 enum DayOfWeek {
1810 Monday = 1,
1811 Tuesday = 2,
1812 Wednesday = 3,
1813 Thursday = 4,
1814 Friday = 5,
1815 Saturday = 6,
1816 Sunday = 7
1817 };
1818
1819 enum ScrollBarPolicy {
1820 ScrollBarAsNeeded,
1821 ScrollBarAlwaysOff,
1822 ScrollBarAlwaysOn
1823 };
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 {
1826 CaseInsensitive,
1827 CaseSensitive
1828 };
1829
1830 enum Corner {
1831 TopLeftCorner = 0x00000,
1832 TopRightCorner = 0x00001,
1833 BottomLeftCorner = 0x00002,
1834 BottomRightCorner = 0x00003
1835
1836
1837
1838
1839
1840
1841 };
1842
1843 enum ConnectionType {
1844 AutoConnection,
1845 DirectConnection,
1846 QueuedConnection,
1847 AutoCompatConnection,
1848 BlockingQueuedConnection
1849 };
1850
1851 enum ShortcutContext {
1852 WidgetShortcut,
1853 WindowShortcut,
1854 ApplicationShortcut
1855 };
1856
1857 enum FillRule {
1858 OddEvenFill,
1859 WindingFill
1860 };
1861
1862 enum MaskMode {
1863 MaskInColor,
1864 MaskOutColor
1865 };
1866
1867 enum ClipOperation {
1868 NoClip,
1869 ReplaceClip,
1870 IntersectClip,
1871 UniteClip
1872 };
1873
1874
1875 enum ItemSelectionMode {
1876 ContainsItemShape = 0x0,
1877 IntersectsItemShape = 0x1,
1878 ContainsItemBoundingRect = 0x2,
1879 IntersectsItemBoundingRect = 0x3
1880 };
1881
1882 enum TransformationMode {
1883 FastTransformation,
1884 SmoothTransformation
1885 };
1886
1887 enum Axis {
1888 XAxis,
1889 YAxis,
1890 ZAxis
1891 };
1892
1893 enum FocusReason {
1894 MouseFocusReason,
1895 TabFocusReason,
1896 BacktabFocusReason,
1897 ActiveWindowFocusReason,
1898 PopupFocusReason,
1899 ShortcutFocusReason,
1900 MenuBarFocusReason,
1901 OtherFocusReason,
1902 NoFocusReason
1903 };
1904
1905 enum ContextMenuPolicy {
1906 NoContextMenu,
1907 DefaultContextMenu,
1908 ActionsContextMenu,
1909 CustomContextMenu,
1910 PreventContextMenu
1911 };
1912
1913 enum InputMethodQuery {
1914 ImMicroFocus,
1915 ImFont,
1916 ImCursorPosition,
1917 ImSurroundingText,
1918 ImCurrentSelection
1919 };
1920
1921 enum ToolButtonStyle {
1922 ToolButtonIconOnly,
1923 ToolButtonTextOnly,
1924 ToolButtonTextBesideIcon,
1925 ToolButtonTextUnderIcon
1926 };
1927
1928 enum LayoutDirection {
1929 LeftToRight,
1930 RightToLeft
1931 };
1932
1933 enum DropAction {
1934 CopyAction = 0x1,
1935 MoveAction = 0x2,
1936 LinkAction = 0x4,
1937 ActionMask = 0xff,
1938 TargetMoveAction = 0x8002,
1939 IgnoreAction = 0x0
1940 };
1941 typedef QFlags<DropAction> DropActions;
1942
1943 enum CheckState {
1944 Unchecked,
1945 PartiallyChecked,
1946 Checked
1947 };
1948
1949 enum ItemDataRole {
1950 DisplayRole = 0,
1951 DecorationRole = 1,
1952 EditRole = 2,
1953 ToolTipRole = 3,
1954 StatusTipRole = 4,
1955 WhatsThisRole = 5,
1956
1957 FontRole = 6,
1958 TextAlignmentRole = 7,
1959 BackgroundColorRole = 8,
1960 BackgroundRole = 8,
1961 TextColorRole = 9,
1962 ForegroundRole = 9,
1963 CheckStateRole = 10,
1964
1965 AccessibleTextRole = 11,
1966 AccessibleDescriptionRole = 12,
1967
1968 SizeHintRole = 13,
1969
1970 UserRole = 32
1971 };
1972
1973 enum ItemFlag {
1974 ItemIsSelectable = 1,
1975 ItemIsEditable = 2,
1976 ItemIsDragEnabled = 4,
1977 ItemIsDropEnabled = 8,
1978 ItemIsUserCheckable = 16,
1979 ItemIsEnabled = 32,
1980 ItemIsTristate = 64
1981 };
1982 typedef QFlags<ItemFlag> ItemFlags;
1983
1984 enum MatchFlag {
1985 MatchExactly = 0,
1986 MatchContains = 1,
1987 MatchStartsWith = 2,
1988 MatchEndsWith = 3,
1989 MatchRegExp = 4,
1990 MatchWildcard = 5,
1991 MatchFixedString = 8,
1992 MatchCaseSensitive = 16,
1993 MatchWrap = 32,
1994 MatchRecursive = 64
1995 };
1996 typedef QFlags<MatchFlag> MatchFlags;
1997
1998
1999
2000
2001
2002
2003 typedef unsigned long HANDLE;
2004
2005
2006
2007 typedef WindowFlags WFlags;
2008
2009 enum WindowModality {
2010 NonModal,
2011 WindowModal,
2012 ApplicationModal
2013 };
2014
2015 enum TextInteractionFlag {
2016 NoTextInteraction = 0,
2017 TextSelectableByMouse = 1,
2018 TextSelectableByKeyboard = 2,
2019 LinksAccessibleByMouse = 4,
2020 LinksAccessibleByKeyboard = 8,
2021 TextEditable = 16,
2022
2023 TextEditorInteraction = TextSelectableByMouse | TextSelectableByKeyboard | TextEditable,
2024 TextBrowserInteraction = TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard
2025 };
2026 typedef QFlags<TextInteractionFlag> TextInteractionFlags;
2027
2028 enum EventPriority {
2029 HighEventPriority = 1,
2030 NormalEventPriority = 0,
2031 LowEventPriority = -1
2032 };
2033 }
2034
2035
2036
2037
2038
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; }
2052
2053 typedef bool (*qInternalCallback)(void **);
2054
2055 class QInternal {
2056 public:
2057 enum PaintDeviceFlags {
2058 UnknownDevice = 0x00,
2059 Widget = 0x01,
2060 Pixmap = 0x02,
2061 Image = 0x03,
2062 Printer = 0x04,
2063 Picture = 0x05,
2064 Pbuffer = 0x06,
2065 FramebufferObject = 0x07,
2066 CustomRaster = 0x08
2067 };
2068 enum RelayoutType {
2069 RelayoutNormal,
2070 RelayoutDragging,
2071 RelayoutDropped
2072 };
2073
2074
2075 enum Callback {
2076 ConnectCallback,
2077 DisconnectCallback,
2078 AdoptCurrentThread,
2079 EventNotifyCallback,
2080 LastCallback
2081 };
2082
2083 enum InternalFunction {
2084 CreateThreadForAdoption,
2085 RefAdoptedThread,
2086 DerefAdoptedThread,
2087 SetCurrentThreadToMainThread,
2088 LastInternalFunction
2089 };
2090
2091 enum DockPosition {
2092 LeftDock,
2093 RightDock,
2094 TopDock,
2095 BottomDock,
2096 DockCount
2097 };
2098
2099 static bool registerCallback(Callback, qInternalCallback);
2100 static bool unregisterCallback(Callback, qInternalCallback);
2101
2102 static bool activateCallbacks(Callback, void **);
2103 static bool callFunction(InternalFunction func, void **);
2104 };
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"
2106
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
2109
2110
2111
2112 typedef QtValidLicenseForCoreModule QtCoreModule;
2113
2114 class QString;
2115
2116 class QByteArray;
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; }
2120
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"
2124 class QObject;
2125 class QMetaMethod;
2126 class QMetaEnum;
2127 class QMetaProperty;
2128 class QMetaClassInfo;
2129
2130
2131 class QGenericArgument
2132 {
2133 public:
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; }
2138
2139 private:
2140 const void *_data;
2141 const char *_name;
2142 };
2143
2144 class QGenericReturnArgument: public QGenericArgument
2145 {
2146 public:
2147 inline QGenericReturnArgument(const char *aName = 0, void *aData = 0)
2148 : QGenericArgument(aName, aData)
2149 {}
2150 };
2151
2152 template <class T>
2153 class QArgument: public QGenericArgument
2154 {
2155 public:
2156 inline QArgument(const char *aName, const T &aData)
2157 : QGenericArgument(aName, static_cast<const void *>(&aData))
2158 {}
2159 };
2160
2161
2162 template <typename T>
2163 class QReturnArgument: public QGenericReturnArgument
2164 {
2165 public:
2166 inline QReturnArgument(const char *aName, T &aData)
2167 : QGenericReturnArgument(aName, static_cast<void *>(&aData))
2168 {}
2169 };
2170
2171 struct QMetaObject
2172 {
2173 const char *className() const;
2174 const QMetaObject *superClass() const;
2175
2176 QObject *cast(QObject *obj) const;
2177
2178
2179
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;
2184
2185
2186 int methodOffset() const;
2187 int enumeratorOffset() const;
2188 int propertyOffset() const;
2189 int classInfoOffset() const;
2190
2191 int methodCount() const;
2192 int enumeratorCount() const;
2193 int propertyCount() const;
2194 int classInfoCount() const;
2195
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;
2202
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;
2208
2209 static bool checkConnectArgs(const char *signal, const char *method);
2210 static QByteArray normalizedSignature(const char *method);
2211 static QByteArray normalizedType(const char *type);
2212
2213
2214 static bool connect(const QObject *sender, int signal_index,
2215 const QObject *receiver, int method_index,
2216 int type = 0, int *types = 0);
2217
2218 static bool disconnect(const QObject *sender, int signal_index,
2219 const QObject *receiver, int method_index);
2220
2221 static void connectSlotsByName(QObject *o);
2222
2223
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);
2228
2229 static void addGuard(QObject **ptr);
2230 static void removeGuard(QObject **ptr);
2231 static void changeGuard(QObject **ptr, QObject *o);
2232
2233 static bool invokeMethod(QObject *obj, const char *member,
2234 Qt::ConnectionType,
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());
2246
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())
2259 {
2260 return invokeMethod(obj, member, Qt::AutoConnection, ret, val0, val1, val2, val3,
2261 val4, val5, val6, val7, val8, val9);
2262 }
2263
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())
2276 {
2277 return invokeMethod(obj, member, type, QGenericReturnArgument(), val0, val1, val2,
2278 val3, val4, val5, val6, val7, val8, val9);
2279 }
2280
2281
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())
2293 {
2294 return invokeMethod(obj, member, Qt::AutoConnection, QGenericReturnArgument(), val0,
2295 val1, val2, val3, val4, val5, val6, val7, val8, val9);
2296 }
2297
2298 enum Call {
2299 InvokeMetaMethod,
2300 ReadProperty,
2301 WriteProperty,
2302 ResetProperty,
2303 QueryPropertyDesignable,
2304 QueryPropertyScriptable,
2305 QueryPropertyStored,
2306 QueryPropertyEditable,
2307 QueryPropertyUser
2308 };
2309
2310
2311
2312
2313
2314 struct {
2315 const QMetaObject *superdata;
2316 const char *stringdata;
2317 const uint *data;
2318 const QMetaObject **extradata;
2319 } d;
2320 };
2321
2322 inline const char *QMetaObject::className() const
2323 { return d.stringdata; }
2324
2325 inline const QMetaObject *QMetaObject::superClass() const
2326 { return d.superdata; }
2327
2328
2329
2330
2331
2332
2333
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
2336
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
2345
2346
2347
2348 typedef QtValidLicenseForCoreModule QtCoreModule;
2349
2350 class QString;
2351
2352 struct QLatin1Char
2353 {
2354 public:
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)); }
2358
2359 private:
2360 char ch;
2361 };
2362
2363
2364 class QChar {
2365 public:
2366 QChar();
2367
2368 QChar(char c);
2369 QChar(uchar c);
2370
2371 QChar(QLatin1Char ch);
2372 QChar(uchar c, uchar r);
2373 inline QChar(ushort rc) : ucs(rc){}
2374 QChar(short rc);
2375 QChar(uint rc);
2376 QChar(int rc);
2377 enum SpecialCharacter {
2378 Null = 0x0000,
2379 Nbsp = 0x00a0,
2380 ReplacementCharacter = 0xfffd,
2381 ObjectReplacementCharacter = 0xfffc,
2382 ByteOrderMark = 0xfeff,
2383 ByteOrderSwapped = 0xfffe,
2384
2385
2386
2387
2388
2389
2390
2391 ParagraphSeparator = 0x2029,
2392 LineSeparator = 0x2028
2393 };
2394 QChar(SpecialCharacter sc);
2395
2396
2397
2398 enum Category
2399 {
2400 NoCategory,
2401
2402 Mark_NonSpacing,
2403 Mark_SpacingCombining,
2404 Mark_Enclosing,
2405
2406 Number_DecimalDigit,
2407 Number_Letter,
2408 Number_Other,
2409
2410 Separator_Space,
2411 Separator_Line,
2412 Separator_Paragraph,
2413
2414 Other_Control,
2415 Other_Format,
2416 Other_Surrogate,
2417 Other_PrivateUse,
2418 Other_NotAssigned,
2419
2420 Letter_Uppercase,
2421 Letter_Lowercase,
2422 Letter_Titlecase,
2423 Letter_Modifier,
2424 Letter_Other,
2425
2426 Punctuation_Connector,
2427 Punctuation_Dash,
2428 Punctuation_Open,
2429 Punctuation_Close,
2430 Punctuation_InitialQuote,
2431 Punctuation_FinalQuote,
2432 Punctuation_Other,
2433
2434 Symbol_Math,
2435 Symbol_Currency,
2436 Symbol_Modifier,
2437 Symbol_Other,
2438
2439 Punctuation_Dask = Punctuation_Dash
2440 };
2441
2442 enum Direction
2443 {
2444 DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS, DirWS, DirON,
2445 DirLRE, DirLRO, DirAL, DirRLE, DirRLO, DirPDF, DirNSM, DirBN
2446 };
2447
2448 enum Decomposition
2449 {
2450 NoDecomposition,
2451 Canonical,
2452 Font,
2453 NoBreak,
2454 Initial,
2455 Medial,
2456 Final,
2457 Isolated,
2458 Circle,
2459 Super,
2460 Sub,
2461 Vertical,
2462 Wide,
2463 Narrow,
2464 Small,
2465 Square,
2466 Compat,
2467 Fraction
2468
2469
2470
2471
2472 };
2473
2474 enum Joining
2475 {
2476 OtherJoining, Dual, Right, Center
2477 };
2478
2479 enum CombiningClass
2480 {
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,
2489
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,
2498
2499 Combining_DoubleBelow = 233,
2500 Combining_DoubleAbove = 234,
2501 Combining_IotaSubscript = 240
2502 };
2503
2504 enum UnicodeVersion {
2505 Unicode_Unassigned,
2506 Unicode_1_1,
2507 Unicode_2_0,
2508 Unicode_2_1_2,
2509 Unicode_3_0,
2510 Unicode_3_1,
2511 Unicode_3_2,
2512 Unicode_4_0,
2513 Unicode_4_1,
2514 Unicode_5_0
2515 };
2516
2517
2518 Category category() const;
2519 Direction direction() const;
2520 Joining joining() const;
2521 bool hasMirrored() const;
2522 unsigned char combiningClass() const;
2523
2524 QChar mirroredChar() const;
2525 QString decomposition() const;
2526 Decomposition decompositionTag() const;
2527
2528 int digitValue() const;
2529 QChar toLower() const;
2530 QChar toUpper() const;
2531 QChar toTitleCase() const;
2532 QChar toCaseFolded() const;
2533
2534 UnicodeVersion unicodeVersion() const;
2535
2536 const char toAscii() const;
2537 inline const char toLatin1() const;
2538 inline const ushort unicode() const { return ucs; }
2539
2540
2541
2542 inline ushort &unicode() { return ucs; }
2543
2544
2545 static QChar fromAscii(char c);
2546 static QChar fromLatin1(char c);
2547
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; }
2561
2562 inline bool isHighSurrogate() const {
2563 return ((ucs & 0xfc00) == 0xd800);
2564 }
2565 inline bool isLowSurrogate() const {
2566 return ((ucs & 0xfc00) == 0xdc00);
2567 }
2568
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);
2573
2574 static inline uint surrogateToUcs4(ushort high, ushort low) {
2575 return (uint(high)<<10) + low - 0x35fdc00;
2576 }
2577 static inline uint surrogateToUcs4(QChar high, QChar low) {
2578 return (uint(high.ucs)<<10) + low.ucs - 0x35fdc00;
2579 }
2580 static inline ushort highSurrogate(uint ucs4) {
2581 return (ucs4>>10) + 0xd7c0;
2582 }
2583 static inline ushort lowSurrogate(uint ucs4) {
2584 return ucs4%0x400 + 0xdc00;
2585 }
2586
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);
2595
2596 static uint mirroredChar(uint ucs4);
2597 static ushort mirroredChar(ushort ucs2);
2598 static Decomposition decompositionTag(uint ucs4);
2599
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);
2610
2611 static UnicodeVersion unicodeVersion(uint ucs4);
2612 static UnicodeVersion unicodeVersion(ushort ucs2);
2613
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"
2616 private:
2617
2618
2619
2620
2621 ushort ucs;
2622 } ;
2623
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"; } };
2625
2626 inline QChar::QChar() : ucs(0) {}
2627
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))); }
2630
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()) {}
2637
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); }
2642
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(); }
2649
2650
2651 QDataStream &operator<<(QDataStream &, const QChar &);
2652 QDataStream &operator>>(QDataStream &, QChar &);
2653
2654
2655
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
2671
2672
2673
2674 inline int q_atomic_test_and_set_int(volatile int *ptr, int expected, int newval)
2675 {
2676 if (*ptr == expected) {
2677 *ptr = newval;
2678 return 1;
2679 }
2680 return 0;
2681 }
2682
2683 inline int q_atomic_test_and_set_acquire_int(volatile int *ptr, int expected, int newval)
2684 {
2685 return q_atomic_test_and_set_int(ptr, expected, newval);
2686 }
2687
2688 inline int q_atomic_test_and_set_release_int(volatile int *ptr, int expected, int newval)
2689 {
2690 return q_atomic_test_and_set_int(ptr, expected, newval);
2691 }
2692
2693 inline int q_atomic_test_and_set_ptr(volatile void *ptr, void *expected, void *newval)
2694 {
2695 if (*reinterpret_cast<void * volatile *>(ptr) == expected) {
2696 *reinterpret_cast<void * volatile *>(ptr) = newval;
2697 return 1;
2698 }
2699 return 0;
2700 }
2701
2702 inline int q_atomic_increment(volatile int *ptr)
2703 { return ++(*ptr); }
2704
2705 inline int q_atomic_decrement(volatile int *ptr)
2706 { return --(*ptr); }
2707
2708 inline int q_atomic_set_int(volatile int *ptr, int newval)
2709 {
2710 register int ret = *ptr;
2711 *ptr = newval;
2712 return ret;
2713 }
2714
2715 inline void *q_atomic_set_ptr(volatile void *ptr, void *newval)
2716 {
2717 register void *ret = *reinterpret_cast<void * volatile *>(ptr);
2718 *reinterpret_cast<void * volatile *>(ptr) = newval;
2719 return ret;
2720 }
2721
2722 inline int q_atomic_fetch_and_add_int(volatile int *ptr, int value)
2723 {
2724 int originalValue = *ptr;
2725 *ptr += value;
2726 return originalValue;
2727 }
2728
2729 inline int q_atomic_fetch_and_add_acquire_int(volatile int *ptr, int value)
2730 {
2731 return q_atomic_fetch_and_add_int(ptr, value);
2732 }
2733
2734 inline int q_atomic_fetch_and_add_release_int(volatile int *ptr, int value)
2735 {
2736 return q_atomic_fetch_and_add_int(ptr, value);
2737 }
2738
2739
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
2742
2743
2744
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
2747
2748
2749
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 {
2753 volatile int value;
2754
2755 void init(int x = 0)
2756 { value = x; }
2757
2758 inline bool ref()
2759 { return q_atomic_increment(&value) != 0; }
2760
2761 inline bool deref()
2762 { return q_atomic_decrement(&value) != 0; }
2763
2764 inline bool operator==(int x) const
2765 { return value == x; }
2766
2767 inline bool operator!=(int x) const
2768 { return value != x; }
2769
2770 inline bool operator!() const
2771 { return value == 0; }
2772
2773 inline operator int() const
2774 { return value; }
2775
2776 inline QBasicAtomic &operator=(int x)
2777 {
2778 value = x;
2779 return *this;
2780 }
2781
2782 inline bool testAndSet(int expected, int newval)
2783 { return q_atomic_test_and_set_int(&value, expected, newval) != 0; }
2784
2785 inline bool testAndSetAcquire(int expected, int newval)
2786 { return q_atomic_test_and_set_acquire_int(&value, expected, newval) != 0; }
2787
2788 inline bool testAndSetRelease(int expected, int newval)
2789 { return q_atomic_test_and_set_release_int(&value, expected, newval) != 0; }
2790
2791 inline int exchange(int newval)
2792 { return q_atomic_set_int(&value, newval); }
2793
2794 inline int fetchAndAdd(int aValue)
2795 { return q_atomic_fetch_and_add_int(&value, aValue); }
2796
2797 inline int fetchAndAddAcquire(int aValue)
2798 { return q_atomic_fetch_and_add_acquire_int(&value, aValue); }
2799
2800 inline int fetchAndAddRelease(int aValue)
2801 { return q_atomic_fetch_and_add_release_int(&value, aValue); }
2802 };
2803
2804 template <typename T>
2805 struct QBasicAtomicPointer
2806 {
2807 volatile T *value;
2808
2809 void init(T *t = 0)
2810 { value = t; }
2811
2812 inline bool operator==(T *t) const
2813 { return value == t; }
2814
2815 inline bool operator!=(T *t) const
2816 { return !operator==(t); }
2817
2818 inline bool operator!() const
2819 { return operator==(0); }
2820
2821 inline operator T *() const
2822 { return const_cast<T *>(value); }
2823
2824 inline T *operator->() const
2825 { return const_cast<T *>(value); }
2826
2827 inline QBasicAtomicPointer<T> &operator=(T *t)
2828 {
2829 value = t;
2830 return *this;
2831 }
2832
2833 inline bool testAndSet(T *expected, T *newval)
2834 { return q_atomic_test_and_set_ptr(&value, expected, newval); }
2835
2836 inline T *exchange(T * newval)
2837 { return static_cast<T *>(q_atomic_set_ptr(&value, newval)); }
2838 };
2839
2840
2841
2842
2843
2844 template <typename T>
2845 inline T qAtomicSetPtr(volatile T *ptr, T newval)
2846 { return static_cast<T>(q_atomic_set_ptr(ptr, newval)); }
2847
2848
2849 class QAtomic : public QBasicAtomic
2850 {
2851 public:
2852 inline QAtomic(int x = 0)
2853 { init(x); }
2854 inline QAtomic(const QAtomic &copy)
2855 { init(copy); }
2856
2857 inline QAtomic &operator=(int x)
2858 {
2859 (void) QBasicAtomic::operator=(x);
2860 return *this;
2861 }
2862
2863 inline QAtomic &operator=(const QAtomic &copy)
2864 {
2865 (void) QBasicAtomic::operator=(copy);
2866 return *this;
2867 }
2868 };
2869
2870
2871 template <typename T>
2872 class QAtomicPointer : public QBasicAtomicPointer<T>
2873 {
2874 public:
2875 inline QAtomicPointer(T *t = 0)
2876 { init(t); }
2877 inline QAtomicPointer(const QAtomicPointer<T> &copy)
2878 { init(copy); }
2879
2880 inline QAtomicPointer<T> &operator=(T *t)
2881 {
2882 (void) QBasicAtomicPointer<T>::operator=(t);
2883 return *this;
2884 }
2885
2886 inline QAtomicPointer<T> &operator=(const QAtomicPointer<T> &copy)
2887 {
2888 (void) QBasicAtomicPointer<T>::operator=(copy);
2889 return *this;
2890 }
2891 };
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)
2895 {
2896 if (d == x)
2897 return;
2898 x->ref.ref();
2899 if (!d->ref.deref())
2900 delete d;
2901 d = x;
2902 }
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)
2906 {
2907 if (d->ref == 1)
2908 return;
2909 T *x = d;
2910 d = new T(*d);
2911 if (!x->ref.deref())
2912 delete x;
2913 }
2914
2915
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
2918
2919 # 1 "/usr/include/string.h" 1 3 4
2920
2921
2922
2923
2924
2925
2926
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
2930
2931
2932
2933
2934
2935
2936
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
2940
2941
2942
2943
2944
2945
2946
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
2950
2951
2952
2953
2954
2955
2956
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
2964
2965
2966
2967
2968
2969
2970
2971 # 1 "/usr/include/gentoo-multilib/amd64/gnu/stubs.h" 1 3 4
2972
2973
2974
2975 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2976
2977
2978
2979
2980
2981
2982
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
2986
2987
2988
2989
2990 # 1 "/usr/include/gnu/stubs-64.h" 1 3 4
2991
2992
2993
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
3001
3002 extern "C" {
3003
3004
3005
3006
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
3009
3010
3011
3012
3013 extern void *memcpy (void *__restrict __dest,
3014 __const void *__restrict __src, size_t __n)
3015 throw () __attribute__ ((__nonnull__ (1, 2)));
3016
3017
3018 extern void *memmove (void *__dest, __const void *__src, size_t __n)
3019 throw () __attribute__ ((__nonnull__ (1, 2)));
3020
3021
3022
3023
3024
3025
3026 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
3027 int __c, size_t __n)
3028 throw () __attribute__ ((__nonnull__ (1, 2)));
3029
3030
3031
3032
3033
3034 extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3035
3036
3037 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
3038 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3039
3040
3041 extern void *memchr (__const void *__s, int __c, size_t __n)
3042 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3043
3044
3045
3046
3047
3048 extern void *rawmemchr (__const void *__s, int __c)
3049 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3050
3051
3052 extern void *memrchr (__const void *__s, int __c, size_t __n)
3053 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3054
3055
3056
3057
3058
3059 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
3060 throw () __attribute__ ((__nonnull__ (1, 2)));
3061
3062 extern char *strncpy (char *__restrict __dest,
3063 __const char *__restrict __src, size_t __n)
3064 throw () __attribute__ ((__nonnull__ (1, 2)));
3065
3066
3067 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
3068 throw () __attribute__ ((__nonnull__ (1, 2)));
3069
3070 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
3071 size_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
3072
3073
3074 extern int strcmp (__const char *__s1, __const char *__s2)
3075 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3076
3077 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
3078 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3079
3080
3081 extern int strcoll (__const char *__s1, __const char *__s2)
3082 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3083
3084 extern size_t strxfrm (char *__restrict __dest,
3085 __const char *__restrict __src, size_t __n)
3086 throw () __attribute__ ((__nonnull__ (2)));
3087
3088
3089
3090
3091
3092
3093 # 1 "/usr/include/xlocale.h" 1 3 4
3094
3095
3096
3097
3098
3099
3100
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
3104 {
3105
3106 struct locale_data *__locales[13];
3107
3108
3109 const unsigned short int *__ctype_b;
3110 const int *__ctype_tolower;
3111 const int *__ctype_toupper;
3112
3113
3114 const char *__names[13];
3115 } *__locale_t;
3116 # 9 "/usr/include/xlocale.h" 2 3 4
3117 # 119 "/usr/include/gentoo-multilib/amd64/string.h" 2 3 4
3118
3119
3120 extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
3121 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
3122
3123 extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
3124 __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4)));
3125
3126
3127
3128
3129 extern char *strdup (__const char *__s)
3130 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
3131
3132
3133
3134
3135
3136
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
3140
3141
3142 extern char *strchr (__const char *__s, int __c)
3143 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3144
3145 extern char *strrchr (__const char *__s, int __c)
3146 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3147
3148
3149
3150
3151
3152 extern char *strchrnul (__const char *__s, int __c)
3153 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3154
3155
3156
3157
3158
3159 extern size_t strcspn (__const char *__s, __const char *__reject)
3160 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3161
3162
3163 extern size_t strspn (__const char *__s, __const char *__accept)
3164 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3165
3166 extern char *strpbrk (__const char *__s, __const char *__accept)
3167 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3168
3169 extern char *strstr (__const char *__haystack, __const char *__needle)
3170 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3171
3172
3173
3174 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
3175 throw () __attribute__ ((__nonnull__ (2)));
3176
3177
3178
3179
3180 extern char *__strtok_r (char *__restrict __s,
3181 __const char *__restrict __delim,
3182 char **__restrict __save_ptr)
3183 throw () __attribute__ ((__nonnull__ (2, 3)));
3184
3185 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
3186 char **__restrict __save_ptr)
3187 throw () __attribute__ ((__nonnull__ (2, 3)));
3188
3189
3190
3191
3192 extern char *strcasestr (__const char *__haystack, __const char *__needle)
3193 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3194
3195
3196
3197
3198
3199
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)));
3203
3204
3205
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)));
3212
3213
3214
3215
3216
3217 extern size_t strlen (__const char *__s)
3218 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3219
3220
3221
3222
3223
3224 extern size_t strnlen (__const char *__string, size_t __maxlen)
3225 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3226
3227
3228
3229
3230
3231 extern char *strerror (int __errnum) throw ();
3232
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)));
3236
3237
3238
3239
3240
3241 extern char *strerror_l (int __errnum, __locale_t __l) throw ();
3242
3243
3244
3245
3246
3247 extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3248
3249
3250
3251 extern void bcopy (__const void *__src, void *__dest, size_t __n)
3252 throw () __attribute__ ((__nonnull__ (1, 2)));
3253
3254
3255 extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3256
3257
3258 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
3259 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3260
3261
3262 extern char *index (__const char *__s, int __c)
3263 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3264
3265
3266 extern char *rindex (__const char *__s, int __c)
3267 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3268
3269
3270
3271 extern int ffs (int __i) throw () __attribute__ ((__const__));
3272
3273
3274
3275
3276 extern int ffsl (long int __l) throw () __attribute__ ((__const__));
3277
3278 __extension__ extern int ffsll (long long int __ll)
3279 throw () __attribute__ ((__const__));
3280
3281
3282
3283
3284 extern int strcasecmp (__const char *__s1, __const char *__s2)
3285 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3286
3287
3288 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
3289 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3290
3291
3292
3293
3294
3295 extern int strcasecmp_l (__const char *__s1, __const char *__s2,
3296 __locale_t __loc)
3297 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
3298
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)));
3302
3303
3304
3305
3306
3307 extern char *strsep (char **__restrict __stringp,
3308 __const char *__restrict __delim)
3309 throw () __attribute__ ((__nonnull__ (1, 2)));
3310
3311
3312
3313
3314 extern int strverscmp (__const char *__s1, __const char *__s2)
3315 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3316
3317
3318 extern char *strsignal (int __sig) throw ();
3319
3320
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)));
3325
3326
3327
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)));
3334
3335
3336 extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1)));
3337
3338
3339 extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3340
3341
3342
3343
3344
3345
3346 extern char *basename (__const char *__filename) throw () __attribute__ ((__nonnull__ (1)));
3347 # 432 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
3348 }
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
3357
3358
3359
3360
3361
3362
3363
3364 typedef QtValidLicenseForCoreModule QtCoreModule;
3365
3366
3367
3368
3369
3370 char *qstrdup(const char *);
3371
3372 inline uint qstrlen(const char *str)
3373 { return str ? uint(strlen(str)) : 0; }
3374
3375 inline uint qstrnlen(const char *str, uint maxlen)
3376 {
3377 uint length = 0;
3378 if (str) {
3379 while (length < maxlen && *str++)
3380 length++;
3381 }
3382 return length;
3383 }
3384
3385 char *qstrcpy(char *dst, const char *src);
3386 char *qstrncpy(char *dst, const char *src, uint len);
3387
3388 int qstrcmp(const char *str1, const char *str2);
3389
3390 inline int qstrncmp(const char *str1, const char *str2, uint len)
3391 {
3392 return (str1 && str2) ? strncmp(str1, str2, len)
3393 : (str1 ? 1 : (str2 ? -1 : 0));
3394 }
3395 int qstricmp(const char *, const char *);
3396 int qstrnicmp(const char *, const char *, uint len);
3397
3398
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);
3403
3404 class QByteRef;
3405 class QString;
3406 class QDataStream;
3407 template <typename T> class QList;
3408
3409 class QByteArray
3410 {
3411 public:
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();
3418
3419 QByteArray &operator=(const QByteArray &);
3420 QByteArray &operator=(const char *str);
3421
3422 inline int size() const;
3423 bool isEmpty() const;
3424 void resize(int size);
3425
3426 QByteArray &fill(char c, int size = -1);
3427
3428 int capacity() const;
3429 void reserve(int size);
3430 void squeeze();
3431
3432 operator const char *() const;
3433 operator const void *() const;
3434 char *data();
3435 const char *data() const;
3436 inline const char *constData() const;
3437 inline void detach();
3438 bool isDetached() const;
3439 void clear();
3440
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);
3446
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;
3453
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;
3460
3461 QByteArray left(int len) const;
3462 QByteArray right(int len) const;
3463 QByteArray mid(int index, int len = -1) const;
3464
3465 bool startsWith(const QByteArray &a) const;
3466 bool startsWith(char c) const;
3467 bool startsWith(const char *c) const;
3468
3469 bool endsWith(const QByteArray &a) const;
3470 bool endsWith(char c) const;
3471 bool endsWith(const char *c) const;
3472
3473 void truncate(int pos);
3474 void chop(int n);
3475
3476 QByteArray toLower() const;
3477 QByteArray toUpper() const;
3478
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);
3506
3507 QList<QByteArray> split(char sep) const;
3508
3509
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);
3515
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;
3519
3520
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;
3527
3528
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;
3541
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);
3550
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);
3559
3560 typedef char *iterator;
3561 typedef const char *const_iterator;
3562 typedef iterator Iterator;
3563 typedef const_iterator ConstIterator;
3564 iterator begin();
3565 const_iterator begin() const;
3566 const_iterator constBegin() const;
3567 iterator end();
3568 const_iterator end() const;
3569 const_iterator constEnd() const;
3570
3571
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);
3580
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"
3585 private:
3586 operator QNoImplicitBoolCast() const;
3587 struct Data {
3588 QBasicAtomic ref;
3589 int alloc, size;
3590 char *data;
3591 char array[1];
3592 };
3593 static Data shared_null;
3594 static Data shared_empty;
3595 Data *d;
3596 QByteArray(Data *dd, int , int ) : d(dd) {}
3597 void realloc(int alloc);
3598 void expand(int i);
3599
3600 friend class QByteRef;
3601 friend class QString;
3602 public:
3603 typedef Data * DataPtr;
3604 inline DataPtr &data_ptr() { return d; }
3605 };
3606
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
3610 { return d->size; }
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
3620 { return d->data; }
3621 inline QByteArray::operator const void *() const
3622 { return d->data; }
3623 inline char *QByteArray::data()
3624 { detach(); return d->data; }
3625 inline const char *QByteArray::data() const
3626 { return d->data; }
3627 inline const char *QByteArray::constData() const
3628 { return d->data; }
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)
3634 { d->ref.ref(); }
3635
3636
3637
3638
3639
3640 inline int QByteArray::capacity() const
3641 { return d->alloc; }
3642
3643 inline void QByteArray::reserve(int asize)
3644 { if (d->ref != 1 || asize > d->alloc) realloc(asize); }
3645
3646 inline void QByteArray::squeeze()
3647 { if (d->size < d->alloc) realloc(d->size); }
3648
3649 class QByteRef {
3650 QByteArray &a;
3651 int i;
3652 inline QByteRef(QByteArray &array, int idx)
3653 : a(array),i(idx) {}
3654 friend class QByteArray;
3655 public:
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; }
3676 };
3677
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
3685 { return d->data; }
3686 inline QByteArray::const_iterator QByteArray::constBegin() const
3687 { return d->data; }
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)
3701 { append(c); }
3702 inline void QByteArray::push_back(const char *c)
3703 { append(c); }
3704 inline void QByteArray::push_back(const QByteArray &a)
3705 { append(a); }
3706 inline void QByteArray::push_front(char c)
3707 { prepend(c); }
3708 inline void QByteArray::push_front(const char *c)
3709 { prepend(c); }
3710 inline void QByteArray::push_front(const QByteArray &a)
3711 { prepend(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))); }
3778
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); }
3789
3790
3791
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; }
3797
3798
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"
3806
3807
3808 typedef QtValidLicenseForCoreModule QtCoreModule;
3809
3810 class QCharRef;
3811 class QRegExp;
3812 class QStringList;
3813 class QTextCodec;
3814 class QLatin1String;
3815 class QStringRef;
3816 template <typename T> class QVector;
3817
3818 class QString
3819 {
3820 public:
3821 inline QString();
3822 QString(const QChar *unicode, int size);
3823 QString(QChar c);
3824 QString(int size, QChar c);
3825 inline QString(const QLatin1String &latin1);
3826 inline QString(const QString &);
3827 inline ~QString();
3828 QString &operator=(QChar c);
3829 QString &operator=(const QString &);
3830 inline QString &operator=(const QLatin1String &);
3831
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);
3837
3838 QString &fill(QChar c, int size = -1);
3839 void truncate(int pos);
3840 void chop(int n);
3841
3842 int capacity() const;
3843 inline void reserve(int size);
3844 inline void squeeze() { if (d->size < d->alloc) realloc(); d->capacity = 0;}
3845
3846 inline const QChar *unicode() const;
3847 inline QChar *data();
3848 inline const QChar *data() const;
3849 inline const QChar *constData() const;
3850
3851 inline void detach();
3852 inline bool isDetached() const;
3853 void clear();
3854
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);
3860
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));
3902
3903 QString &vsprintf(const char *format, va_list ap);
3904 QString &sprintf(const char *format, ...)
3905
3906 __attribute__ ((format (printf, 2, 3)))
3907
3908 ;
3909
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;
3914
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;
3919
3920
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;
3925
3926
3927 enum SectionFlag {
3928 SectionDefault = 0x00,
3929 SectionSkipEmpty = 0x01,
3930 SectionIncludeLeadingSep = 0x02,
3931 SectionIncludeTrailingSep = 0x04,
3932 SectionCaseInsensitiveSeps = 0x08
3933 };
3934 typedef QFlags<SectionFlag> SectionFlags;
3935
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;
3938
3939 QString section(const QRegExp &reg, int start, int end = -1, SectionFlags flags = SectionDefault) const;
3940
3941
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));
3945
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;
3952
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));
3955
3956 QString toLower() const __attribute__ ((warn_unused_result));
3957 QString toUpper() const __attribute__ ((warn_unused_result));
3958 QString toCaseFolded() const __attribute__ ((warn_unused_result));
3959
3960 QString trimmed() const __attribute__ ((warn_unused_result));
3961 QString simplified() const __attribute__ ((warn_unused_result));
3962
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); }
3977
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);
3988
3989 QString &replace(const QRegExp &rx, const QString &after);
3990 inline QString &remove(const QRegExp &rx)
3991 { return replace(rx, QString()); }
3992
3993
3994 enum SplitBehavior { KeepEmptyParts, SkipEmptyParts };
3995
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));
4000
4001 QStringList split(const QRegExp &sep, SplitBehavior behavior = KeepEmptyParts) const __attribute__ ((warn_unused_result));
4002
4003
4004 enum NormalizationForm {
4005 NormalizationForm_D,
4006 NormalizationForm_C,
4007 NormalizationForm_KD,
4008 NormalizationForm_KC
4009 };
4010 QString normalized(NormalizationForm mode) const __attribute__ ((warn_unused_result));
4011 QString normalized(NormalizationForm mode, QChar::UnicodeVersion version) const __attribute__ ((warn_unused_result));
4012
4013 const ushort *utf16() const;
4014
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));
4020
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);
4028
4029 int toWCharArray(wchar_t *array) const;
4030 static QString fromWCharArray(const wchar_t *, int size = -1);
4031
4032 QString &setUnicode(const QChar *unicode, int size);
4033 inline QString &setUtf16(const ushort *utf16, int size);
4034
4035
4036 int compare(const QString &s) const;
4037 int compare(const QString &s, Qt::CaseSensitivity cs) const;
4038
4039 int compare(const QLatin1String &other, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
4040
4041
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); }
4046
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); }
4053
4054 int localeAwareCompare(const QString& s) const;
4055 static int localeAwareCompare(const QString& s1, const QString& s2)
4056 { return s1.localeAwareCompare(s2); }
4057
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;
4068
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);
4079
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);
4087
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); }
4094
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); }
4101
4102
4103
4104 inline QString(const char *ch) : d(fromAscii_helper(ch))
4105 {}
4106 inline QString(const QByteArray &a)
4107 : d(fromAscii_helper(a.constData(), qstrnlen(a.constData(), a.size())))
4108 {}
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)); }
4115
4116
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)); }
4131
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;
4138
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()); }
4149
4150
4151 typedef QChar *iterator;
4152 typedef const QChar *const_iterator;
4153 typedef iterator Iterator;
4154 typedef const_iterator ConstIterator;
4155 iterator begin();
4156 const_iterator begin() const;
4157 const_iterator constBegin() const;
4158 iterator end();
4159 const_iterator end() const;
4160 const_iterator constEnd() const;
4161
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';
4167 return *this;
4168 }
4169
4170
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"
4176 struct Null { };
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; }
4184
4185 private:
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"
4187 struct Data {
4188 QBasicAtomic ref;
4189 int alloc, size;
4190 ushort *data;
4191 ushort clean : 1;
4192 ushort simpletext : 1;
4193 ushort righttoleft : 1;
4194 ushort asciiCache : 1;
4195 ushort capacity : 1;
4196 ushort reserved : 11;
4197 ushort array[1];
4198 };
4199 static Data shared_null;
4200 static Data shared_empty;
4201 Data *d;
4202 QString(Data *dd, int ) : d(dd) {}
4203
4204
4205
4206 static int grow(int);
4207 static void free(Data *);
4208 void realloc();
4209 void realloc(int alloc);
4210 void expand(int i);
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);
4220 public:
4221 typedef Data * DataPtr;
4222 inline DataPtr &data_ptr() { return d; }
4223 };
4224
4225
4226 class QLatin1String
4227 {
4228 public:
4229 inline explicit QLatin1String(const char *s) : chars(s) {}
4230 inline QLatin1String &operator=(const QLatin1String &other)
4231 { chars = other.chars; return *this; }
4232
4233 inline const char *latin1() const { return chars; }
4234
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; }
4247
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; }
4260 private:
4261 const char *chars;
4262 };
4263
4264
4265
4266 inline QString::QString(const QLatin1String &latin1) : d(fromLatin1_helper(latin1.latin1()))
4267 { }
4268 inline int QString::length() const
4269 { return d->size; }
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)
4291 {
4292 *this = fromLatin1(s.latin1());
4293 return *this;
4294 }
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); }
4352
4353 inline QString QString::section(QChar asep, int astart, int aend, SectionFlags aflags) const
4354 { return section(QString(asep), astart, aend, aflags); }
4355
4356
4357 class QCharRef {
4358 QString &s;
4359 int i;
4360 inline QCharRef(QString &str, int idx)
4361 : s(str),i(idx) {}
4362 friend class QString;
4363 public:
4364
4365
4366
4367
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);
4372 s.d->data[i] = c.unicode(); return *this; }
4373
4374
4375
4376 inline QCharRef &operator=(char c)
4377 { return operator=(QChar::fromAscii(c)); }
4378 inline QCharRef &operator=(uchar c)
4379 { return operator=(QChar::fromAscii(c)); }
4380
4381 inline QCharRef &operator=(const QCharRef &c) { return operator=(QChar(c)); }
4382 inline QCharRef &operator=(ushort rc) { return operator=(QChar(rc)); }
4383 inline QCharRef &operator=(short rc) { return operator=(QChar(rc)); }
4384 inline QCharRef &operator=(uint rc) { return operator=(QChar(rc)); }
4385 inline QCharRef &operator=(int rc) { return operator=(QChar(rc)); }
4386
4387
4388 inline bool isNull() const { return QChar(*this).isNull(); }
4389 inline bool isPrint() const { return QChar(*this).isPrint(); }
4390 inline bool isPunct() const { return QChar(*this).isPunct(); }
4391 inline bool isSpace() const { return QChar(*this).isSpace(); }
4392 inline bool isMark() const { return QChar(*this).isMark(); }
4393 inline bool isLetter() const { return QChar(*this).isLetter(); }
4394 inline bool isNumber() const { return QChar(*this).isNumber(); }
4395 inline bool isLetterOrNumber() { return QChar(*this).isLetterOrNumber(); }
4396 inline bool isDigit() const { return QChar(*this).isDigit(); }
4397 inline bool isLower() const { return QChar(*this).isLower(); }
4398 inline bool isUpper() const { return QChar(*this).isUpper(); }
4399 inline bool isTitleCase() const { return QChar(*this).isTitleCase(); }
4400
4401 inline int digitValue() const { return QChar(*this).digitValue(); }
4402 QChar toLower() const { return QChar(*this).toLower(); }
4403 QChar toUpper() const { return QChar(*this).toUpper(); }
4404 QChar toTitleCase () const { return QChar(*this).toTitleCase(); }
4405
4406 QChar::Category category() const { return QChar(*this).category(); }
4407 QChar::Direction direction() const { return QChar(*this).direction(); }
4408 QChar::Joining joining() const { return QChar(*this).joining(); }
4409 bool hasMirrored() const { return QChar(*this).hasMirrored(); }
4410 QChar mirroredChar() const { return QChar(*this).mirroredChar(); }
4411 QString decomposition() const { return QChar(*this).decomposition(); }
4412 QChar::Decomposition decompositionTag() const { return QChar(*this).decompositionTag(); }
4413 uchar combiningClass() const { return QChar(*this).combiningClass(); }
4414
4415 QChar::UnicodeVersion unicodeVersion() const { return QChar(*this).unicodeVersion(); }
4416
4417 inline uchar cell() const { return QChar(*this).cell(); }
4418 inline uchar row() const { return QChar(*this).row(); }
4419 inline void setCell(uchar cell);
4420 inline void setRow(uchar row);
4421
4422 const char toAscii() const { return QChar(*this).toAscii(); }
4423 const char toLatin1() const { return QChar(*this).toLatin1(); }
4424 const ushort unicode() const { return QChar(*this).unicode(); }
4425 # 800 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
4426 };
4427
4428 inline void QCharRef::setRow(uchar arow) { QChar(*this).setRow(arow); }
4429 inline void QCharRef::setCell(uchar acell) { QChar(*this).setCell(acell); }
4430
4431
4432 inline QString::QString() : d(&shared_null) { d->ref.ref(); }
4433 inline QString::~QString() { if (!d->ref.deref()) free(d); }
4434 inline void QString::reserve(int asize) { if (d->ref != 1 || asize > d->alloc) realloc(asize); d->capacity = 1;}
4435 inline QString &QString::setUtf16(const ushort *autf16, int asize)
4436 { return setUnicode(reinterpret_cast<const QChar *>(autf16), asize); }
4437 inline QCharRef QString::operator[](int i)
4438 { 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/qstring.h",812);} while (0); return QCharRef(*this, i); }
4439 inline QCharRef QString::operator[](uint i)
4440 { return QCharRef(*this, i); }
4441 inline QString::iterator QString::begin()
4442 { detach(); return reinterpret_cast<QChar*>(d->data); }
4443 inline QString::const_iterator QString::begin() const
4444 { return reinterpret_cast<const QChar*>(d->data); }
4445 inline QString::const_iterator QString::constBegin() const
4446 { return reinterpret_cast<const QChar*>(d->data); }
4447 inline QString::iterator QString::end()
4448 { detach(); return reinterpret_cast<QChar*>(d->data + d->size); }
4449 inline QString::const_iterator QString::end() const
4450 { return reinterpret_cast<const QChar*>(d->data + d->size); }
4451 inline QString::const_iterator QString::constEnd() const
4452 { return reinterpret_cast<const QChar*>(d->data + d->size); }
4453 inline QBool QString::contains(const QString &s, Qt::CaseSensitivity cs) const
4454 { return QBool(indexOf(s, 0, cs) != -1); }
4455 inline QBool QString::contains(QChar c, Qt::CaseSensitivity cs) const
4456 { return QBool(indexOf(c, 0, cs) != -1); }
4457
4458
4459 inline bool operator==(QString::Null, QString::Null) { return true; }
4460 inline bool operator==(QString::Null, const QString &s) { return s.isNull(); }
4461 inline bool operator==(const QString &s, QString::Null) { return s.isNull(); }
4462 inline bool operator!=(QString::Null, QString::Null) { return false; }
4463 inline bool operator!=(QString::Null, const QString &s) { return !s.isNull(); }
4464 inline bool operator!=(const QString &s, QString::Null) { return !s.isNull(); }
4465
4466
4467 inline bool qStringComparisonHelper(const QString &s1, const char *s2)
4468 {
4469
4470
4471
4472 return (s1 == QLatin1String(s2));
4473 }
4474 inline bool QString::operator==(const char *s) const
4475 { return qStringComparisonHelper(*this, s); }
4476 inline bool QString::operator!=(const char *s) const