qglobal.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 **
4 ** Global type declarations and definitions
5 **
6 ** Created : 920529
7 **
8 ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
9 **
10 ** This file is part of the tools module of the Qt GUI Toolkit.
11 **
12 ** This file may be distributed under the terms of the Q Public License
13 ** as defined by Trolltech AS of Norway and appearing in the file
14 ** LICENSE.QPL included in the packaging of this file.
15 **
16 ** This file may be distributed and/or modified under the terms of the
17 ** GNU General Public License version 2 as published by the Free Software
18 ** Foundation and appearing in the file LICENSE.GPL included in the
19 ** packaging of this file.
20 **
21 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
22 ** licenses may use this file in accordance with the Qt Commercial License
23 ** Agreement provided with the Software.
24 **
25 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
26 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27 **
28 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
29 ** information about Qt Commercial License Agreements.
30 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
31 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
32 **
33 ** Contact info@trolltech.com if any conditions of this licensing are
34 ** not clear to you.
35 **
36 **********************************************************************/
37 
38 #ifndef QGLOBAL_H
39 #define QGLOBAL_H
40 
41 
42 #define QT_VERSION 223
43 #define QT_VERSION_STR "2.2.3"
44 
45 
46 //
47 // The operating system, must be one of: (_OS_x_)
48 //
49 // MAC - Macintosh
50 // MSDOS - MS-DOS and Windows
51 // OS2 - OS/2
52 // OS2EMX - XFree86 on OS/2 (not PM)
53 // WIN32 - Win32 (Windows 95/98 and Windows NT)
54 // SUN - SunOS
55 // SOLARIS - Sun Solaris
56 // HPUX - HP-UX
57 // ULTRIX - DEC Ultrix
58 // LINUX - Linux
59 // FREEBSD - FreeBSD
60 // NETBSD - NetBSD
61 // OPENBSD - OpenBSD
62 // IRIX - SGI Irix
63 // OSF - OSF Unix
64 // BSDI - BSDI Unix
65 // SCO - SCO of some sort
66 // AIX - AIX Unix
67 // UNIXWARE - SCO UnixWare
68 // GNU - GNU Hurd
69 // DGUX - DG Unix
70 // UNIX - Any UNIX bsd/sysv system
71 //
72 
73 #if defined(__APPLE__) || defined(macintosh)
74 #define _OS_MAC_
75 # ifdef MAC_OS_X_VERSION_MIN_REQUIRED
76 # undef MAC_OS_X_VERSION_MIN_REQUIRED
77 # endif
78 # define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_3
79 #elif defined(MSDOS) || defined(_MSDOS) || defined(__MSDOS__)
80 #define _OS_MSDOS_
81 #elif defined(OS2) || defined(_OS2) || defined(__OS2__)
82 #if defined(__EMX__)
83 #define _OS_OS2EMX_
84 #else
85 #define _OS_OS2_
86 #endif
87 #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
88 #define _OS_WIN32_
89 #elif defined(__MWERKS__) && defined(__INTEL__)
90 #define _OS_WIN32_
91 #elif defined(sun) || defined(__sun) || defined(__sun__)
92 #if defined(__SVR4)
93 #define _OS_SOLARIS_
94 #else
95 #define _OS_SUN_
96 #endif
97 #elif defined(hpux) || defined(__hpux) || defined(__hpux__)
98 #define _OS_HPUX_
99 #elif defined(ultrix) || defined(__ultrix) || defined(__ultrix__)
100 #define _OS_ULTRIX_
101 #elif defined(reliantunix)
102 #define _OS_RELIANTUNIX_
103 #elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
104 #define _OS_LINUX_
105 #elif defined(__FreeBSD__)
106 #define _OS_FREEBSD_
107 #elif defined(__NetBSD__)
108 #define _OS_NETBSD_
109 #elif defined(__OpenBSD__)
110 #define _OS_OPENBSD_
111 #elif defined(sgi) || defined(__sgi)
112 #define _OS_IRIX_
113 #elif defined(__osf__)
114 #define _OS_OSF_
115 #elif defined(bsdi) || defined(__bsdi__)
116 #define _OS_BSDI_
117 #elif defined(_AIX)
118 #define _OS_AIX_
119 #elif defined(__Lynx__)
120 #define _OS_LYNXOS_
121 #elif defined(_UNIXWARE)
122 #define _OS_UNIXWARE_
123 #elif defined(DGUX)
124 #define _OS_DGUX_
125 #elif defined(__QNX__)
126 #define _OS_QNX_
127 #elif defined(_SCO_DS) || defined(M_UNIX) || defined(M_XENIX)
128 #define _OS_SCO_
129 #elif defined(sco) || defined(_UNIXWARE7)
130 #define _OS_UNIXWARE7_
131 #elif !defined(_SCO_DS) && defined(__USLC__) && defined(__SCO_VERSION__)
132 #define _OS_UNIXWARE7_
133 #elif defined(__CYGWIN__)
134 #define _OS_CYGWIN_
135 #elif defined(__BEOS__)
136 #define _OS_BEOS_
137 #elif defined(__MINT__)
138 #define _OS_MINT_
139 #else
140 #error "Qt has not been ported to this OS - talk to qt-bugs@trolltech.com"
141 #endif
142 
143 #if defined(_OS_MAC_) || defined(_OS_MSDOS_) || defined(_OS_OS2_) || defined(_OS_WIN32_)
144 #undef _OS_UNIX_
145 #elif !defined(_OS_UNIX_)
146 #define _OS_UNIX_
147 // QT_CLEAN_NAMESPACE is not defined by default; it would break too
148 // much code.
149 #if !defined(QT_CLEAN_NAMESPACE) && !defined(UNIX)
150 // ### remove 3.0
151 #define UNIX
152 #endif
153 #endif
154 
155 
156 //
157 // The compiler, must be one of: (_CC_x_)
158 //
159 // SYM - Symantec C++ for both PC and Macintosh
160 // MPW - MPW C++
161 // MWERKS - Metrowerks CodeWarrior
162 // MSVC - Microsoft Visual C/C++
163 // BOR - Borland/Turbo C++
164 // WAT - Watcom C++
165 // GNU - GNU C++
166 // COMEAU - Comeau C++
167 // EDG - Edison Design Group C++
168 // OC - CenterLine C++
169 // SUN - Sun C++
170 // DEC - DEC C++
171 // HP - HPUX C++
172 // USLC - SCO UnixWare7 C++
173 // CDS - Reliant C++
174 // KAI - KAI C++
175 //
176 
177 
178 // Should be sorted most-authorative to least-authorative
179 
180 #if defined(__SC__)
181 #define _CC_SYM_
182 #elif defined( __KCC )
183 #define _CC_KAI_
184 #define _CC_EDG_
185 #define Q_HAS_BOOL_TYPE
186 #elif defined(applec)
187 #define _CC_MPW_
188 #elif defined(__MWERKS__)
189 #define _CC_MWERKS_
190 #define Q_HAS_BOOL_TYPE
191 #elif defined(_MSC_VER)
192 #define _CC_MSVC_
193 #elif defined(__BORLANDC__) || defined(__TURBOC__)
194 #define _CC_BOR_
195 #elif defined(__WATCOMC__)
196 #define _CC_WAT_
197 #define Q_HAS_BOOL_TYPE
198 #elif defined(__GNUC__)
199 #define _CC_GNU_
200 #if __GNUC__ == 2 && __GNUC_MINOR__ <= 7
201 #define Q_FULL_TEMPLATE_INSTANTIATION
202 #define Q_TEMPLATE_NEEDS_CLASS_DECLARATION
203 #define Q_TEMPLATE_NEEDS_EXPLICIT_CONVERSION
204 #define Q_SPURIOUS_NON_VOID_WARNING
205 #endif
206 #if __GNUC__ == 2 && __GNUC_MINOR__ >= 95
207 #define Q_DELETING_VOID_UNDEFINED
208 #endif
209 #if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP)
210 #define Q_PACKED __attribute__ ((packed))
211 #endif
212 #elif defined(__xlC__)
213 #define _CC_XLC_
214 #define Q_FULL_TEMPLATE_INSTANTIATION
215 #if __xlC__ >= 0x400
216 #define Q_HAS_BOOL_TYPE
217 #endif
218 #if __xlC__ <= 0x0306
219 #define Q_TEMPLATE_NEEDS_EXPLICIT_CONVERSION
220 #endif
221 #elif defined(como40)
222 #define _CC_EDG_
223 #define _CC_COMEAU_
224 #define Q_HAS_BOOL_TYPE
225 #define Q_C_CALLBACKS
226 #elif defined(__USLC__)
227 #define _CC_USLC_
228 #ifdef __EDG__ // UnixWare7
229 #define Q_HAS_BOOL_TYPE
230 #endif
231 #elif defined(__DECCXX)
232 #define _CC_DEC_
233 #if __DECCXX_VER >= 60060005
234 #define Q_HAS_BOOL_TYPE
235 #endif
236 #elif defined(__EDG) || defined(__EDG__)
237 // one observed on SGI DCC, the other documented
238 #define _CC_EDG_
239 #elif defined(OBJECTCENTER) || defined(CENTERLINE_CLPP)
240 #define _CC_OC_
241 #if defined(_BOOL)
242 #define Q_HAS_BOOL_TYPE
243 #endif
244 #elif defined(__SUNPRO_CC)
245 #define _CC_SUN_
246 #if __SUNPRO_CC >= 0x500
247 #define Q_HAS_BOOL_TYPE
248 #define Q_C_CALLBACKS
249 #endif
250 #elif defined(__CDS__)
251 #define _CC_CDS_
252 #define Q_HAS_BOOL_TYPE
253 #elif defined(_OS_HPUX_)
254 // this test is from aCC online help
255 #if defined(__HP_aCC) || __cplusplus >= 199707L
256 // this is the aCC
257 #define _CC_HP_ACC_
258 #define Q_HAS_BOOL_TYPE
259 #else
260 // this is the CC
261 #define _CC_HP_
262 #define Q_FULL_TEMPLATE_INSTANTIATION
263 #define Q_TEMPLATE_NEEDS_EXPLICIT_CONVERSION
264 #endif // __HP_aCC
265 #else
266 #error "Qt has not been tested with this compiler - talk to qt-bugs@trolltech.com"
267 #endif
268 
269 // detect Microsoft compiler version
270 #ifdef _CC_MSVC_
271 #if _MSC_VER >= 1400
272 #define _CC_V2005
273 #elif _MSC_VER >= 1310
274 #define _CC_V2003
275 #elif _MSC_VER > 1300
276 #define _CC_V2002
277 #else
278 #define _CC_V1998
279 #endif
280 #endif
281 
282 #ifndef Q_PACKED
283 #define Q_PACKED
284 #endif
285 
286 // Window system setting
287 
288 #if defined(_OS_MAC_)
289 #define _WS_MAC_
290 #elif defined(_OS_MSDOS_)
291 #define _WS_WIN16_
292 #error "Qt requires Win32 and does not work with Windows 3.x"
293 #elif defined(_WIN32_X11_)
294 #define _WS_X11_
295 #elif defined(_OS_WIN32_)
296 #define _WS_WIN32_
297 #elif defined(_OS_OS2_)
298 #error "Qt does not work with OS/2 Presentation Manager or Workplace Shell"
299 #elif defined(_OS_UNIX_)
300 #ifdef QWS
301 #define _WS_QWS_
302 #else
303 #define _WS_X11_
304 #endif
305 #endif
306 
307 #if defined(_WS_WIN16_) || defined(_WS_WIN32_)
308 #define _WS_WIN_
309 #endif
310 
311 
312 //
313 // Some classes do not permit copies to be made of an object.
314 // These classes contains a private copy constructor and operator=
315 // to disable copying (the compiler gives an error message).
316 // Undefine Q_DISABLE_COPY to turn off this checking.
317 //
318 
319 #define Q_DISABLE_COPY
320 
321 
322 //
323 // Useful type definitions for Qt
324 //
325 
326 #if defined(bool)
327 #define Q_HAS_BOOL_TYPE
328 #elif __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6)
329 #define Q_HAS_BOOL_TYPE
330 #elif _MSC_VER >= 1100 || __BORLANDC__ >= 0x500
331 #define Q_HAS_BOOL_TYPE
332 #elif defined(sgi) && defined(_BOOL)
333 #define Q_HAS_BOOL_TYPE
334 #endif
335 
336 #if (QT_VERSION >= 300)
337 #error "Use an enum for bool"
338 #endif
339 
340 #if !defined(Q_HAS_BOOL_TYPE)
341 #if defined(_CC_MSVC_)
342 #define _CC_BOOL_DEF_
343 #define bool int
344 #else
345 typedef int bool;
346 #endif
347 #endif
348 
349 typedef unsigned char uchar;
350 typedef unsigned short ushort;
351 typedef unsigned uint;
352 typedef unsigned long ulong;
353 typedef char *pchar;
354 typedef uchar *puchar;
355 typedef const char *pcchar;
356 #if defined(_OS_WIN32_) && !defined(_CC_GNU_)
357 typedef __int64 int64;
358 typedef unsigned __int64 uint64;
359 #else
360 typedef long long int64;
361 typedef unsigned long long uint64;
362 #endif
363 
364 
365 //
366 // Constant bool values
367 //
368 
369 #ifndef TRUE
370 const bool FALSE = 0;
371 const bool TRUE = !0;
372 #endif
373 
374 
375 #if defined(_CC_MSVC_)
376 // Workaround for static const members.
377 #define QT_STATIC_CONST static
378 #define QT_STATIC_CONST_IMPL
379 #else
380 #define QT_STATIC_CONST static const
381 #define QT_STATIC_CONST_IMPL const
382 #endif
383 
384 
385 
386 //
387 // Utility macros and inline functions
388 //
389 
390 #define QMAX(a,b) ((a) > (b) ? (a) : (b))
391 #define QMIN(a,b) ((a) < (b) ? (a) : (b))
392 #define QABS(a) ((a) >= 0 ? (a) : -(a))
393 
394 inline int qRound( double d )
395 {
396  return d > 0.0 ? int(d+0.5) : int(d-0.5);
397 }
398 
399 
400 //
401 // Size-dependent types (architechture-dependent byte order)
402 //
403 
404 // QT_CLEAN_NAMESPACE is not defined by default; it would break too
405 // much code.
406 #if !defined(QT_CLEAN_NAMESPACE)
407 typedef signed char INT8; // 8 bit signed
408 typedef unsigned char UINT8; // 8 bit unsigned
409 typedef short INT16; // 16 bit signed
410 typedef unsigned short UINT16; // 16 bit unsigned
411 typedef int INT32; // 32 bit signed
412 typedef unsigned int UINT32; // 32 bit unsigned
413 #endif
414 
415 typedef signed char Q_INT8; // 8 bit signed
416 typedef unsigned char Q_UINT8; // 8 bit unsigned
417 typedef short Q_INT16; // 16 bit signed
418 typedef unsigned short Q_UINT16; // 16 bit unsigned
419 typedef int Q_INT32; // 32 bit signed
420 typedef unsigned int Q_UINT32; // 32 bit unsigned
421 typedef long Q_INT64; // up to 64 bit signed
422 typedef unsigned long Q_UINT64; // up to 64 bit unsigned
423 
424 //
425 // Data stream functions is provided by many classes (defined in qdatastream.h)
426 //
427 
428 class QDataStream;
429 
430 
431 
432 #ifdef _WS_WIN_
433 extern bool qt_winunicode;
434 #endif
435 
436 #ifndef QT_H
437 #include <qfeatures.h>
438 #endif // QT_H
439 
440 //
441 // Create Qt DLL if QT_DLL is defined (Windows only)
442 //
443 
444 #if defined(_OS_WIN32_)
445 #if defined(QT_NODLL)
446 #undef QT_MAKEDLL
447 #undef QT_DLL
448 #endif
449 #ifdef QT_DLL
450 #if defined(QT_MAKEDLL) /* create a Qt DLL library */
451 #undef QT_DLL
452 #define Q_EXPORT __declspec(dllexport)
453 #define Q_TEMPLATEDLL
454 #undef Q_DISABLE_COPY /* avoid unresolved externals */
455 #endif
456 #endif
457 #if defined(QT_DLL) /* use a Qt DLL library */
458 #define Q_EXPORT __declspec(dllimport)
459 #define Q_TEMPLATEDLL
460 #undef Q_DISABLE_COPY /* avoid unresolved externals */
461 #endif
462 #else // ! _OS_WIN32_
463 #undef QT_MAKEDLL /* ignore these for other platforms */
464 #undef QT_DLL
465 #endif
466 
467 #ifndef Q_EXPORT
468 #define Q_EXPORT
469 #endif
470 
471 //
472 // System information
473 //
474 
475 Q_EXPORT const char *qVersion();
476 Q_EXPORT bool qSysInfo( int *wordSize, bool *bigEndian );
477 
478 
479 //
480 // Debugging and error handling
481 //
482 
483 #if !defined(NO_CHECK)
484 #define CHECK_STATE // check state of objects etc.
485 #define CHECK_RANGE // check range of indexes etc.
486 #define CHECK_NULL // check null pointers
487 #define CHECK_MATH // check math functions
488 #endif
489 
490 #if !defined(NO_DEBUG) && !defined(DEBUG)
491 #define DEBUG // display debug messages
492 #endif
493 
494 //
495 // Avoid some particularly useless warnings from some stupid compilers.
496 // To get ALL C++ compiler warnings, define CC_WARNINGS or comment out
497 // the line "#define Q_NO_WARNINGS"
498 //
499 
500 #if !defined(CC_WARNINGS)
501 #define Q_NO_WARNINGS
502 #endif
503 #if defined(Q_NO_WARNINGS)
504 #if defined(_CC_MSVC_)
505 #pragma warning(disable: 4244)
506 #pragma warning(disable: 4275)
507 #pragma warning(disable: 4514)
508 #pragma warning(disable: 4800)
509 #pragma warning(disable: 4097)
510 #pragma warning(disable: 4706)
511 #elif defined(_CC_BOR_)
512 #pragma option -w-inl
513 #pragma option -w-aus
514 #pragma warn -inl
515 #pragma warn -pia
516 #pragma warn -ccc
517 #pragma warn -rch
518 #pragma warn -sig
519 #elif defined(_CC_MWERKS_)
520 #pragma warn_possunwant off
521 #endif
522 #endif // Q_NO_WARNINGS
523 
524 //
525 // Avoid dead code
526 //
527 
528 #if defined(_CC_EDG_) || defined(_CC_WAT_)
529 #define Q_NO_DEAD_CODE
530 #endif
531 
532 //
533 // Use to avoid "unused parameter" warnings
534 //
535 
536 #define Q_UNUSED(x) x=x;
537 #define Q_CONST_UNUSED(x) (void)x;
538 
539 Q_EXPORT void qDebug( const char *, ... ) // print debug message
540 #if defined(_CC_GNU_) && !defined(__INSURE__)
541  __attribute__ ((format (printf, 1, 2)))
542 #endif
543 ;
544 
545 Q_EXPORT void qWarning( const char *, ... ) // print warning message
546 #if defined(_CC_GNU_) && !defined(__INSURE__)
547  __attribute__ ((format (printf, 1, 2)))
548 #endif
549 ;
550 
551 Q_EXPORT void qFatal( const char *, ... ) // print fatal message and exit
552 #if defined(_CC_GNU_)
553  __attribute__ ((format (printf, 1, 2)))
554 #endif
555 ;
556 
557 
558 // QT_CLEAN_NAMESPACE is not defined by default; it would break too
559 // much code.
560 #if !defined(QT_CLEAN_NAMESPACE)
561 // in that case, also define the old ones...
562 
563 Q_EXPORT void debug( const char *, ... ) // print debug message
564 #if defined(_CC_GNU_) && !defined(__INSURE__)
565  __attribute__ ((format (printf, 1, 2)))
566 #endif
567 ;
568 
569 Q_EXPORT void warning( const char *, ... ) // print warning message
570 #if defined(_CC_GNU_) && !defined(__INSURE__)
571  __attribute__ ((format (printf, 1, 2)))
572 #endif
573 ;
574 
575 Q_EXPORT void fatal( const char *, ... ) // print fatal message and exit
576 #if defined(_CC_GNU_) && !defined(__INSURE__)
577  __attribute__ ((format (printf, 1, 2)))
578 #endif
579 ;
580 
581 // okay, that was debug()/warning()/fatal()
582 #endif
583 
584 #if !defined(ASSERT)
585 #if defined(CHECK_STATE)
586 #if defined(QT_FATAL_ASSERT)
587 #define ASSERT(x) if ( !(x) )\
588  qFatal("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__)
589 #else
590 #define ASSERT(x) if ( !(x) )\
591  qWarning("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__)
592 #endif
593 #else
594 #define ASSERT(x)
595 #endif
596 #endif
597 
598 Q_EXPORT bool qt_check_pointer( bool c, const char *, int );
599 
600 #if defined(CHECK_NULL)
601 #define CHECK_PTR(p) (qt_check_pointer((p)==0,__FILE__,__LINE__))
602 #else
603 #define CHECK_PTR(p)
604 #endif
605 
607 
608 typedef void (*msg_handler)(QtMsgType, const char *);
610 
611 
613 
614 #if !defined(QT_REJECT_OBSOLETE)
615 #define QT_OBSOLETE
616 Q_EXPORT void qObsolete( const char *obj, const char *oldfunc,
617  const char *newfunc );
618 Q_EXPORT void qObsolete( const char *obj, const char *oldfunc );
619 Q_EXPORT void qObsolete( const char *message );
620 #endif
621 
622 // DvH: added to avoid warnings on recent gcc versions
623 #define Q_DELETING_VOID_UNDEFINED
624 
625 #endif // QGLOBAL_H
signed char INT8
Definition: qglobal.h:407
int qRound(double d)
Definition: qglobal.h:394
long long int64
Definition: qglobal.h:360
Q_EXPORT void qObsolete(const char *obj, const char *oldfunc, const char *newfunc)
Definition: qglobal.cpp:586
char * pchar
Definition: qglobal.h:353
Q_EXPORT void fatal(const char *,...)
Definition: qglobal.cpp:465
Q_EXPORT bool qSysInfo(int *wordSize, bool *bigEndian)
Q_EXPORT const char * qVersion()
Q_EXPORT void qSuppressObsoleteWarnings(bool=TRUE)
Definition: qglobal.cpp:581
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
Definition: qstring.cpp:11496
const bool FALSE
Definition: qglobal.h:370
Q_EXPORT void qFatal(const char *,...)
Definition: qglobal.cpp:443
Q_EXPORT bool qt_check_pointer(bool c, const char *, int)
Definition: qglobal.cpp:549
QtMsgType
Definition: qglobal.h:606
unsigned char uchar
Definition: nybbler.cc:11
void(* msg_handler)(QtMsgType, const char *)
Definition: qglobal.h:608
unsigned char Q_UINT8
Definition: qglobal.h:416
unsigned char uchar
Definition: qglobal.h:349
signed char Q_INT8
Definition: qglobal.h:415
const char * pcchar
Definition: qglobal.h:355
int Q_INT32
Definition: qglobal.h:419
short INT16
Definition: qglobal.h:409
Q_EXPORT void debug(const char *,...)
Definition: qglobal.cpp:393
unsigned long ulong
Definition: qglobal.h:352
Q_EXPORT void warning(const char *,...)
Definition: qglobal.cpp:427
Q_EXPORT void qWarning(const char *,...)
Definition: qglobal.cpp:409
int INT32
Definition: qglobal.h:411
unsigned int Q_UINT32
Definition: qglobal.h:420
unsigned int UINT32
Definition: qglobal.h:412
unsigned long Q_UINT64
Definition: qglobal.h:422
unsigned short Q_UINT16
Definition: qglobal.h:418
unsigned short ushort
Definition: qglobal.h:350
Q_EXPORT msg_handler qInstallMsgHandler(msg_handler)
uchar * puchar
Definition: qglobal.h:354
short Q_INT16
Definition: qglobal.h:417
The QDataStream class provides serialization of binary data to a QIODevice.
Definition: qdatastream.h:47
unsigned long long uint64
Definition: qglobal.h:361
long Q_INT64
Definition: qglobal.h:421
unsigned uint
Definition: qglobal.h:351
int bool
Definition: qglobal.h:345
unsigned char UINT8
Definition: qglobal.h:408
#define Q_EXPORT
Definition: qglobal.h:468
const bool TRUE
Definition: qglobal.h:371
unsigned short UINT16
Definition: qglobal.h:410
Q_EXPORT void qDebug(const char *,...)
Definition: qglobal.cpp:376