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
|
<?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="../pyqt4ref.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)</li><li><div class="fn" /><b><a href="qurlinfo.html#QUrlInfo-3">__init__</a></b> (<i>self</i>, QString, int, QString, QString, int, QDateTime, QDateTime, bool, bool, bool, bool, bool, bool)</li><li><div class="fn" /><b><a href="qurlinfo.html#QUrlInfo-4">__init__</a></b> (<i>self</i>, QUrl, int, QString, QString, int, QDateTime, QDateTime, bool, bool, bool, bool, bool, bool)</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)</li><li><div class="fn" /><b><a href="qurlinfo.html#setFile">setFile</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qurlinfo.html#setGroup">setGroup</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qurlinfo.html#setLastModified">setLastModified</a></b> (<i>self</i>, QDateTime)</li><li><div class="fn" /><b><a href="qurlinfo.html#setLastRead">setLastRead</a></b> (<i>self</i>, QDateTime)</li><li><div class="fn" /><b><a href="qurlinfo.html#setName">setName</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qurlinfo.html#setOwner">setOwner</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qurlinfo.html#setPermissions">setPermissions</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qurlinfo.html#setReadable">setReadable</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qurlinfo.html#setSize">setSize</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qurlinfo.html#setSymLink">setSymLink</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qurlinfo.html#setWritable">setWritable</a></b> (<i>self</i>, bool)</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, QUrlInfo, int)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#greaterThan">greaterThan</a></b> (QUrlInfo, QUrlInfo, int)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#lessThan">lessThan</a></b> (QUrlInfo, QUrlInfo, int)</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)</li><li><div class="fn" />bool <b><a href="qurlinfo.html#__ne__">__ne__</a></b> (<i>self</i>, QUrlInfo)</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>
<p>See also <a href="qurl.html">QUrl</a> and <a href="network-qftp.html">FTP Example</a>.</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>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</table></p>
<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>See also <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>)</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, int, QString, QString, int, <a href="qdatetime.html">QDateTime</a>, <a href="qdatetime.html">QDateTime</a>, bool, bool, bool, bool, bool, bool)</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>, int, QString, QString, int, <a href="qdatetime.html">QDateTime</a>, <a href="qdatetime.html">QDateTime</a>, bool, bool, bool, bool, bool, bool)</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>
<a name="//apple_ref/cpp/instm/QUrlInfo/~QUrlInfo" />
<h3 class="fn"><a name="equal" />bool QUrlInfo.equal (<a href="qurlinfo.html">QUrlInfo</a>, <a href="qurlinfo.html">QUrlInfo</a>, int)</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>
<a name="//apple_ref/cpp/clm/QUrlInfo/greaterThan" />
<h3 class="fn"><a name="greaterThan" />bool QUrlInfo.greaterThan (<a href="qurlinfo.html">QUrlInfo</a>, <a href="qurlinfo.html">QUrlInfo</a>, int)</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>
<a name="//apple_ref/cpp/instm/QUrlInfo/group" />
<h3 class="fn"><a name="group" />QString QUrlInfo.group (<i>self</i>)</h3><p>Returns the group of the URL.</p>
<p>See also <a href="qurlinfo.html#setGroup">setGroup</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/isDir" />
<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>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/isExecutable" />
<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>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/isFile" />
<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>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/isReadable" />
<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>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/isSymLink" />
<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>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/isValid" />
<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>
<a name="//apple_ref/cpp/instm/QUrlInfo/isWritable" />
<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>See also <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/lastModified" />
<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>See also <a href="qurlinfo.html#setLastModified">setLastModified</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/lastRead" />
<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>See also <a href="qurlinfo.html#setLastRead">setLastRead</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/clm/QUrlInfo/lessThan" />
<h3 class="fn"><a name="lessThan" />bool QUrlInfo.lessThan (<a href="qurlinfo.html">QUrlInfo</a>, <a href="qurlinfo.html">QUrlInfo</a>, int)</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>
<a name="//apple_ref/cpp/instm/QUrlInfo/name" />
<h3 class="fn"><a name="name" />QString QUrlInfo.name (<i>self</i>)</h3><p>Returns the file name of the URL.</p>
<p>See also <a href="qurlinfo.html#setName">setName</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/owner" />
<h3 class="fn"><a name="owner" />QString QUrlInfo.owner (<i>self</i>)</h3><p>Returns the owner of the URL.</p>
<p>See also <a href="qurlinfo.html#setOwner">setOwner</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/permissions" />
<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>See also <a href="qurlinfo.html#setPermissions">setPermissions</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setDir" />
<h3 class="fn"><a name="setDir" />QUrlInfo.setDir (<i>self</i>, bool)</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>See also <a href="qurlinfo.html#isDir">isDir</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setFile" />
<h3 class="fn"><a name="setFile" />QUrlInfo.setFile (<i>self</i>, bool)</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>See also <a href="qurlinfo.html#isFile">isFile</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setGroup" />
<h3 class="fn"><a name="setGroup" />QUrlInfo.setGroup (<i>self</i>, QString)</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>See also <a href="qurlinfo.html#group">group</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setLastModified" />
<h3 class="fn"><a name="setLastModified" />QUrlInfo.setLastModified (<i>self</i>, <a href="qdatetime.html">QDateTime</a>)</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>See also <a href="qurlinfo.html#lastModified">lastModified</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setLastRead" />
<h3 class="fn"><a name="setLastRead" />QUrlInfo.setLastRead (<i>self</i>, <a href="qdatetime.html">QDateTime</a>)</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>See also <a href="qurlinfo.html#lastRead">lastRead</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setName" />
<h3 class="fn"><a name="setName" />QUrlInfo.setName (<i>self</i>, QString)</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>See also <a href="qurlinfo.html#name">name</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setOwner" />
<h3 class="fn"><a name="setOwner" />QUrlInfo.setOwner (<i>self</i>, QString)</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>See also <a href="qurlinfo.html#owner">owner</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setPermissions" />
<h3 class="fn"><a name="setPermissions" />QUrlInfo.setPermissions (<i>self</i>, int)</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>See also <a href="qurlinfo.html#permissions">permissions</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setReadable" />
<h3 class="fn"><a name="setReadable" />QUrlInfo.setReadable (<i>self</i>, bool)</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>See also <a href="qurlinfo.html#isReadable">isReadable</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setSize" />
<h3 class="fn"><a name="setSize" />QUrlInfo.setSize (<i>self</i>, int)</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>See also <a href="qurlinfo.html#size">size</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setSymLink" />
<h3 class="fn"><a name="setSymLink" />QUrlInfo.setSymLink (<i>self</i>, bool)</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>See also <a href="qurlinfo.html#isSymLink">isSymLink</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/setWritable" />
<h3 class="fn"><a name="setWritable" />QUrlInfo.setWritable (<i>self</i>, bool)</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>See also <a href="qurlinfo.html#isWritable">isWritable</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/size" />
<h3 class="fn"><a name="size" />int QUrlInfo.size (<i>self</i>)</h3><p>Returns the size of the URL.</p>
<p>See also <a href="qurlinfo.html#setSize">setSize</a>() and <a href="qurlinfo.html#isValid">isValid</a>().</p>
<a name="//apple_ref/cpp/instm/QUrlInfo/operator!=" />
<h3 class="fn"><a name="__eq__" />bool QUrlInfo.__eq__ (<i>self</i>, <a href="qurlinfo.html">QUrlInfo</a>)</h3><h3 class="fn"><a name="__ne__" />bool QUrlInfo.__ne__ (<i>self</i>, <a href="qurlinfo.html">QUrlInfo</a>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.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> 2010</td><td align="right" width="25%">Qt 4.6.2</td></tr></table></div></address></body></html>
|