~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qsysinfo.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
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 -->
 
6
<head>
 
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>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
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">&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="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <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 &lt;QSysInfo&gt;</pre><p>Part of the <a href="qtcore.html">QtCore</a> module.</p>
 
23
<ul>
 
24
<li><a href="qsysinfo-members.html">List of all members, including inherited members</a></li>
 
25
</ul>
 
26
<a name="public-types"></a>
 
27
<h3>Public Types</h3>
 
28
<ul>
 
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>
 
32
</ul>
 
33
<a name="static-public-members"></a>
 
34
<h3>Static Public Members</h3>
 
35
<ul>
 
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>
 
39
</ul>
 
40
<a name="details"></a>
 
41
<hr />
 
42
<h2>Detailed Description</h2>
 
43
<p>The QSysInfo class provides information about the system.</p>
 
44
<ul>
 
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>
 
49
</ul>
 
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>
 
52
<hr />
 
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>&lt;platform-dependent&gt;</tt></td><td valign="top">Equals BigEndian or LittleEndian, depending on the platform's byte order.</td></tr>
 
60
</table>
 
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>
 
72
</table>
 
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>
 
83
</table>
 
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>
 
91
</table>
 
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>
 
97
</table>
 
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>
 
104
</table>
 
105
<p>See also <a href="qsysinfo.html#MacVersion-enum">MacVersion</a>.</p>
 
106
<hr />
 
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 &copy; 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>
 
120
</html>