<?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.10.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.5</td></tr></table></div></address></body></html>