1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/corelib/global/qglobal.cpp -->
7
<title>Qt 4.0: QSysInfo Class Reference</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QSysInfo Class Reference</h1>
21
<p>The QSysInfo class provides information about the system. <a href="#details">More...</a></p>
22
<pre>#include <QSysInfo></pre><p>Part of the <a href="qtcore.html">QtCore</a> module.</p>
24
<li><a href="qsysinfo-members.html">List of all members, including inherited members</a></li>
26
<a name="public-types"></a>
29
<li><div class="fn"/>enum <b><a href="qsysinfo.html#Endian-enum">Endian</a></b> { BigEndian, LittleEndian, ByteOrder }</li>
30
<li><div class="fn"/>enum <b><a href="qsysinfo.html#MacVersion-enum">MacVersion</a></b> { MV_9, MV_10_0, MV_10_1, MV_10_2, ..., MV_Unknown }</li>
31
<li><div class="fn"/>enum <b><a href="qsysinfo.html#WinVersion-enum">WinVersion</a></b> { WV_32s, WV_95, WV_98, WV_Me, ..., WV_CE_based }</li>
33
<a name="static-public-members"></a>
34
<h3>Static Public Members</h3>
36
<li><div class="fn"/>const MacVersion <b><a href="qsysinfo.html#MacintoshVersion-var">MacintoshVersion</a></b></li>
37
<li><div class="fn"/>const WinVersion <b><a href="qsysinfo.html#WindowsVersion-var">WindowsVersion</a></b></li>
38
<li><div class="fn"/>const int <b><a href="qsysinfo.html#WordSize-var">WordSize</a></b></li>
40
<a name="details"></a>
42
<h2>Detailed Description</h2>
43
<p>The QSysInfo class provides information about the system.</p>
45
<li><a href="qsysinfo.html#WordSize-var">WordSize</a> specifies the size of a pointer for the platform on which the application is compiled.</li>
46
<li><a href="qsysinfo.html#Endian-enum">ByteOrder</a> specifies whether the platform is big-endian or little-endian.</li>
47
<li><a href="qsysinfo.html#WindowsVersion-var">WindowsVersion</a> specifies the version of the Windows operating system on which the application is run (Windows only)</li>
48
<li><a href="qsysinfo.html#MacintoshVersion-var">MacintoshVersion</a> specifies the version of the Macintosh operating system on which the application is run (Mac only).</li>
50
<p>Some constants are defined only on certain platforms. You can use the preprocessor symbols <tt>Q_WS_WIN</tt> and <tt>Q_WS_MAC</tt> to test that the application is compiled under Windows or Mac.</p>
51
<p>See also <a href="qlibraryinfo.html">QLibraryInfo</a>.</p>
53
<h2>Member Type Documentation</h2>
54
<h3 class="fn"><a name="Endian-enum"></a>enum QSysInfo::Endian</h3>
55
<table border="1" cellpadding="2" cellspacing="1" width="100%">
56
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
57
<tr><td valign="top"><tt>QSysInfo::BigEndian</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Big-endian byte order (also called Network byte order)</td></tr>
58
<tr><td valign="top"><tt>QSysInfo::LittleEndian</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Little-endian byte order</td></tr>
59
<tr><td valign="top"><tt>QSysInfo::ByteOrder</tt></td><td align="center" valign="top"><tt><platform-dependent></tt></td><td valign="top">Equals BigEndian or LittleEndian, depending on the platform's byte order.</td></tr>
61
<h3 class="fn"><a name="MacVersion-enum"></a>enum QSysInfo::MacVersion</h3>
62
<p>This enum provides symbolic names for the various versions of the Macintosh operating system. On Mac, the <a href="qsysinfo.html#MacintoshVersion-var">QSysInfo::MacintoshVersion</a> variable gives the version of the system on which the application is run.</p>
63
<table border="1" cellpadding="2" cellspacing="1" width="100%">
64
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
65
<tr><td valign="top"><tt>QSysInfo::MV_9</tt></td><td align="center" valign="top"><tt>0x0001</tt></td><td valign="top">MacOS 9 (unsupported)</td></tr>
66
<tr><td valign="top"><tt>QSysInfo::MV_10_0</tt></td><td align="center" valign="top"><tt>0x0002</tt></td><td valign="top">Mac OS X 10.0</td></tr>
67
<tr><td valign="top"><tt>QSysInfo::MV_10_1</tt></td><td align="center" valign="top"><tt>0x0003</tt></td><td valign="top">Mac OS X 10.1</td></tr>
68
<tr><td valign="top"><tt>QSysInfo::MV_10_2</tt></td><td align="center" valign="top"><tt>0x0004</tt></td><td valign="top">Mac OS X 10.2</td></tr>
69
<tr><td valign="top"><tt>QSysInfo::MV_10_3</tt></td><td align="center" valign="top"><tt>0x0005</tt></td><td valign="top">Mac OS X 10.3</td></tr>
70
<tr><td valign="top"><tt>QSysInfo::MV_10_4</tt></td><td align="center" valign="top"><tt>0x0006</tt></td><td valign="top">Mac OS X 10.4</td></tr>
71
<tr><td valign="top"><tt>QSysInfo::MV_Unknown</tt></td><td align="center" valign="top"><tt>0x0000</tt></td><td valign="top">Other</td></tr>
73
<p>See also <a href="qsysinfo.html#WinVersion-enum">WinVersion</a>.</p>
74
<h3 class="fn"><a name="WinVersion-enum"></a>enum QSysInfo::WinVersion</h3>
75
<p>This enum provides symbolic names for the various versions of the Windows operating system. On Windows, the <a href="qsysinfo.html#WindowsVersion-var">QSysInfo::WindowsVersion</a> variable gives the version of the system on which the application is run.</p>
76
<p>MS-DOS-based versions:</p>
77
<table border="1" cellpadding="2" cellspacing="1" width="100%">
78
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
79
<tr><td valign="top"><tt>QSysInfo::WV_32s</tt></td><td align="center" valign="top"><tt>0x0001</tt></td><td valign="top">Windows 3.1 wth Win 32s</td></tr>
80
<tr><td valign="top"><tt>QSysInfo::WV_95</tt></td><td align="center" valign="top"><tt>0x0002</tt></td><td valign="top">Windows 95</td></tr>
81
<tr><td valign="top"><tt>QSysInfo::WV_98</tt></td><td align="center" valign="top"><tt>0x0003</tt></td><td valign="top">Windows 98</td></tr>
82
<tr><td valign="top"><tt>QSysInfo::WV_Me</tt></td><td align="center" valign="top"><tt>0x0004</tt></td><td valign="top">Windows Me</td></tr>
84
<p>NT-based versions:</p>
85
<table border="1" cellpadding="2" cellspacing="1" width="100%">
86
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
87
<tr><td valign="top"><tt>QSysInfo::WV_NT</tt></td><td align="center" valign="top"><tt>0x0010</tt></td><td valign="top">Windows NT</td></tr>
88
<tr><td valign="top"><tt>QSysInfo::WV_2000</tt></td><td align="center" valign="top"><tt>0x0020</tt></td><td valign="top">Windows 2000</td></tr>
89
<tr><td valign="top"><tt>QSysInfo::WV_XP</tt></td><td align="center" valign="top"><tt>0x0030</tt></td><td valign="top">Windows XP</td></tr>
90
<tr><td valign="top"><tt>QSysInfo::WV_2003</tt></td><td align="center" valign="top"><tt>0x0040</tt></td><td valign="top">Windows XP 2003</td></tr>
92
<p>CE-based versions:</p>
93
<table border="1" cellpadding="2" cellspacing="1" width="100%">
94
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
95
<tr><td valign="top"><tt>QSysInfo::WV_CE</tt></td><td align="center" valign="top"><tt>0x0100</tt></td><td valign="top">Windows CE</td></tr>
96
<tr><td valign="top"><tt>QSysInfo::WV_CENET</tt></td><td align="center" valign="top"><tt>0x0200</tt></td><td valign="top">Windows CE .NET</td></tr>
98
<p>The following masks can be used for testing whether a Windows version is MS-DOS-based, NT-based, or CE-based:</p>
99
<table border="1" cellpadding="2" cellspacing="1" width="100%">
100
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
101
<tr><td valign="top"><tt>QSysInfo::WV_DOS_based</tt></td><td align="center" valign="top"><tt>0x000f</tt></td><td valign="top">MS-DOS-based version of Windows</td></tr>
102
<tr><td valign="top"><tt>QSysInfo::WV_NT_based</tt></td><td align="center" valign="top"><tt>0x00f0</tt></td><td valign="top">NT-based version of Windows</td></tr>
103
<tr><td valign="top"><tt>QSysInfo::WV_CE_based</tt></td><td align="center" valign="top"><tt>0x0f00</tt></td><td valign="top">CE-based version of Windows</td></tr>
105
<p>See also <a href="qsysinfo.html#MacVersion-enum">MacVersion</a>.</p>
107
<h2>Member Variable Documentation</h2>
108
<h3 class="fn"><a name="MacintoshVersion-var"></a>const <a href="qsysinfo.html#MacVersion-enum">MacVersion</a> QSysInfo::MacintoshVersion</h3>
109
<p>This variable holds the version of the Macintosh operating system on which the application is run (Mac only).</p>
110
<h3 class="fn"><a name="WindowsVersion-var"></a>const <a href="qsysinfo.html#WinVersion-enum">WinVersion</a> QSysInfo::WindowsVersion</h3>
111
<p>This variable holds the version of the Windows operating system on which the application is run (Windows only).</p>
112
<h3 class="fn"><a name="WordSize-var"></a>const int QSysInfo::WordSize</h3>
113
<p>This variable holds the size in bits of a pointer for the platform on which the application is compiled (32 or 64).</p>
114
<p /><address><hr /><div align="center">
115
<table width="100%" cellspacing="0" border="0"><tr class="address">
116
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
117
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
118
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
119
</tr></table></div></address></body>