1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qurlinfo.cpp:80 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QUrlInfo Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QUrlInfo Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QUrlInfo class stores information about URLs.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qurlinfo-h.html">qurlinfo.h</a>></tt>
|
---|
37 | <p><a href="qurlinfo-members.html">List of all member functions.</a>
|
---|
38 | <h2>Public Members</h2>
|
---|
39 | <ul>
|
---|
40 | <li class=fn>enum <a href="#PermissionSpec-enum"><b>PermissionSpec</b></a> { ReadOwner = 00400, WriteOwner = 00200, ExeOwner = 00100, ReadGroup = 00040, WriteGroup = 00020, ExeGroup = 00010, ReadOther = 00004, WriteOther = 00002, ExeOther = 00001 }</li>
|
---|
41 | <li class=fn><a href="#QUrlInfo"><b>QUrlInfo</b></a> ()</li>
|
---|
42 | <li class=fn><a href="#QUrlInfo-2"><b>QUrlInfo</b></a> ( const QUrlOperator & path, const QString & file )</li>
|
---|
43 | <li class=fn><a href="#QUrlInfo-3"><b>QUrlInfo</b></a> ( const QUrlInfo & ui )</li>
|
---|
44 | <li class=fn><a href="#QUrlInfo-4"><b>QUrlInfo</b></a> ( const QString & name, int permissions, const QString & owner, const QString & group, uint size, const QDateTime & lastModified, const QDateTime & lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable )</li>
|
---|
45 | <li class=fn><a href="#QUrlInfo-5"><b>QUrlInfo</b></a> ( const QUrl & url, int permissions, const QString & owner, const QString & group, uint size, const QDateTime & lastModified, const QDateTime & lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable )</li>
|
---|
46 | <li class=fn>QUrlInfo & <a href="#operator-eq"><b>operator=</b></a> ( const QUrlInfo & ui )</li>
|
---|
47 | <li class=fn>virtual <a href="#~QUrlInfo"><b>~QUrlInfo</b></a> ()</li>
|
---|
48 | <li class=fn>virtual void <a href="#setName"><b>setName</b></a> ( const QString & name )</li>
|
---|
49 | <li class=fn>virtual void <a href="#setDir"><b>setDir</b></a> ( bool b )</li>
|
---|
50 | <li class=fn>virtual void <a href="#setFile"><b>setFile</b></a> ( bool b )</li>
|
---|
51 | <li class=fn>virtual void <a href="#setSymLink"><b>setSymLink</b></a> ( bool b )</li>
|
---|
52 | <li class=fn>virtual void <a href="#setOwner"><b>setOwner</b></a> ( const QString & s )</li>
|
---|
53 | <li class=fn>virtual void <a href="#setGroup"><b>setGroup</b></a> ( const QString & s )</li>
|
---|
54 | <li class=fn>virtual void <a href="#setSize"><b>setSize</b></a> ( uint size )</li>
|
---|
55 | <li class=fn>virtual void <a href="#setWritable"><b>setWritable</b></a> ( bool b )</li>
|
---|
56 | <li class=fn>virtual void <a href="#setReadable"><b>setReadable</b></a> ( bool b )</li>
|
---|
57 | <li class=fn>virtual void <a href="#setPermissions"><b>setPermissions</b></a> ( int p )</li>
|
---|
58 | <li class=fn>virtual void <a href="#setLastModified"><b>setLastModified</b></a> ( const QDateTime & dt )</li>
|
---|
59 | <li class=fn>bool <a href="#isValid"><b>isValid</b></a> () const</li>
|
---|
60 | <li class=fn>QString <a href="#name"><b>name</b></a> () const</li>
|
---|
61 | <li class=fn>int <a href="#permissions"><b>permissions</b></a> () const</li>
|
---|
62 | <li class=fn>QString <a href="#owner"><b>owner</b></a> () const</li>
|
---|
63 | <li class=fn>QString <a href="#group"><b>group</b></a> () const</li>
|
---|
64 | <li class=fn>uint <a href="#size"><b>size</b></a> () const</li>
|
---|
65 | <li class=fn>QDateTime <a href="#lastModified"><b>lastModified</b></a> () const</li>
|
---|
66 | <li class=fn>QDateTime <a href="#lastRead"><b>lastRead</b></a> () const</li>
|
---|
67 | <li class=fn>bool <a href="#isDir"><b>isDir</b></a> () const</li>
|
---|
68 | <li class=fn>bool <a href="#isFile"><b>isFile</b></a> () const</li>
|
---|
69 | <li class=fn>bool <a href="#isSymLink"><b>isSymLink</b></a> () const</li>
|
---|
70 | <li class=fn>bool <a href="#isWritable"><b>isWritable</b></a> () const</li>
|
---|
71 | <li class=fn>bool <a href="#isReadable"><b>isReadable</b></a> () const</li>
|
---|
72 | <li class=fn>bool <a href="#isExecutable"><b>isExecutable</b></a> () const</li>
|
---|
73 | <li class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const QUrlInfo & i ) const</li>
|
---|
74 | </ul>
|
---|
75 | <h2>Static Public Members</h2>
|
---|
76 | <ul>
|
---|
77 | <li class=fn>bool <a href="#greaterThan"><b>greaterThan</b></a> ( const QUrlInfo & i1, const QUrlInfo & i2, int sortBy )</li>
|
---|
78 | <li class=fn>bool <a href="#lessThan"><b>lessThan</b></a> ( const QUrlInfo & i1, const QUrlInfo & i2, int sortBy )</li>
|
---|
79 | <li class=fn>bool <a href="#equal"><b>equal</b></a> ( const QUrlInfo & i1, const QUrlInfo & i2, int sortBy )</li>
|
---|
80 | </ul>
|
---|
81 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
82 |
|
---|
83 |
|
---|
84 | The QUrlInfo class stores information about URLs.
|
---|
85 | <p>
|
---|
86 |
|
---|
87 | <p> This class is just a container for storing information about URLs,
|
---|
88 | which is why all information must be passed in the constructor.
|
---|
89 | <p> Unless you're reimplementing a network protocol you're unlikely to
|
---|
90 | create QUrlInfo objects yourself, but you may receive QUrlInfo
|
---|
91 | objects from functions, e.g. <a href="qurloperator.html#info">QUrlOperator::info</a>().
|
---|
92 | <p> The information that can be retrieved includes <a href="#name">name</a>(),
|
---|
93 | <a href="#permissions">permissions</a>(), <a href="#owner">owner</a>(), <a href="#group">group</a>(), <a href="#size">size</a>(), <a href="#lastModified">lastModified</a>(),
|
---|
94 | <a href="#lastRead">lastRead</a>(), <a href="#isDir">isDir</a>(), <a href="#isFile">isFile</a>(), <a href="#isSymLink">isSymLink</a>(), <a href="#isWritable">isWritable</a>(),
|
---|
95 | <a href="#isReadable">isReadable</a>() and <a href="#isExecutable">isExecutable</a>().
|
---|
96 | <p>See also <a href="io.html">Input/Output and Networking</a> and <a href="misc.html">Miscellaneous Classes</a>.
|
---|
97 |
|
---|
98 | <hr><h2>Member Type Documentation</h2>
|
---|
99 | <h3 class=fn><a name="PermissionSpec-enum"></a>QUrlInfo::PermissionSpec</h3>
|
---|
100 |
|
---|
101 | <p> This enum is used by the <a href="#permissions">permissions</a>() function to report the
|
---|
102 | permissions of a file.
|
---|
103 | <ul>
|
---|
104 | <li><tt>QUrlInfo::ReadOwner</tt> - The file is readable by the owner of the file.
|
---|
105 | <li><tt>QUrlInfo::WriteOwner</tt> - The file is writable by the owner of the file.
|
---|
106 | <li><tt>QUrlInfo::ExeOwner</tt> - The file is executable by the owner of the file.
|
---|
107 | <li><tt>QUrlInfo::ReadGroup</tt> - The file is readable by the group.
|
---|
108 | <li><tt>QUrlInfo::WriteGroup</tt> - The file is writable by the group.
|
---|
109 | <li><tt>QUrlInfo::ExeGroup</tt> - The file is executable by the group.
|
---|
110 | <li><tt>QUrlInfo::ReadOther</tt> - The file is readable by anyone.
|
---|
111 | <li><tt>QUrlInfo::WriteOther</tt> - The file is writable by anyone.
|
---|
112 | <li><tt>QUrlInfo::ExeOther</tt> - The file is executable by anyone.
|
---|
113 | </ul>
|
---|
114 | <hr><h2>Member Function Documentation</h2>
|
---|
115 | <h3 class=fn><a name="QUrlInfo"></a>QUrlInfo::QUrlInfo ()
|
---|
116 | </h3>
|
---|
117 | Constructs an invalid QUrlInfo object with default values.
|
---|
118 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
119 |
|
---|
120 | <h3 class=fn><a name="QUrlInfo-2"></a>QUrlInfo::QUrlInfo ( const <a href="qurloperator.html">QUrlOperator</a> & path, const <a href="qstring.html">QString</a> & file )
|
---|
121 | </h3>
|
---|
122 | Constructs a QUrlInfo object with information about the file <em>file</em> in the <em>path</em>. It tries to find the information about the <em>file</em> in the <a href="qurloperator.html">QUrlOperator</a> <em>path</em>.
|
---|
123 | <p> If the information is not found, this constructor creates an
|
---|
124 | invalid QUrlInfo, i.e. <a href="#isValid">isValid</a>() returns FALSE. You should always
|
---|
125 | check if the URL info is valid before relying on the return values
|
---|
126 | of any getter functions.
|
---|
127 | <p> If <em>file</em> is empty, it defaults to the QUrlOperator <em>path</em>, i.e.
|
---|
128 | to the directory.
|
---|
129 | <p> <p>See also <a href="#isValid">isValid</a>() and <a href="qurloperator.html#info">QUrlOperator::info</a>().
|
---|
130 |
|
---|
131 | <h3 class=fn><a name="QUrlInfo-3"></a>QUrlInfo::QUrlInfo ( const <a href="qurlinfo.html">QUrlInfo</a> & ui )
|
---|
132 | </h3>
|
---|
133 | Copy constructor, copies <em>ui</em> to this URL info object.
|
---|
134 |
|
---|
135 | <h3 class=fn><a name="QUrlInfo-4"></a>QUrlInfo::QUrlInfo ( const <a href="qstring.html">QString</a> & name, int permissions, const <a href="qstring.html">QString</a> & owner, const <a href="qstring.html">QString</a> & group, uint size, const <a href="qdatetime.html">QDateTime</a> & lastModified, const <a href="qdatetime.html">QDateTime</a> & lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable )
|
---|
136 | </h3>
|
---|
137 | Constructs a QUrlInfo object by specifying all the URL's
|
---|
138 | information.
|
---|
139 | <p> The information that is passed is the <em>name</em>, file <em>permissions</em>, <em>owner</em> and <em>group</em> and the file's <em>size</em>. Also
|
---|
140 | passed is the <em>lastModified</em> date/time and the <em>lastRead</em>
|
---|
141 | date/time. Flags are also passed, specifically, <em>isDir</em>, <em>isFile</em>, <em>isSymLink</em>, <em>isWritable</em>, <em>isReadable</em> and <em>isExecutable</em>.
|
---|
142 |
|
---|
143 | <h3 class=fn><a name="QUrlInfo-5"></a>QUrlInfo::QUrlInfo ( const <a href="qurl.html">QUrl</a> & url, int permissions, const <a href="qstring.html">QString</a> & owner, const <a href="qstring.html">QString</a> & group, uint size, const <a href="qdatetime.html">QDateTime</a> & lastModified, const <a href="qdatetime.html">QDateTime</a> & lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable )
|
---|
144 | </h3>
|
---|
145 | Constructs a QUrlInfo object by specifying all the URL's
|
---|
146 | information.
|
---|
147 | <p> The information that is passed is the <em>url</em>, file <em>permissions</em>, <em>owner</em> and <em>group</em> and the file's <em>size</em>. Also
|
---|
148 | passed is the <em>lastModified</em> date/time and the <em>lastRead</em>
|
---|
149 | date/time. Flags are also passed, specifically, <em>isDir</em>, <em>isFile</em>, <em>isSymLink</em>, <em>isWritable</em>, <em>isReadable</em> and <em>isExecutable</em>.
|
---|
150 |
|
---|
151 | <h3 class=fn><a name="~QUrlInfo"></a>QUrlInfo::~QUrlInfo ()<tt> [virtual]</tt>
|
---|
152 | </h3>
|
---|
153 | Destroys the URL info object.
|
---|
154 | <p> The <a href="qurloperator.html">QUrlOperator</a> object to which this URL referred (if any) is not
|
---|
155 | affected.
|
---|
156 |
|
---|
157 | <h3 class=fn>bool <a name="equal"></a>QUrlInfo::equal ( const <a href="qurlinfo.html">QUrlInfo</a> & i1, const <a href="qurlinfo.html">QUrlInfo</a> & i2, int sortBy )<tt> [static]</tt>
|
---|
158 | </h3>
|
---|
159 | Returns TRUE if <em>i1</em> equals to <em>i2</em>; otherwise returns FALSE.
|
---|
160 | The objects are compared by the value, which is specified by <em>sortBy</em>. This must be one of QDir::Name, QDir::Time or QDir::Size.
|
---|
161 |
|
---|
162 | <h3 class=fn>bool <a name="greaterThan"></a>QUrlInfo::greaterThan ( const <a href="qurlinfo.html">QUrlInfo</a> & i1, const <a href="qurlinfo.html">QUrlInfo</a> & i2, int sortBy )<tt> [static]</tt>
|
---|
163 | </h3>
|
---|
164 | Returns TRUE if <em>i1</em> is greater than <em>i2</em>; otherwise returns
|
---|
165 | FALSE. The objects are compared by the value, which is specified
|
---|
166 | by <em>sortBy</em>. This must be one of QDir::Name, QDir::Time or
|
---|
167 | QDir::Size.
|
---|
168 |
|
---|
169 | <h3 class=fn><a href="qstring.html">QString</a> <a name="group"></a>QUrlInfo::group () const
|
---|
170 | </h3>
|
---|
171 | Returns the group of the URL.
|
---|
172 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
173 |
|
---|
174 | <h3 class=fn>bool <a name="isDir"></a>QUrlInfo::isDir () const
|
---|
175 | </h3>
|
---|
176 | Returns TRUE if the URL is a directory; otherwise returns FALSE.
|
---|
177 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
178 |
|
---|
179 | <p>Examples: <a href="ftpclient-example.html#x773">network/ftpclient/ftpmainwindow.ui.h</a> and <a href="networkprotocol-example.html#x697">network/networkprotocol/nntp.cpp</a>.
|
---|
180 | <h3 class=fn>bool <a name="isExecutable"></a>QUrlInfo::isExecutable () const
|
---|
181 | </h3>
|
---|
182 | Returns TRUE if the URL is executable; otherwise returns FALSE.
|
---|
183 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
184 |
|
---|
185 | <h3 class=fn>bool <a name="isFile"></a>QUrlInfo::isFile () const
|
---|
186 | </h3>
|
---|
187 | Returns TRUE if the URL is a file; otherwise returns FALSE.
|
---|
188 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
189 |
|
---|
190 | <h3 class=fn>bool <a name="isReadable"></a>QUrlInfo::isReadable () const
|
---|
191 | </h3>
|
---|
192 | Returns TRUE if the URL is readable; otherwise returns FALSE.
|
---|
193 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
194 |
|
---|
195 | <h3 class=fn>bool <a name="isSymLink"></a>QUrlInfo::isSymLink () const
|
---|
196 | </h3>
|
---|
197 | Returns TRUE if the URL is a symbolic link; otherwise returns FALSE.
|
---|
198 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
199 |
|
---|
200 | <h3 class=fn>bool <a name="isValid"></a>QUrlInfo::isValid () const
|
---|
201 | </h3>
|
---|
202 | Returns TRUE if the URL info is valid; otherwise returns FALSE.
|
---|
203 | Valid means that the QUrlInfo contains real information. For
|
---|
204 | example, a call to <a href="qurloperator.html#info">QUrlOperator::info</a>() might return a an invalid
|
---|
205 | QUrlInfo, if no information about the requested entry is
|
---|
206 | available.
|
---|
207 | <p> You should always check if the URL info is valid before relying on
|
---|
208 | the values.
|
---|
209 |
|
---|
210 | <h3 class=fn>bool <a name="isWritable"></a>QUrlInfo::isWritable () const
|
---|
211 | </h3>
|
---|
212 | Returns TRUE if the URL is writable; otherwise returns FALSE.
|
---|
213 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
214 |
|
---|
215 | <h3 class=fn><a href="qdatetime.html">QDateTime</a> <a name="lastModified"></a>QUrlInfo::lastModified () const
|
---|
216 | </h3>
|
---|
217 | Returns the last modification date of the URL.
|
---|
218 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
219 |
|
---|
220 | <p>Example: <a href="ftpclient-example.html#x774">network/ftpclient/ftpmainwindow.ui.h</a>.
|
---|
221 | <h3 class=fn><a href="qdatetime.html">QDateTime</a> <a name="lastRead"></a>QUrlInfo::lastRead () const
|
---|
222 | </h3>
|
---|
223 | Returns the date when the URL was last read.
|
---|
224 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
225 |
|
---|
226 | <h3 class=fn>bool <a name="lessThan"></a>QUrlInfo::lessThan ( const <a href="qurlinfo.html">QUrlInfo</a> & i1, const <a href="qurlinfo.html">QUrlInfo</a> & i2, int sortBy )<tt> [static]</tt>
|
---|
227 | </h3>
|
---|
228 | Returns TRUE if <em>i1</em> is less than <em>i2</em>; otherwise returns FALSE.
|
---|
229 | The objects are compared by the value, which is specified by <em>sortBy</em>. This must be one of QDir::Name, QDir::Time or QDir::Size.
|
---|
230 |
|
---|
231 | <h3 class=fn><a href="qstring.html">QString</a> <a name="name"></a>QUrlInfo::name () const
|
---|
232 | </h3>
|
---|
233 | Returns the file name of the URL.
|
---|
234 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
235 |
|
---|
236 | <p>Example: <a href="ftpclient-example.html#x775">network/ftpclient/ftpmainwindow.ui.h</a>.
|
---|
237 | <h3 class=fn><a href="qurlinfo.html">QUrlInfo</a> & <a name="operator-eq"></a>QUrlInfo::operator= ( const <a href="qurlinfo.html">QUrlInfo</a> & ui )
|
---|
238 | </h3>
|
---|
239 | Assigns the values of <em>ui</em> to this QUrlInfo object.
|
---|
240 |
|
---|
241 | <h3 class=fn>bool <a name="operator-eq-eq"></a>QUrlInfo::operator== ( const <a href="qurlinfo.html">QUrlInfo</a> & i ) const
|
---|
242 | </h3>
|
---|
243 | Compares this QUrlInfo with <em>i</em> and returns TRUE if they are
|
---|
244 | equal; otherwise returns FALSE.
|
---|
245 |
|
---|
246 | <h3 class=fn><a href="qstring.html">QString</a> <a name="owner"></a>QUrlInfo::owner () const
|
---|
247 | </h3>
|
---|
248 | Returns the owner of the URL.
|
---|
249 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
250 |
|
---|
251 | <h3 class=fn>int <a name="permissions"></a>QUrlInfo::permissions () const
|
---|
252 | </h3>
|
---|
253 | Returns the permissions of the URL. You can use the <a href="#PermissionSpec-enum">PermissionSpec</a> flags
|
---|
254 | to test for certain permissions.
|
---|
255 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
256 |
|
---|
257 | <h3 class=fn>void <a name="setDir"></a>QUrlInfo::setDir ( bool b )<tt> [virtual]</tt>
|
---|
258 | </h3>
|
---|
259 | If <em>b</em> is TRUE then the URL is set to be a directory; if \b is
|
---|
260 | FALSE then the URL is set not to be a directory (which normally
|
---|
261 | means it is a file). (Note that a URL can refer to both a file and
|
---|
262 | a directory even though most file systems do not support this.)
|
---|
263 | <p> If you call this function for an invalid URL info, this function
|
---|
264 | turns it into a valid one.
|
---|
265 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
266 |
|
---|
267 | <p>Example: <a href="networkprotocol-example.html#x698">network/networkprotocol/nntp.cpp</a>.
|
---|
268 | <h3 class=fn>void <a name="setFile"></a>QUrlInfo::setFile ( bool b )<tt> [virtual]</tt>
|
---|
269 | </h3>
|
---|
270 | If <em>b</em> is TRUE then the URL is set to be a file; if \b is FALSE
|
---|
271 | then the URL is set not to be a file (which normally means it is a
|
---|
272 | directory). (Note that a URL can refer to both a file and a
|
---|
273 | directory even though most file systems do not support this.)
|
---|
274 | <p> If you call this function for an invalid URL info, this function
|
---|
275 | turns it into a valid one.
|
---|
276 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
277 |
|
---|
278 | <p>Example: <a href="networkprotocol-example.html#x699">network/networkprotocol/nntp.cpp</a>.
|
---|
279 | <h3 class=fn>void <a name="setGroup"></a>QUrlInfo::setGroup ( const <a href="qstring.html">QString</a> & s )<tt> [virtual]</tt>
|
---|
280 | </h3>
|
---|
281 | Specifies that the owning group of the URL is called <em>s</em>.
|
---|
282 | <p> If you call this function for an invalid URL info, this function
|
---|
283 | turns it into a valid one.
|
---|
284 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
285 |
|
---|
286 | <h3 class=fn>void <a name="setLastModified"></a>QUrlInfo::setLastModified ( const <a href="qdatetime.html">QDateTime</a> & dt )<tt> [virtual]</tt>
|
---|
287 | </h3>
|
---|
288 | Specifies that the object the URL refers to was last modified at
|
---|
289 | <em>dt</em>.
|
---|
290 | <p> If you call this function for an invalid URL info, this function
|
---|
291 | turns it into a valid one.
|
---|
292 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
293 |
|
---|
294 | <h3 class=fn>void <a name="setName"></a>QUrlInfo::setName ( const <a href="qstring.html">QString</a> & name )<tt> [virtual]</tt>
|
---|
295 | </h3>
|
---|
296 | Sets the name of the URL to <em>name</em>. The name is the full text,
|
---|
297 | for example, "http://doc.trolltech.com/qurlinfo.html".
|
---|
298 | <p> If you call this function for an invalid URL info, this function
|
---|
299 | turns it into a valid one.
|
---|
300 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
301 |
|
---|
302 | <p>Example: <a href="networkprotocol-example.html#x700">network/networkprotocol/nntp.cpp</a>.
|
---|
303 | <h3 class=fn>void <a name="setOwner"></a>QUrlInfo::setOwner ( const <a href="qstring.html">QString</a> & s )<tt> [virtual]</tt>
|
---|
304 | </h3>
|
---|
305 | Specifies that the owner of the URL is called <em>s</em>.
|
---|
306 | <p> If you call this function for an invalid URL info, this function
|
---|
307 | turns it into a valid one.
|
---|
308 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
309 |
|
---|
310 | <h3 class=fn>void <a name="setPermissions"></a>QUrlInfo::setPermissions ( int p )<tt> [virtual]</tt>
|
---|
311 | </h3>
|
---|
312 | Specifies that the URL has access permisions, <em>p</em>.
|
---|
313 | <p> If you call this function for an invalid URL info, this function
|
---|
314 | turns it into a valid one.
|
---|
315 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
316 |
|
---|
317 | <h3 class=fn>void <a name="setReadable"></a>QUrlInfo::setReadable ( bool b )<tt> [virtual]</tt>
|
---|
318 | </h3>
|
---|
319 | Specifies that the URL is readable if <em>b</em> is TRUE and not
|
---|
320 | readable if <em>b</em> is FALSE.
|
---|
321 | <p> If you call this function for an invalid URL info, this function
|
---|
322 | turns it into a valid one.
|
---|
323 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
324 |
|
---|
325 | <p>Example: <a href="networkprotocol-example.html#x701">network/networkprotocol/nntp.cpp</a>.
|
---|
326 | <h3 class=fn>void <a name="setSize"></a>QUrlInfo::setSize ( uint size )<tt> [virtual]</tt>
|
---|
327 | </h3>
|
---|
328 | Specifies the <em>size</em> of the URL.
|
---|
329 | <p> If you call this function for an invalid URL info, this function
|
---|
330 | turns it into a valid one.
|
---|
331 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
332 |
|
---|
333 | <h3 class=fn>void <a name="setSymLink"></a>QUrlInfo::setSymLink ( bool b )<tt> [virtual]</tt>
|
---|
334 | </h3>
|
---|
335 | Specifies that the URL refers to a symbolic link if <em>b</em> is TRUE
|
---|
336 | and that it does not if <em>b</em> is FALSE.
|
---|
337 | <p> If you call this function for an invalid URL info, this function
|
---|
338 | turns it into a valid one.
|
---|
339 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
340 |
|
---|
341 | <p>Example: <a href="networkprotocol-example.html#x702">network/networkprotocol/nntp.cpp</a>.
|
---|
342 | <h3 class=fn>void <a name="setWritable"></a>QUrlInfo::setWritable ( bool b )<tt> [virtual]</tt>
|
---|
343 | </h3>
|
---|
344 | Specifies that the URL is writable if <em>b</em> is TRUE and not
|
---|
345 | writable if <em>b</em> is FALSE.
|
---|
346 | <p> If you call this function for an invalid URL info, this function
|
---|
347 | turns it into a valid one.
|
---|
348 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
349 |
|
---|
350 | <p>Example: <a href="networkprotocol-example.html#x703">network/networkprotocol/nntp.cpp</a>.
|
---|
351 | <h3 class=fn>uint <a name="size"></a>QUrlInfo::size () const
|
---|
352 | </h3>
|
---|
353 | Returns the size of the URL.
|
---|
354 | <p> <p>See also <a href="#isValid">isValid</a>().
|
---|
355 |
|
---|
356 | <p>Example: <a href="ftpclient-example.html#x776">network/ftpclient/ftpmainwindow.ui.h</a>.
|
---|
357 | <!-- eof -->
|
---|
358 | <hr><p>
|
---|
359 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
360 | Copyright © 1995-2007
|
---|
361 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
362 | <table width=100% cellspacing=0 border=0><tr>
|
---|
363 | <td>Copyright © 2007
|
---|
364 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
365 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
366 | </table></div></address></body>
|
---|
367 | </html>
|
---|