1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QUrlInfo Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><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="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QUrlInfo Class Reference<br /><sup><sup>[<a href="qtnetwork.html">QtNetwork</a> module]</sup></sup></h1><p>The QUrlInfo class stores information about URLs. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qurlinfo.html#PermissionSpec-enum">PermissionSpec</a></b> { ReadOwner, WriteOwner, ExeOwner, ReadGroup, ..., ExeOther }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qurlinfo.html#QUrlInfo">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#QUrlInfo-2">__init__</a></b> (<i>self</i>, QUrlInfo <i>ui</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#QUrlInfo-3">__init__</a></b> (<i>self</i>, QString <i>name</i>, int <i>permissions</i>, QString <i>owner</i>, QString <i>group</i>, int <i>size</i>, QDateTime <i>lastModified</i>, QDateTime <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><li><div class="fn" /><b><a href="qurlinfo.html#QUrlInfo-4">__init__</a></b> (<i>self</i>, QUrl <i>url</i>, int <i>permissions</i>, QString <i>owner</i>, QString <i>group</i>, int <i>size</i>, QDateTime <i>lastModified</i>, QDateTime <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><li><div class="fn" />QString <b><a href="qurlinfo.html#group">group</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#isDir">isDir</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#isExecutable">isExecutable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#isFile">isFile</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#isReadable">isReadable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#isSymLink">isSymLink</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#isValid">isValid</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#isWritable">isWritable</a></b> (<i>self</i>)</li><li><div class="fn" />QDateTime <b><a href="qurlinfo.html#lastModified">lastModified</a></b> (<i>self</i>)</li><li><div class="fn" />QDateTime <b><a href="qurlinfo.html#lastRead">lastRead</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qurlinfo.html#name">name</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qurlinfo.html#owner">owner</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qurlinfo.html#permissions">permissions</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setDir">setDir</a></b> (<i>self</i>, bool <i>b</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setFile">setFile</a></b> (<i>self</i>, bool <i>b</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setGroup">setGroup</a></b> (<i>self</i>, QString <i>s</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setLastModified">setLastModified</a></b> (<i>self</i>, QDateTime <i>dt</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setLastRead">setLastRead</a></b> (<i>self</i>, QDateTime <i>dt</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setName">setName</a></b> (<i>self</i>, QString <i>name</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setOwner">setOwner</a></b> (<i>self</i>, QString <i>s</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setPermissions">setPermissions</a></b> (<i>self</i>, int <i>p</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setReadable">setReadable</a></b> (<i>self</i>, bool <i>b</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setSize">setSize</a></b> (<i>self</i>, int <i>size</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setSymLink">setSymLink</a></b> (<i>self</i>, bool <i>b</i>)</li><li><div class="fn" /><b><a href="qurlinfo.html#setWritable">setWritable</a></b> (<i>self</i>, bool <i>b</i>)</li><li><div class="fn" />int <b><a href="qurlinfo.html#size">size</a></b> (<i>self</i>)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />bool <b><a href="qurlinfo.html#equal">equal</a></b> (QUrlInfo <i>i1</i>, QUrlInfo <i>i2</i>, int <i>sortBy</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#greaterThan">greaterThan</a></b> (QUrlInfo <i>i1</i>, QUrlInfo <i>i2</i>, int <i>sortBy</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#lessThan">lessThan</a></b> (QUrlInfo <i>i1</i>, QUrlInfo <i>i2</i>, int <i>sortBy</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qurlinfo.html#__eq__">__eq__</a></b> (<i>self</i>, QUrlInfo <i>i</i>)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#__ne__">__ne__</a></b> (<i>self</i>, QUrlInfo <i>i</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QUrlInfo class stores information about URLs.</p>
<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>
<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>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="PermissionSpec-enum" />QUrlInfo.PermissionSpec</h3><p>This enum is used by the <a href="qurlinfo.html#permissions">permissions</a>() function to report
the permissions of a file.</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.ReadOwner</tt></td>
<td class="topAlign"><tt>00400</tt></td>
<td class="topAlign">The file is readable by the owner of the
file.</td>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.WriteOwner</tt></td>
<td class="topAlign"><tt>00200</tt></td>
<td class="topAlign">The file is writable by the owner of the
file.</td>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.ExeOwner</tt></td>
<td class="topAlign"><tt>00100</tt></td>
<td class="topAlign">The file is executable by the owner of the
file.</td>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.ReadGroup</tt></td>
<td class="topAlign"><tt>00040</tt></td>
<td class="topAlign">The file is readable by the group.</td>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.WriteGroup</tt></td>
<td class="topAlign"><tt>00020</tt></td>
<td class="topAlign">The file is writable by the group.</td>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.ExeGroup</tt></td>
<td class="topAlign"><tt>00010</tt></td>
<td class="topAlign">The file is executable by the group.</td>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.ReadOther</tt></td>
<td class="topAlign"><tt>00004</tt></td>
<td class="topAlign">The file is readable by anyone.</td>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.WriteOther</tt></td>
<td class="topAlign"><tt>00002</tt></td>
<td class="topAlign">The file is writable by anyone.</td>
</tr>
<tr>
<td class="topAlign"><tt>QUrlInfo.ExeOther</tt></td>
<td class="topAlign"><tt>00001</tt></td>
<td class="topAlign">The file is executable by anyone.</td>
</tr>
</table>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QUrlInfo" />QUrlInfo.__init__ (<i>self</i>)</h3><p>Constructs an invalid <a href="qurlinfo.html">QUrlInfo</a>
object with default values.</p>
<p><b>See also</b> <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="QUrlInfo-2" />QUrlInfo.__init__ (<i>self</i>, <a href="qurlinfo.html">QUrlInfo</a> <i>ui</i>)</h3><p>Copy constructor, copies <i>ui</i> to this URL info object.</p>
<h3 class="fn"><a name="QUrlInfo-3" />QUrlInfo.__init__ (<i>self</i>, QString <i>name</i>, int <i>permissions</i>, QString <i>owner</i>, QString <i>group</i>, int <i>size</i>, <a href="qdatetime.html">QDateTime</a> <i>lastModified</i>, <a href="qdatetime.html">QDateTime</a> <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><p>Constructs a <a href="qurlinfo.html">QUrlInfo</a> object by
specifying all the URL's information.</p>
<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>
<h3 class="fn"><a name="QUrlInfo-4" />QUrlInfo.__init__ (<i>self</i>, <a href="qurl.html">QUrl</a> <i>url</i>, int <i>permissions</i>, QString <i>owner</i>, QString <i>group</i>, int <i>size</i>, <a href="qdatetime.html">QDateTime</a> <i>lastModified</i>, <a href="qdatetime.html">QDateTime</a> <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><p>Constructs a <a href="qurlinfo.html">QUrlInfo</a> object by
specifying all the URL's information.</p>
<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>
<h3 class="fn"><a name="equal" />bool QUrlInfo.equal (<a href="qurlinfo.html">QUrlInfo</a> <i>i1</i>, <a href="qurlinfo.html">QUrlInfo</a> <i>i2</i>, int <i>sortBy</i>)</h3><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>
<h3 class="fn"><a name="greaterThan" />bool QUrlInfo.greaterThan (<a href="qurlinfo.html">QUrlInfo</a> <i>i1</i>, <a href="qurlinfo.html">QUrlInfo</a> <i>i2</i>, int <i>sortBy</i>)</h3><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>
<h3 class="fn"><a name="group" />QString QUrlInfo.group (<i>self</i>)</h3><p>Returns the group of the URL.</p>
<p><b>See also</b> <a href="qurlinfo.html#setGroup">setGroup</a>()
and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="isDir" />bool QUrlInfo.isDir (<i>self</i>)</h3><p>Returns true if the URL is a directory; otherwise returns
false.</p>
<p><b>See also</b> <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="isExecutable" />bool QUrlInfo.isExecutable (<i>self</i>)</h3><p>Returns true if the URL is executable; otherwise returns
false.</p>
<p><b>See also</b> <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="isFile" />bool QUrlInfo.isFile (<i>self</i>)</h3><p>Returns true if the URL is a file; otherwise returns false.</p>
<p><b>See also</b> <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="isReadable" />bool QUrlInfo.isReadable (<i>self</i>)</h3><p>Returns true if the URL is readable; otherwise returns
false.</p>
<p><b>See also</b> <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="isSymLink" />bool QUrlInfo.isSymLink (<i>self</i>)</h3><p>Returns true if the URL is a symbolic link; otherwise returns
false.</p>
<p><b>See also</b> <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="isValid" />bool QUrlInfo.isValid (<i>self</i>)</h3><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>
<p>You should always check if the URL info is valid before relying
on the values.</p>
<h3 class="fn"><a name="isWritable" />bool QUrlInfo.isWritable (<i>self</i>)</h3><p>Returns true if the URL is writable; otherwise returns
false.</p>
<p><b>See also</b> <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="lastModified" /><a href="qdatetime.html">QDateTime</a> QUrlInfo.lastModified (<i>self</i>)</h3><p>Returns the last modification date of the URL.</p>
<p><b>See also</b> <a href="qurlinfo.html#setLastModified">setLastModified</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="lastRead" /><a href="qdatetime.html">QDateTime</a> QUrlInfo.lastRead (<i>self</i>)</h3><p>Returns the date when the URL was last read.</p>
<p><b>See also</b> <a href="qurlinfo.html#setLastRead">setLastRead</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="lessThan" />bool QUrlInfo.lessThan (<a href="qurlinfo.html">QUrlInfo</a> <i>i1</i>, <a href="qurlinfo.html">QUrlInfo</a> <i>i2</i>, int <i>sortBy</i>)</h3><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>
<h3 class="fn"><a name="name" />QString QUrlInfo.name (<i>self</i>)</h3><p>Returns the file name of the URL.</p>
<p><b>See also</b> <a href="qurlinfo.html#setName">setName</a>()
and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="owner" />QString QUrlInfo.owner (<i>self</i>)</h3><p>Returns the owner of the URL.</p>
<p><b>See also</b> <a href="qurlinfo.html#setOwner">setOwner</a>()
and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="permissions" />int QUrlInfo.permissions (<i>self</i>)</h3><p>Returns the permissions of the URL. You can use the
<tt>PermissionSpec</tt> flags to test for certain permissions.</p>
<p><b>See also</b> <a href="qurlinfo.html#setPermissions">setPermissions</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setDir" />QUrlInfo.setDir (<i>self</i>, bool <i>b</i>)</h3><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>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#isDir">isDir</a>() and
<a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setFile" />QUrlInfo.setFile (<i>self</i>, bool <i>b</i>)</h3><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>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#isFile">isFile</a>() and
<a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setGroup" />QUrlInfo.setGroup (<i>self</i>, QString <i>s</i>)</h3><p>Specifies that the owning group of the URL is called
<i>s</i>.</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#group">group</a>() and
<a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setLastModified" />QUrlInfo.setLastModified (<i>self</i>, <a href="qdatetime.html">QDateTime</a> <i>dt</i>)</h3><p>Specifies that the object the URL refers to was last modified at
<i>dt</i>.</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#lastModified">lastModified</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setLastRead" />QUrlInfo.setLastRead (<i>self</i>, <a href="qdatetime.html">QDateTime</a> <i>dt</i>)</h3><p>Specifies that the object the URL refers to was last read at
<i>dt</i>.</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qurlinfo.html#lastRead">lastRead</a>()
and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setName" />QUrlInfo.setName (<i>self</i>, QString <i>name</i>)</h3><p>Sets the name of the URL to <i>name</i>. The name is the full
text, for example, "http://qt.nokia.com/doc/qurlinfo.html".</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#name">name</a>() and
<a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setOwner" />QUrlInfo.setOwner (<i>self</i>, QString <i>s</i>)</h3><p>Specifies that the owner of the URL is called <i>s</i>.</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#owner">owner</a>() and
<a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setPermissions" />QUrlInfo.setPermissions (<i>self</i>, int <i>p</i>)</h3><p>Specifies that the URL has access permissions <i>p</i>.</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#permissions">permissions</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setReadable" />QUrlInfo.setReadable (<i>self</i>, bool <i>b</i>)</h3><p>Specifies that the URL is readable if <i>b</i> is true and not
readable if <i>b</i> is false.</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#isReadable">isReadable</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setSize" />QUrlInfo.setSize (<i>self</i>, int <i>size</i>)</h3><p>Specifies the <i>size</i> of the URL.</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#size">size</a>() and
<a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setSymLink" />QUrlInfo.setSymLink (<i>self</i>, bool <i>b</i>)</h3><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>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#isSymLink">isSymLink</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="setWritable" />QUrlInfo.setWritable (<i>self</i>, bool <i>b</i>)</h3><p>Specifies that the URL is writable if <i>b</i> is true and not
writable if <i>b</i> is false.</p>
<p>If you call this function for an invalid URL info, this function
turns it into a valid one.</p>
<p><b>See also</b> <a href="qurlinfo.html#isWritable">isWritable</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="size" />int QUrlInfo.size (<i>self</i>)</h3><p>Returns the size of the URL.</p>
<p><b>See also</b> <a href="qurlinfo.html#setSize">setSize</a>()
and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<h3 class="fn"><a name="__eq__" />bool QUrlInfo.__eq__ (<i>self</i>, <a href="qurlinfo.html">QUrlInfo</a> <i>i</i>)</h3><h3 class="fn"><a name="__ne__" />bool QUrlInfo.__ne__ (<i>self</i>, <a href="qurlinfo.html">QUrlInfo</a> <i>i</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.11.4 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qt.io">The Qt Company</a> 2015</td><td align="right" width="25%">Qt 4.8.7</td></tr></table></div></address></body></html>
|