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

« back to all changes in this revision

Viewing changes to doc/html/qurlinfo.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/network/qurlinfo.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: QUrlInfo 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">QUrlInfo Class Reference</h1>
 
21
<p>The QUrlInfo class stores information about URLs. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QUrlInfo&gt;</pre><p>Part of the <a href="qtnetwork.html">QtNetwork</a> module.</p>
 
23
<ul>
 
24
<li><a href="qurlinfo-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="qurlinfo.html#PermissionSpec-enum">PermissionSpec</a></b> { ReadOwner, WriteOwner, ExeOwner, ReadGroup, ..., ExeOther }</li>
 
30
</ul>
 
31
<a name="public-functions"></a>
 
32
<h3>Public Functions</h3>
 
33
<ul>
 
34
<li><div class="fn"/><b><a href="qurlinfo.html#QUrlInfo">QUrlInfo</a></b> ()</li>
 
35
<li><div class="fn"/><b><a href="qurlinfo.html#QUrlInfo-2">QUrlInfo</a></b> ( const QUrlInfo &amp; <i>ui</i> )</li>
 
36
<li><div class="fn"/><b><a href="qurlinfo.html#QUrlInfo-3">QUrlInfo</a></b> ( const QString &amp; <i>name</i>, int <i>permissions</i>, const QString &amp; <i>owner</i>, const QString &amp; <i>group</i>, qint64 <i>size</i>, const QDateTime &amp; <i>lastModified</i>, const QDateTime &amp; <i>lastRead</i>, bool <i>isDir</i>, bool <i>isFile</i>, bool <i>isSymLink</i>, bool <i>isWritable</i>, bool <i>isReadable</i>, bool <i>isExecutable</i> )</li>
 
37
<li><div class="fn"/><b><a href="qurlinfo.html#QUrlInfo-4">QUrlInfo</a></b> ( const QUrl &amp; <i>url</i>, int <i>permissions</i>, const QString &amp; <i>owner</i>, const QString &amp; <i>group</i>, qint64 <i>size</i>, const QDateTime &amp; <i>lastModified</i>, const QDateTime &amp; <i>lastRead</i>, bool <i>isDir</i>, bool <i>isFile</i>, bool <i>isSymLink</i>, bool <i>isWritable</i>, bool <i>isReadable</i>, bool <i>isExecutable</i> )</li>
 
38
<li><div class="fn"/>virtual <b><a href="qurlinfo.html#dtor.QUrlInfo">~QUrlInfo</a></b> ()</li>
 
39
<li><div class="fn"/>QString <b><a href="qurlinfo.html#group">group</a></b> () const</li>
 
40
<li><div class="fn"/>bool <b><a href="qurlinfo.html#isDir">isDir</a></b> () const</li>
 
41
<li><div class="fn"/>bool <b><a href="qurlinfo.html#isExecutable">isExecutable</a></b> () const</li>
 
42
<li><div class="fn"/>bool <b><a href="qurlinfo.html#isFile">isFile</a></b> () const</li>
 
43
<li><div class="fn"/>bool <b><a href="qurlinfo.html#isReadable">isReadable</a></b> () const</li>
 
44
<li><div class="fn"/>bool <b><a href="qurlinfo.html#isSymLink">isSymLink</a></b> () const</li>
 
45
<li><div class="fn"/>bool <b><a href="qurlinfo.html#isValid">isValid</a></b> () const</li>
 
46
<li><div class="fn"/>bool <b><a href="qurlinfo.html#isWritable">isWritable</a></b> () const</li>
 
47
<li><div class="fn"/>QDateTime <b><a href="qurlinfo.html#lastModified">lastModified</a></b> () const</li>
 
48
<li><div class="fn"/>QDateTime <b><a href="qurlinfo.html#lastRead">lastRead</a></b> () const</li>
 
49
<li><div class="fn"/>QString <b><a href="qurlinfo.html#name">name</a></b> () const</li>
 
50
<li><div class="fn"/>QString <b><a href="qurlinfo.html#owner">owner</a></b> () const</li>
 
51
<li><div class="fn"/>int <b><a href="qurlinfo.html#permissions">permissions</a></b> () const</li>
 
52
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setDir">setDir</a></b> ( bool <i>b</i> )</li>
 
53
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setFile">setFile</a></b> ( bool <i>b</i> )</li>
 
54
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setGroup">setGroup</a></b> ( const QString &amp; <i>s</i> )</li>
 
55
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setLastModified">setLastModified</a></b> ( const QDateTime &amp; <i>dt</i> )</li>
 
56
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setName">setName</a></b> ( const QString &amp; <i>name</i> )</li>
 
57
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setOwner">setOwner</a></b> ( const QString &amp; <i>s</i> )</li>
 
58
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setPermissions">setPermissions</a></b> ( int <i>p</i> )</li>
 
59
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setReadable">setReadable</a></b> ( bool <i>b</i> )</li>
 
60
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setSize">setSize</a></b> ( qint64 <i>size</i> )</li>
 
61
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setSymLink">setSymLink</a></b> ( bool <i>b</i> )</li>
 
62
<li><div class="fn"/>virtual void <b><a href="qurlinfo.html#setWritable">setWritable</a></b> ( bool <i>b</i> )</li>
 
63
<li><div class="fn"/>qint64 <b><a href="qurlinfo.html#size">size</a></b> () const</li>
 
64
<li><div class="fn"/>QUrlInfo &amp; <b><a href="qurlinfo.html#operator-eq">operator=</a></b> ( const QUrlInfo &amp; <i>ui</i> )</li>
 
65
<li><div class="fn"/>bool <b><a href="qurlinfo.html#operator-eq-eq">operator==</a></b> ( const QUrlInfo &amp; <i>i</i> ) const</li>
 
66
</ul>
 
67
<a name="static-public-members"></a>
 
68
<h3>Static Public Members</h3>
 
69
<ul>
 
70
<li><div class="fn"/>bool <b><a href="qurlinfo.html#equal">equal</a></b> ( const QUrlInfo &amp; <i>i1</i>, const QUrlInfo &amp; <i>i2</i>, int <i>sortBy</i> )</li>
 
71
<li><div class="fn"/>bool <b><a href="qurlinfo.html#greaterThan">greaterThan</a></b> ( const QUrlInfo &amp; <i>i1</i>, const QUrlInfo &amp; <i>i2</i>, int <i>sortBy</i> )</li>
 
72
<li><div class="fn"/>bool <b><a href="qurlinfo.html#lessThan">lessThan</a></b> ( const QUrlInfo &amp; <i>i1</i>, const QUrlInfo &amp; <i>i2</i>, int <i>sortBy</i> )</li>
 
73
</ul>
 
74
<a name="details"></a>
 
75
<hr />
 
76
<h2>Detailed Description</h2>
 
77
<p>The QUrlInfo class stores information about URLs.</p>
 
78
<p>The information about a URL that can be retrieved includes <a href="qurlinfo.html#name">name</a>(), <a href="qurlinfo.html#permissions">permissions</a>(), <a href="qurlinfo.html#owner">owner</a>(), <a href="qurlinfo.html#group">group</a>(), <a href="qurlinfo.html#size">size</a>(), <a href="qurlinfo.html#lastModified">lastModified</a>(), <a href="qurlinfo.html#lastRead">lastRead</a>(), <a href="qurlinfo.html#isDir">isDir</a>(), <a href="qurlinfo.html#isFile">isFile</a>(), <a href="qurlinfo.html#isSymLink">isSymLink</a>(), <a href="qurlinfo.html#isWritable">isWritable</a>(), <a href="qurlinfo.html#isReadable">isReadable</a>() and <a href="qurlinfo.html#isExecutable">isExecutable</a>().</p>
 
79
<p>You can create your own QUrlInfo objects passing in all the relevant information in the constructor, and you can modify a QUrlInfo; for each getter mentioned above there is an equivalent setter. Note that setting values does not affect the underlying resource that the QUrlInfo provides information about; for example if you call setWritable(true) on a read-only resource the only thing changed is the QUrlInfo object, not the resource.</p>
 
80
<p>See also <a href="qurl.html">QUrl</a>.</p>
 
81
<hr />
 
82
<h2>Member Type Documentation</h2>
 
83
<h3 class="fn"><a name="PermissionSpec-enum"></a>enum QUrlInfo::PermissionSpec</h3>
 
84
<p>This enum is used by the <a href="qurlinfo.html#permissions">permissions</a>() function to report the permissions of a file.</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>QUrlInfo::ReadOwner</tt></td><td align="center" valign="top"><tt>00400</tt></td><td valign="top">The file is readable by the owner of the file.</td></tr>
 
88
<tr><td valign="top"><tt>QUrlInfo::WriteOwner</tt></td><td align="center" valign="top"><tt>00200</tt></td><td valign="top">The file is writable by the owner of the file.</td></tr>
 
89
<tr><td valign="top"><tt>QUrlInfo::ExeOwner</tt></td><td align="center" valign="top"><tt>00100</tt></td><td valign="top">The file is executable by the owner of the file.</td></tr>
 
90
<tr><td valign="top"><tt>QUrlInfo::ReadGroup</tt></td><td align="center" valign="top"><tt>00040</tt></td><td valign="top">The file is readable by the group.</td></tr>
 
91
<tr><td valign="top"><tt>QUrlInfo::WriteGroup</tt></td><td align="center" valign="top"><tt>00020</tt></td><td valign="top">The file is writable by the group.</td></tr>
 
92
<tr><td valign="top"><tt>QUrlInfo::ExeGroup</tt></td><td align="center" valign="top"><tt>00010</tt></td><td valign="top">The file is executable by the group.</td></tr>
 
93
<tr><td valign="top"><tt>QUrlInfo::ReadOther</tt></td><td align="center" valign="top"><tt>00004</tt></td><td valign="top">The file is readable by anyone.</td></tr>
 
94
<tr><td valign="top"><tt>QUrlInfo::WriteOther</tt></td><td align="center" valign="top"><tt>00002</tt></td><td valign="top">The file is writable by anyone.</td></tr>
 
95
<tr><td valign="top"><tt>QUrlInfo::ExeOther</tt></td><td align="center" valign="top"><tt>00001</tt></td><td valign="top">The file is executable by anyone.</td></tr>
 
96
</table>
 
97
<hr />
 
98
<h2>Member Function Documentation</h2>
 
99
<h3 class="fn"><a name="QUrlInfo"></a>QUrlInfo::QUrlInfo ()</h3>
 
100
<p>Constructs an invalid <a href="qurlinfo.html">QUrlInfo</a> object with default values.</p>
 
101
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
102
<h3 class="fn"><a name="QUrlInfo-2"></a>QUrlInfo::QUrlInfo ( const QUrlInfo &amp; <i>ui</i> )</h3>
 
103
<p>Copy constructor, copies <i>ui</i> to this URL info object.</p>
 
104
<h3 class="fn"><a name="QUrlInfo-3"></a>QUrlInfo::QUrlInfo ( const <a href="qstring.html">QString</a> &amp; <i>name</i>, int <i>permissions</i>, const <a href="qstring.html">QString</a> &amp; <i>owner</i>, const <a href="qstring.html">QString</a> &amp; <i>group</i>, <a href="qtglobal.html#qint64-typedef">qint64</a> <i>size</i>, const <a href="qdatetime.html">QDateTime</a> &amp; <i>lastModified</i>, const <a href="qdatetime.html">QDateTime</a> &amp; <i>lastRead</i>, bool <i>isDir</i>, bool <i>isFile</i>, bool <i>isSymLink</i>, bool <i>isWritable</i>, bool <i>isReadable</i>, bool <i>isExecutable</i> )</h3>
 
105
<p>Constructs a <a href="qurlinfo.html">QUrlInfo</a> object by specifying all the URL's information.</p>
 
106
<p>The information that is passed is the <i>name</i>, file <i>permissions</i>, <i>owner</i> and <i>group</i> and the file's <i>size</i>. Also passed is the <i>lastModified</i> date/time and the <i>lastRead</i> date/time. Flags are also passed, specifically, <i>isDir</i>, <i>isFile</i>, <i>isSymLink</i>, <i>isWritable</i>, <i>isReadable</i> and <i>isExecutable</i>.</p>
 
107
<h3 class="fn"><a name="QUrlInfo-4"></a>QUrlInfo::QUrlInfo ( const <a href="qurl.html">QUrl</a> &amp; <i>url</i>, int <i>permissions</i>, const <a href="qstring.html">QString</a> &amp; <i>owner</i>, const <a href="qstring.html">QString</a> &amp; <i>group</i>, <a href="qtglobal.html#qint64-typedef">qint64</a> <i>size</i>, const <a href="qdatetime.html">QDateTime</a> &amp; <i>lastModified</i>, const <a href="qdatetime.html">QDateTime</a> &amp; <i>lastRead</i>, bool <i>isDir</i>, bool <i>isFile</i>, bool <i>isSymLink</i>, bool <i>isWritable</i>, bool <i>isReadable</i>, bool <i>isExecutable</i> )</h3>
 
108
<p>Constructs a <a href="qurlinfo.html">QUrlInfo</a> object by specifying all the URL's information.</p>
 
109
<p>The information that is passed is the <i>url</i>, file <i>permissions</i>, <i>owner</i> and <i>group</i> and the file's <i>size</i>. Also passed is the <i>lastModified</i> date/time and the <i>lastRead</i> date/time. Flags are also passed, specifically, <i>isDir</i>, <i>isFile</i>, <i>isSymLink</i>, <i>isWritable</i>, <i>isReadable</i> and <i>isExecutable</i>.</p>
 
110
<h3 class="fn"><a name="dtor.QUrlInfo"></a>QUrlInfo::~QUrlInfo ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
111
<p>Destroys the URL info object.</p>
 
112
<h3 class="fn"><a name="equal"></a>bool QUrlInfo::equal ( const QUrlInfo &amp; <i>i1</i>, const QUrlInfo &amp; <i>i2</i>, int <i>sortBy</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
113
<p>Returns true if <i>i1</i> equals to <i>i2</i>; otherwise returns false. The objects are compared by the value, which is specified by <i>sortBy</i>. This must be one of <a href="qdir.html#SortFlag-enum">QDir::Name</a>, <a href="qdir.html#SortFlag-enum">QDir::Time</a> or <a href="qdir.html#SortFlag-enum">QDir::Size</a>.</p>
 
114
<h3 class="fn"><a name="greaterThan"></a>bool QUrlInfo::greaterThan ( const QUrlInfo &amp; <i>i1</i>, const QUrlInfo &amp; <i>i2</i>, int <i>sortBy</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
115
<p>Returns true if <i>i1</i> is greater than <i>i2</i>; otherwise returns false. The objects are compared by the value, which is specified by <i>sortBy</i>. This must be one of <a href="qdir.html#SortFlag-enum">QDir::Name</a>, <a href="qdir.html#SortFlag-enum">QDir::Time</a> or <a href="qdir.html#SortFlag-enum">QDir::Size</a>.</p>
 
116
<h3 class="fn"><a name="group"></a><a href="qstring.html">QString</a> QUrlInfo::group () const</h3>
 
117
<p>Returns the group of the URL.</p>
 
118
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
119
<h3 class="fn"><a name="isDir"></a>bool QUrlInfo::isDir () const</h3>
 
120
<p>Returns true if the URL is a directory; otherwise returns false.</p>
 
121
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
122
<h3 class="fn"><a name="isExecutable"></a>bool QUrlInfo::isExecutable () const</h3>
 
123
<p>Returns true if the URL is executable; otherwise returns false.</p>
 
124
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
125
<h3 class="fn"><a name="isFile"></a>bool QUrlInfo::isFile () const</h3>
 
126
<p>Returns true if the URL is a file; otherwise returns false.</p>
 
127
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
128
<h3 class="fn"><a name="isReadable"></a>bool QUrlInfo::isReadable () const</h3>
 
129
<p>Returns true if the URL is readable; otherwise returns false.</p>
 
130
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
131
<h3 class="fn"><a name="isSymLink"></a>bool QUrlInfo::isSymLink () const</h3>
 
132
<p>Returns true if the URL is a symbolic link; otherwise returns false.</p>
 
133
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
134
<h3 class="fn"><a name="isValid"></a>bool QUrlInfo::isValid () const</h3>
 
135
<p>Returns true if the URL info is valid; otherwise returns false. Valid means that the <a href="qurlinfo.html">QUrlInfo</a> contains real information.</p>
 
136
<p>You should always check if the URL info is valid before relying on the values.</p>
 
137
<h3 class="fn"><a name="isWritable"></a>bool QUrlInfo::isWritable () const</h3>
 
138
<p>Returns true if the URL is writable; otherwise returns false.</p>
 
139
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
140
<h3 class="fn"><a name="lastModified"></a><a href="qdatetime.html">QDateTime</a> QUrlInfo::lastModified () const</h3>
 
141
<p>Returns the last modification date of the URL.</p>
 
142
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
143
<h3 class="fn"><a name="lastRead"></a><a href="qdatetime.html">QDateTime</a> QUrlInfo::lastRead () const</h3>
 
144
<p>Returns the date when the URL was last read.</p>
 
145
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
146
<h3 class="fn"><a name="lessThan"></a>bool QUrlInfo::lessThan ( const QUrlInfo &amp; <i>i1</i>, const QUrlInfo &amp; <i>i2</i>, int <i>sortBy</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
147
<p>Returns true if <i>i1</i> is less than <i>i2</i>; otherwise returns false. The objects are compared by the value, which is specified by <i>sortBy</i>. This must be one of <a href="qdir.html#SortFlag-enum">QDir::Name</a>, <a href="qdir.html#SortFlag-enum">QDir::Time</a> or <a href="qdir.html#SortFlag-enum">QDir::Size</a>.</p>
 
148
<h3 class="fn"><a name="name"></a><a href="qstring.html">QString</a> QUrlInfo::name () const</h3>
 
149
<p>Returns the file name of the URL.</p>
 
150
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
151
<h3 class="fn"><a name="owner"></a><a href="qstring.html">QString</a> QUrlInfo::owner () const</h3>
 
152
<p>Returns the owner of the URL.</p>
 
153
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
154
<h3 class="fn"><a name="permissions"></a>int QUrlInfo::permissions () const</h3>
 
155
<p>Returns the permissions of the URL. You can use the <tt>PermissionSpec</tt> flags to test for certain permissions.</p>
 
156
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
157
<h3 class="fn"><a name="setDir"></a>void QUrlInfo::setDir ( bool <i>b</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
158
<p>If <i>b</i> is true then the URL is set to be a directory; if <i>b</i> is false then the URL is set not to be a directory (which normally means it is a file). (Note that a URL can refer to both a file and a directory even though most file systems do not support this.)</p>
 
159
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
160
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
161
<h3 class="fn"><a name="setFile"></a>void QUrlInfo::setFile ( bool <i>b</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
162
<p>If <i>b</i> is true then the URL is set to be a file; if \b is false then the URL is set not to be a file (which normally means it is a directory). (Note that a URL can refer to both a file and a directory even though most file systems do not support this.)</p>
 
163
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
164
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
165
<h3 class="fn"><a name="setGroup"></a>void QUrlInfo::setGroup ( const <a href="qstring.html">QString</a> &amp; <i>s</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
166
<p>Specifies that the owning group of the URL is called <i>s</i>.</p>
 
167
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
168
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
169
<h3 class="fn"><a name="setLastModified"></a>void QUrlInfo::setLastModified ( const <a href="qdatetime.html">QDateTime</a> &amp; <i>dt</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
170
<p>Specifies that the object the URL refers to was last modified at <i>dt</i>.</p>
 
171
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
172
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
173
<h3 class="fn"><a name="setName"></a>void QUrlInfo::setName ( const <a href="qstring.html">QString</a> &amp; <i>name</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
174
<p>Sets the name of the URL to <i>name</i>. The name is the full text, for example, &quot;http://doc.trolltech.com/qurlinfo.html&quot;.</p>
 
175
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
176
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
177
<h3 class="fn"><a name="setOwner"></a>void QUrlInfo::setOwner ( const <a href="qstring.html">QString</a> &amp; <i>s</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
178
<p>Specifies that the owner of the URL is called <i>s</i>.</p>
 
179
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
180
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
181
<h3 class="fn"><a name="setPermissions"></a>void QUrlInfo::setPermissions ( int <i>p</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
182
<p>Specifies that the URL has access permisions, <i>p</i>.</p>
 
183
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
184
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
185
<h3 class="fn"><a name="setReadable"></a>void QUrlInfo::setReadable ( bool <i>b</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
186
<p>Specifies that the URL is readable if <i>b</i> is true and not readable if <i>b</i> is false.</p>
 
187
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
188
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
189
<h3 class="fn"><a name="setSize"></a>void QUrlInfo::setSize ( <a href="qtglobal.html#qint64-typedef">qint64</a> <i>size</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
190
<p>Specifies the <i>size</i> of the URL.</p>
 
191
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
192
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
193
<h3 class="fn"><a name="setSymLink"></a>void QUrlInfo::setSymLink ( bool <i>b</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
194
<p>Specifies that the URL refers to a symbolic link if <i>b</i> is true and that it does not if <i>b</i> is false.</p>
 
195
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
196
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
197
<h3 class="fn"><a name="setWritable"></a>void QUrlInfo::setWritable ( bool <i>b</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
198
<p>Specifies that the URL is writable if <i>b</i> is true and not writable if <i>b</i> is false.</p>
 
199
<p>If you call this function for an invalid URL info, this function turns it into a valid one.</p>
 
200
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
201
<h3 class="fn"><a name="size"></a><a href="qtglobal.html#qint64-typedef">qint64</a> QUrlInfo::size () const</h3>
 
202
<p>Returns the size of the URL.</p>
 
203
<p>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
 
204
<h3 class="fn"><a name="operator-eq"></a>QUrlInfo &amp; QUrlInfo::operator= ( const QUrlInfo &amp; <i>ui</i> )</h3>
 
205
<p>Assigns the values of <i>ui</i> to this <a href="qurlinfo.html">QUrlInfo</a> object.</p>
 
206
<h3 class="fn"><a name="operator-eq-eq"></a>bool QUrlInfo::operator== ( const QUrlInfo &amp; <i>i</i> ) const</h3>
 
207
<p>Compares this <a href="qurlinfo.html">QUrlInfo</a> with <i>i</i> and returns true if they are equal; otherwise returns false.</p>
 
208
<p /><address><hr /><div align="center">
 
209
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
210
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
211
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
212
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
213
</tr></table></div></address></body>
 
214
</html>