<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qurlinfo.cpp --> <title>Qt 4.8: QUrlInfo Class Reference</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> <script src="scripts/jquery.js" type="text/javascript"></script> <script src="scripts/functions.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="style/superfish.css" /> <link rel="stylesheet" type="text/css" href="style/narrow.css" /> <!--[if IE]> <meta name="MSSmartTagsPreventParsing" content="true"> <meta http-equiv="imagetoolbar" content="no"> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie6.css"> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie7.css"> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="style/style_ie8.css"> <![endif]--> <script src="scripts/superfish.js" type="text/javascript"></script> <script src="scripts/narrow.js" type="text/javascript"></script> </head> <body class="" onload="CheckEmptyAndLoadList();"> <div class="header" id="qtdocheader"> <div class="content"> <div id="nav-logo"> <a href="index.html">Home</a></div> <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a> <div id="narrowsearch"></div> <div id="nav-topright"> <ul> <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li> <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li> <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/"> DOC</a></li> <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li> </ul> </div> <div id="shortCut"> <ul> <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li> <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li> </ul> </div> <ul class="sf-menu" id="narrowmenu"> <li><a href="#">API Lookup</a> <ul> <li><a href="classes.html">Class index</a></li> <li><a href="functions.html">Function index</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="namespaces.html">Namespaces</a></li> <li><a href="qtglobal.html">Global Declarations</a></li> <li><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </li> <li><a href="#">Qt Topics</a> <ul> <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li><a href="supported-platforms.html">Supported Platforms</a></li> <li><a href="technology-apis.html">Qt and Key Technologies</a></li> <li><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </li> <li><a href="#">Examples</a> <ul> <li><a href="all-examples.html">Examples</a></li> <li><a href="tutorials.html">Tutorials</a></li> <li><a href="demos.html">Demos</a></li> <li><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </li> </ul> </div> </div> <div class="wrapper"> <div class="hd"> <span></span> </div> <div class="bd group"> <div class="sidebar"> <div class="searchlabel"> Search index:</div> <div class="search" id="sidebarsearch"> <form id="qtdocsearch" action="" onsubmit="return false;"> <fieldset> <input type="text" name="searchstring" id="pageType" value="" /> <div id="resultdialog"> <a href="#" id="resultclose">Close</a> <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span> results:</p> <ul id="resultlist" class="all"> </ul> </div> </fieldset> </form> </div> <div class="box first bottombar" id="lookup"> <h2 title="API Lookup"><span></span> API Lookup</h2> <div id="list001" class="list"> <ul id="ul001" > <li class="defaultLink"><a href="classes.html">Class index</a></li> <li class="defaultLink"><a href="functions.html">Function index</a></li> <li class="defaultLink"><a href="modules.html">Modules</a></li> <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li> <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li> <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </div> </div> <div class="box bottombar" id="topics"> <h2 title="Qt Topics"><span></span> Qt Topics</h2> <div id="list002" class="list"> <ul id="ul002" > <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li class="defaultLink"><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li> <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </div> </div> <div class="box" id="examples"> <h2 title="Examples"><span></span> Examples</h2> <div id="list003" class="list"> <ul id="ul003"> <li class="defaultLink"><a href="all-examples.html">Examples</a></li> <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li> <li class="defaultLink"><a href="demos.html">Demos</a></li> <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </div> </div> </div> <div class="wrap"> <div class="toolbar"> <div class="breadcrumb toolblock"> <ul> <li class="first"><a href="index.html">Home</a></li> <!-- Breadcrumbs go here --> <li><a href="modules.html">Modules</a></li> <li><a href="qtnetwork.html">QtNetwork</a></li> <li>QUrlInfo</li> </ul> </div> <div class="toolbuttons toolblock"> <ul> <li id="smallA" class="t_button">A</li> <li id="medA" class="t_button active">A</li> <li id="bigA" class="t_button">A</li> <li id="print" class="t_button"><a href="javascript:this.print();"> <span>Print</span></a></li> </ul> </div> </div> <div class="content mainContent"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-types">Public Types</a></li> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#static-public-members">Static Public Members</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <h1 class="title">QUrlInfo Class Reference</h1> <!-- $$$QUrlInfo-brief --> <p>The QUrlInfo class stores information about URLs. <a href="#details">More...</a></p> <!-- @@@QUrlInfo --> <pre class="cpp"> <span class="preprocessor">#include <QUrlInfo></span></pre><ul> <li><a href="qurlinfo-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h2>Public Types</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#PermissionSpec-enum">PermissionSpec</a></b> { ReadOwner, WriteOwner, ExeOwner, ReadGroup, ..., ExeOther }</td></tr> </table> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#QUrlInfo">QUrlInfo</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#QUrlInfo-2">QUrlInfo</a></b> ( const QUrlInfo & <i>ui</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#QUrlInfo-3">QUrlInfo</a></b> ( const QString & <i>name</i>, int <i>permissions</i>, const QString & <i>owner</i>, const QString & <i>group</i>, qint64 <i>size</i>, const QDateTime & <i>lastModified</i>, const 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> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#QUrlInfo-4">QUrlInfo</a></b> ( const QUrl & <i>url</i>, int <i>permissions</i>, const QString & <i>owner</i>, const QString & <i>group</i>, qint64 <i>size</i>, const QDateTime & <i>lastModified</i>, const 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> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#dtor.QUrlInfo">~QUrlInfo</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#group">group</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#isDir">isDir</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#isExecutable">isExecutable</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#isFile">isFile</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#isReadable">isReadable</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#isSymLink">isSymLink</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#isValid">isValid</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#isWritable">isWritable</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QDateTime </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#lastModified">lastModified</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QDateTime </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#lastRead">lastRead</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#name">name</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#owner">owner</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#permissions">permissions</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setDir">setDir</a></b> ( bool <i>b</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setFile">setFile</a></b> ( bool <i>b</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setGroup">setGroup</a></b> ( const QString & <i>s</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setLastModified">setLastModified</a></b> ( const QDateTime & <i>dt</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setLastRead">setLastRead</a></b> ( const QDateTime & <i>dt</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setName">setName</a></b> ( const QString & <i>name</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setOwner">setOwner</a></b> ( const QString & <i>s</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setPermissions">setPermissions</a></b> ( int <i>p</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setReadable">setReadable</a></b> ( bool <i>b</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setSize">setSize</a></b> ( qint64 <i>size</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setSymLink">setSymLink</a></b> ( bool <i>b</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#setWritable">setWritable</a></b> ( bool <i>b</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#size">size</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#operator-not-eq">operator!=</a></b> ( const QUrlInfo & <i>other</i> ) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QUrlInfo & </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#operator-eq">operator=</a></b> ( const QUrlInfo & <i>ui</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#operator-eq-eq">operator==</a></b> ( const QUrlInfo & <i>other</i> ) const</td></tr> </table> <a name="static-public-members"></a> <h2>Static Public Members</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#equal">equal</a></b> ( const QUrlInfo & <i>i1</i>, const QUrlInfo & <i>i2</i>, int <i>sortBy</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#greaterThan">greaterThan</a></b> ( const QUrlInfo & <i>i1</i>, const QUrlInfo & <i>i2</i>, int <i>sortBy</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurlinfo.html#lessThan">lessThan</a></b> ( const QUrlInfo & <i>i1</i>, const QUrlInfo & <i>i2</i>, int <i>sortBy</i> )</td></tr> </table> <a name="details"></a> <!-- $$$QUrlInfo-description --> <div class="descr"> <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> </div> <p><b>See also </b><a href="qurl.html">QUrl</a> and <a href="network-qftp.html">FTP Example</a>.</p> <!-- @@@QUrlInfo --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$PermissionSpec$$$ReadOwner$$$WriteOwner$$$ExeOwner$$$ReadGroup$$$WriteGroup$$$ExeGroup$$$ReadOther$$$WriteOther$$$ExeOther --> <h3 class="fn"><a name="PermissionSpec-enum"></a>enum QUrlInfo::<span class="name">PermissionSpec</span></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 valign="top" class="odd"><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> <!-- @@@PermissionSpec --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QUrlInfo[overload1]$$$QUrlInfo --> <h3 class="fn"><a name="QUrlInfo"></a>QUrlInfo::<span class="name">QUrlInfo</span> ()</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> <!-- @@@QUrlInfo --> <!-- $$$QUrlInfo$$$QUrlInfoconstQUrlInfo& --> <h3 class="fn"><a name="QUrlInfo-2"></a>QUrlInfo::<span class="name">QUrlInfo</span> ( const <span class="type">QUrlInfo</span> & <i>ui</i> )</h3> <p>Copy constructor, copies <i>ui</i> to this URL info object.</p> <!-- @@@QUrlInfo --> <!-- $$$QUrlInfo$$$QUrlInfoconstQString&intconstQString&constQString&qint64constQDateTime&constQDateTime&boolboolboolboolboolbool --> <h3 class="fn"><a name="QUrlInfo-3"></a>QUrlInfo::<span class="name">QUrlInfo</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>name</i>, <span class="type">int</span> <i>permissions</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>owner</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>group</i>, <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>size</i>, const <span class="type"><a href="qdatetime.html">QDateTime</a></span> & <i>lastModified</i>, const <span class="type"><a href="qdatetime.html">QDateTime</a></span> & <i>lastRead</i>, <span class="type">bool</span> <i>isDir</i>, <span class="type">bool</span> <i>isFile</i>, <span class="type">bool</span> <i>isSymLink</i>, <span class="type">bool</span> <i>isWritable</i>, <span class="type">bool</span> <i>isReadable</i>, <span class="type">bool</span> <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> <!-- @@@QUrlInfo --> <!-- $$$QUrlInfo$$$QUrlInfoconstQUrl&intconstQString&constQString&qint64constQDateTime&constQDateTime&boolboolboolboolboolbool --> <h3 class="fn"><a name="QUrlInfo-4"></a>QUrlInfo::<span class="name">QUrlInfo</span> ( const <span class="type"><a href="qurl.html">QUrl</a></span> & <i>url</i>, <span class="type">int</span> <i>permissions</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>owner</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>group</i>, <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>size</i>, const <span class="type"><a href="qdatetime.html">QDateTime</a></span> & <i>lastModified</i>, const <span class="type"><a href="qdatetime.html">QDateTime</a></span> & <i>lastRead</i>, <span class="type">bool</span> <i>isDir</i>, <span class="type">bool</span> <i>isFile</i>, <span class="type">bool</span> <i>isSymLink</i>, <span class="type">bool</span> <i>isWritable</i>, <span class="type">bool</span> <i>isReadable</i>, <span class="type">bool</span> <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> <!-- @@@QUrlInfo --> <!-- $$$~QUrlInfo[overload1]$$$~QUrlInfo --> <h3 class="fn"><a name="dtor.QUrlInfo"></a>QUrlInfo::<span class="name">~QUrlInfo</span> ()<tt> [virtual]</tt></h3> <p>Destroys the URL info object.</p> <!-- @@@~QUrlInfo --> <!-- $$$equal[overload1]$$$equalconstQUrlInfo&constQUrlInfo&int --> <h3 class="fn"><a name="equal"></a><span class="type">bool</span> QUrlInfo::<span class="name">equal</span> ( const <span class="type">QUrlInfo</span> & <i>i1</i>, const <span class="type">QUrlInfo</span> & <i>i2</i>, <span class="type">int</span> <i>sortBy</i> )<tt> [static]</tt></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> <!-- @@@equal --> <!-- $$$greaterThan[overload1]$$$greaterThanconstQUrlInfo&constQUrlInfo&int --> <h3 class="fn"><a name="greaterThan"></a><span class="type">bool</span> QUrlInfo::<span class="name">greaterThan</span> ( const <span class="type">QUrlInfo</span> & <i>i1</i>, const <span class="type">QUrlInfo</span> & <i>i2</i>, <span class="type">int</span> <i>sortBy</i> )<tt> [static]</tt></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> <!-- @@@greaterThan --> <!-- $$$group[overload1]$$$group --> <h3 class="fn"><a name="group"></a><span class="type"><a href="qstring.html">QString</a></span> QUrlInfo::<span class="name">group</span> () const</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> <!-- @@@group --> <!-- $$$isDir[overload1]$$$isDir --> <h3 class="fn"><a name="isDir"></a><span class="type">bool</span> QUrlInfo::<span class="name">isDir</span> () const</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> <!-- @@@isDir --> <!-- $$$isExecutable[overload1]$$$isExecutable --> <h3 class="fn"><a name="isExecutable"></a><span class="type">bool</span> QUrlInfo::<span class="name">isExecutable</span> () const</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> <!-- @@@isExecutable --> <!-- $$$isFile[overload1]$$$isFile --> <h3 class="fn"><a name="isFile"></a><span class="type">bool</span> QUrlInfo::<span class="name">isFile</span> () const</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> <!-- @@@isFile --> <!-- $$$isReadable[overload1]$$$isReadable --> <h3 class="fn"><a name="isReadable"></a><span class="type">bool</span> QUrlInfo::<span class="name">isReadable</span> () const</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> <!-- @@@isReadable --> <!-- $$$isSymLink[overload1]$$$isSymLink --> <h3 class="fn"><a name="isSymLink"></a><span class="type">bool</span> QUrlInfo::<span class="name">isSymLink</span> () const</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> <!-- @@@isSymLink --> <!-- $$$isValid[overload1]$$$isValid --> <h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QUrlInfo::<span class="name">isValid</span> () const</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> <!-- @@@isValid --> <!-- $$$isWritable[overload1]$$$isWritable --> <h3 class="fn"><a name="isWritable"></a><span class="type">bool</span> QUrlInfo::<span class="name">isWritable</span> () const</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> <!-- @@@isWritable --> <!-- $$$lastModified[overload1]$$$lastModified --> <h3 class="fn"><a name="lastModified"></a><span class="type"><a href="qdatetime.html">QDateTime</a></span> QUrlInfo::<span class="name">lastModified</span> () const</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> <!-- @@@lastModified --> <!-- $$$lastRead[overload1]$$$lastRead --> <h3 class="fn"><a name="lastRead"></a><span class="type"><a href="qdatetime.html">QDateTime</a></span> QUrlInfo::<span class="name">lastRead</span> () const</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> <!-- @@@lastRead --> <!-- $$$lessThan[overload1]$$$lessThanconstQUrlInfo&constQUrlInfo&int --> <h3 class="fn"><a name="lessThan"></a><span class="type">bool</span> QUrlInfo::<span class="name">lessThan</span> ( const <span class="type">QUrlInfo</span> & <i>i1</i>, const <span class="type">QUrlInfo</span> & <i>i2</i>, <span class="type">int</span> <i>sortBy</i> )<tt> [static]</tt></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> <!-- @@@lessThan --> <!-- $$$name[overload1]$$$name --> <h3 class="fn"><a name="name"></a><span class="type"><a href="qstring.html">QString</a></span> QUrlInfo::<span class="name">name</span> () const</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> <!-- @@@name --> <!-- $$$owner[overload1]$$$owner --> <h3 class="fn"><a name="owner"></a><span class="type"><a href="qstring.html">QString</a></span> QUrlInfo::<span class="name">owner</span> () const</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> <!-- @@@owner --> <!-- $$$permissions[overload1]$$$permissions --> <h3 class="fn"><a name="permissions"></a><span class="type">int</span> QUrlInfo::<span class="name">permissions</span> () const</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> <!-- @@@permissions --> <!-- $$$setDir[overload1]$$$setDirbool --> <h3 class="fn"><a name="setDir"></a><span class="type">void</span> QUrlInfo::<span class="name">setDir</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual]</tt></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> <!-- @@@setDir --> <!-- $$$setFile[overload1]$$$setFilebool --> <h3 class="fn"><a name="setFile"></a><span class="type">void</span> QUrlInfo::<span class="name">setFile</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual]</tt></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> <!-- @@@setFile --> <!-- $$$setGroup[overload1]$$$setGroupconstQString& --> <h3 class="fn"><a name="setGroup"></a><span class="type">void</span> QUrlInfo::<span class="name">setGroup</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>s</i> )<tt> [virtual]</tt></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> <!-- @@@setGroup --> <!-- $$$setLastModified[overload1]$$$setLastModifiedconstQDateTime& --> <h3 class="fn"><a name="setLastModified"></a><span class="type">void</span> QUrlInfo::<span class="name">setLastModified</span> ( const <span class="type"><a href="qdatetime.html">QDateTime</a></span> & <i>dt</i> )<tt> [virtual]</tt></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> <!-- @@@setLastModified --> <!-- $$$setLastRead[overload1]$$$setLastReadconstQDateTime& --> <h3 class="fn"><a name="setLastRead"></a><span class="type">void</span> QUrlInfo::<span class="name">setLastRead</span> ( const <span class="type"><a href="qdatetime.html">QDateTime</a></span> & <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> <!-- @@@setLastRead --> <!-- $$$setName[overload1]$$$setNameconstQString& --> <h3 class="fn"><a name="setName"></a><span class="type">void</span> QUrlInfo::<span class="name">setName</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>name</i> )<tt> [virtual]</tt></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> <!-- @@@setName --> <!-- $$$setOwner[overload1]$$$setOwnerconstQString& --> <h3 class="fn"><a name="setOwner"></a><span class="type">void</span> QUrlInfo::<span class="name">setOwner</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>s</i> )<tt> [virtual]</tt></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> <!-- @@@setOwner --> <!-- $$$setPermissions[overload1]$$$setPermissionsint --> <h3 class="fn"><a name="setPermissions"></a><span class="type">void</span> QUrlInfo::<span class="name">setPermissions</span> ( <span class="type">int</span> <i>p</i> )<tt> [virtual]</tt></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> <!-- @@@setPermissions --> <!-- $$$setReadable[overload1]$$$setReadablebool --> <h3 class="fn"><a name="setReadable"></a><span class="type">void</span> QUrlInfo::<span class="name">setReadable</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual]</tt></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> <!-- @@@setReadable --> <!-- $$$setSize[overload1]$$$setSizeqint64 --> <h3 class="fn"><a name="setSize"></a><span class="type">void</span> QUrlInfo::<span class="name">setSize</span> ( <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>size</i> )<tt> [virtual]</tt></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> <!-- @@@setSize --> <!-- $$$setSymLink[overload1]$$$setSymLinkbool --> <h3 class="fn"><a name="setSymLink"></a><span class="type">void</span> QUrlInfo::<span class="name">setSymLink</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual]</tt></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> <!-- @@@setSymLink --> <!-- $$$setWritable[overload1]$$$setWritablebool --> <h3 class="fn"><a name="setWritable"></a><span class="type">void</span> QUrlInfo::<span class="name">setWritable</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual]</tt></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> <!-- @@@setWritable --> <!-- $$$size[overload1]$$$size --> <h3 class="fn"><a name="size"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> QUrlInfo::<span class="name">size</span> () const</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> <!-- @@@size --> <!-- $$$operator!=[overload1]$$$operator!=constQUrlInfo& --> <h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QUrlInfo::<span class="name">operator!=</span> ( const <span class="type">QUrlInfo</span> & <i>other</i> ) const</h3> <p>Returns true if this <a href="qurlinfo.html">QUrlInfo</a> is not equal to <i>other</i>; otherwise returns false.</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also </b><a href="qurlinfo.html#lessThan">lessThan</a>() and <a href="qurlinfo.html#equal">equal</a>().</p> <!-- @@@operator!= --> <!-- $$$operator=[overload1]$$$operator=constQUrlInfo& --> <h3 class="fn"><a name="operator-eq"></a><span class="type">QUrlInfo</span> & QUrlInfo::<span class="name">operator=</span> ( const <span class="type">QUrlInfo</span> & <i>ui</i> )</h3> <p>Assigns the values of <i>ui</i> to this <a href="qurlinfo.html">QUrlInfo</a> object.</p> <!-- @@@operator= --> <!-- $$$operator==[overload1]$$$operator==constQUrlInfo& --> <h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QUrlInfo::<span class="name">operator==</span> ( const <span class="type">QUrlInfo</span> & <i>other</i> ) const</h3> <p>Returns true if this <a href="qurlinfo.html">QUrlInfo</a> is equal to <i>other</i>; otherwise returns false.</p> <p><b>See also </b><a href="qurlinfo.html#lessThan">lessThan</a>() and <a href="qurlinfo.html#equal">equal</a>().</p> <!-- @@@operator== --> </div> </div> </div> </div> <div class="ft"> <span></span> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.</p> <br /> <p> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> <script src="scripts/functions.js" type="text/javascript"></script> </body> </html>