Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > ac91357d6caede925de099a02fced14e > files > 4783

qt4-doc-4.2.1-1.el5_7.1.x86_64.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /tmp/qt-4.2.1-harald-1161357942206/qt-x11-opensource-src-4.2.1/src/corelib/global/qglobal.cpp -->
<head>
  <title>Qt 4.2: QSysInfo Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">QSysInfo Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1>
<p>The QSysInfo class provides information about the system. <a href="#details">More...</a></p>
<pre> #include &lt;QSysInfo&gt;</pre><ul>
<li><a href="qsysinfo-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h3>Public Types</h3>
<ul>
<li><div class="fn"/>enum <b><a href="qsysinfo.html#Endian-enum">Endian</a></b> { BigEndian, LittleEndian, ByteOrder }</li>
<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_LEOPARD }</li>
<li><div class="fn"/>enum <b><a href="qsysinfo.html#Sizes-enum">Sizes</a></b> { WordSize }</li>
<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>
</ul>
<a name="static-public-members"></a>
<h3>Static Public Members</h3>
<ul>
<li><div class="fn"/>const MacVersion <b><a href="qsysinfo.html#MacintoshVersion-var">MacintoshVersion</a></b></li>
<li><div class="fn"/>const WinVersion <b><a href="qsysinfo.html#WindowsVersion-var">WindowsVersion</a></b></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QSysInfo class provides information about the system.</p>
<ul>
<li><a href="qsysinfo.html#Sizes-enum">WordSize</a> specifies the size of a pointer for the platform on which the application is compiled.</li>
<li><a href="qsysinfo.html#Endian-enum">ByteOrder</a> specifies whether the platform is big-endian or little-endian.</li>
<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>
<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>
</ul>
<p>Some constants are defined only on certain platforms. You can use the preprocessor symbols <a href="qtglobal.html#Q_WS_WIN">Q_WS_WIN</a> and <a href="qtglobal.html#Q_WS_MAC">Q_WS_MAC</a> to test that the application is compiled under Windows or Mac.</p>
<p>See also <a href="qlibraryinfo.html">QLibraryInfo</a>.</p>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="Endian-enum"></a>enum QSysInfo::Endian</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<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>
<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>
<tr><td valign="top"><tt>QSysInfo::ByteOrder</tt></td><td align="center" valign="top"><tt>&lt;platform-dependent&gt;</tt></td><td valign="top">Equals BigEndian or LittleEndian, depending on the platform's byte order.</td></tr>
</table></p>
<h3 class="fn"><a name="MacVersion-enum"></a>enum QSysInfo::MacVersion</h3>
<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>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSysInfo::MV_9</tt></td><td align="center" valign="top"><tt>0x0001</tt></td><td valign="top">Mac OS 9 (unsupported)</td></tr>
<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 (unsupported)</td></tr>
<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 (unsupported)</td></tr>
<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 (unsupported)</td></tr>
<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>
<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>
<tr><td valign="top"><tt>QSysInfo::MV_10_5</tt></td><td align="center" valign="top"><tt>0x0007</tt></td><td valign="top">Mac OS X 10.5</td></tr>
<tr><td valign="top"><tt>QSysInfo::MV_Unknown</tt></td><td align="center" valign="top"><tt>0x0000</tt></td><td valign="top">An unknown and currently unsupported platform</td></tr>
<tr><td valign="top"><tt>QSysInfo::MV_CHEETAH</tt></td><td align="center" valign="top"><tt>MV_10_0</tt></td><td valign="top">Apple codename for MV_10_0</td></tr>
<tr><td valign="top"><tt>QSysInfo::MV_PUMA</tt></td><td align="center" valign="top"><tt>MV_10_1</tt></td><td valign="top">Apple codename for MV_10_1</td></tr>
<tr><td valign="top"><tt>QSysInfo::MV_JAGUAR</tt></td><td align="center" valign="top"><tt>MV_10_2</tt></td><td valign="top">Apple codename for MV_10_2</td></tr>
<tr><td valign="top"><tt>QSysInfo::MV_PANTHER</tt></td><td align="center" valign="top"><tt>MV_10_3</tt></td><td valign="top">Apple codename for MV_10_3</td></tr>
<tr><td valign="top"><tt>QSysInfo::MV_TIGER</tt></td><td align="center" valign="top"><tt>MV_10_4</tt></td><td valign="top">Apple codename for MV_10_4</td></tr>
<tr><td valign="top"><tt>QSysInfo::MV_LEOPARD</tt></td><td align="center" valign="top"><tt>MV_10_5</tt></td><td valign="top">Apple codename for MV_10_5</td></tr>
</table></p>
<p>See also <a href="qsysinfo.html#WinVersion-enum">WinVersion</a>.</p>
<h3 class="fn"><a name="Sizes-enum"></a>enum QSysInfo::Sizes</h3>
<p>This enum provides platform-specific information about the sizes of data structures used by the underlying architecture.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSysInfo::WordSize</tt></td><td align="center" valign="top"><tt>( sizeof( void * ) &lt;&lt;3 )</tt></td><td valign="top">The size in bits of a pointer for the platform on which the application is compiled (32 or 64).</td></tr>
</table></p>
<h3 class="fn"><a name="WinVersion-enum"></a>enum QSysInfo::WinVersion</h3>
<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>
<p>MS-DOS-based versions:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<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>
<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>
<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>
<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>
</table></p>
<p>NT-based versions:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<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>
<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>
<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>
<tr><td valign="top"><tt>QSysInfo::WV_2003</tt></td><td align="center" valign="top"><tt>0x0040</tt></td><td valign="top">Windows Server 2003</td></tr>
<tr><td valign="top"><tt>QSysInfo::WV_VISTA</tt></td><td align="center" valign="top"><tt>0x0080</tt></td><td valign="top">Windows Vista</td></tr>
</table></p>
<p>CE-based versions:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<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>
<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>
</table></p>
<p>The following masks can be used for testing whether a Windows version is MS-DOS-based, NT-based, or CE-based:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<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>
<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>
<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>
</table></p>
<p>See also <a href="qsysinfo.html#MacVersion-enum">MacVersion</a>.</p>
<hr />
<h2>Member Variable Documentation</h2>
<h3 class="fn"><a name="MacintoshVersion-var"></a>const <a href="qsysinfo.html#MacVersion-enum">MacVersion</a> QSysInfo::MacintoshVersion</h3>
<p>This variable holds the version of the Macintosh operating system on which the application is run (Mac only).</p>
<h3 class="fn"><a name="WindowsVersion-var"></a>const <a href="qsysinfo.html#WinVersion-enum">WinVersion</a> QSysInfo::WindowsVersion</h3>
<p>This variable holds the version of the Windows operating system on which the application is run (Windows only).</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2006 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.2.1</div></td>
</tr></table></div></address></body>
</html>