You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
368 lines
22 KiB
368 lines
22 KiB
13 years ago
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
5 months ago
|
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/tqurlinfo.cpp:80 -->
|
||
13 years ago
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||
|
<title>TQUrlInfo Class</title>
|
||
|
<style type="text/css"><!--
|
||
|
fn { margin-left: 1cm; text-indent: -1cm; }
|
||
|
a:link { color: #004faf; text-decoration: none }
|
||
|
a:visited { color: #672967; text-decoration: none }
|
||
|
body { background: #ffffff; color: black; }
|
||
|
--></style>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
|
<tr bgcolor="#E5E5E5">
|
||
|
<td 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="mainclasses.html">
|
||
|
<font color="#004faf">Main Classes</font></a>
|
||
|
| <a href="annotated.html">
|
||
|
<font color="#004faf">Annotated</font></a>
|
||
|
| <a href="groups.html">
|
||
|
<font color="#004faf">Grouped Classes</font></a>
|
||
|
| <a href="functions.html">
|
||
|
<font color="#004faf">Functions</font></a>
|
||
|
</td>
|
||
|
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQUrlInfo Class Reference</h1>
|
||
|
|
||
|
<p>The TQUrlInfo class stores information about URLs.
|
||
|
<a href="#details">More...</a>
|
||
5 months ago
|
<p><tt>#include <<a href="tqurlinfo-h.html">tqurlinfo.h</a>></tt>
|
||
|
<p><a href="tqurlinfo-members.html">List of all member functions.</a>
|
||
13 years ago
|
<h2>Public Members</h2>
|
||
|
<ul>
|
||
|
<li class=fn>enum <a href="#PermissionSpec-enum"><b>PermissionSpec</b></a> { ReadOwner = 00400, WriteOwner = 00200, ExeOwner = 00100, ReadGroup = 00040, WriteGroup = 00020, ExeGroup = 00010, ReadOther = 00004, WriteOther = 00002, ExeOther = 00001 }</li>
|
||
|
<li class=fn><a href="#TQUrlInfo"><b>TQUrlInfo</b></a> ()</li>
|
||
|
<li class=fn><a href="#TQUrlInfo-2"><b>TQUrlInfo</b></a> ( const TQUrlOperator & path, const TQString & file )</li>
|
||
|
<li class=fn><a href="#TQUrlInfo-3"><b>TQUrlInfo</b></a> ( const TQUrlInfo & ui )</li>
|
||
|
<li class=fn><a href="#TQUrlInfo-4"><b>TQUrlInfo</b></a> ( const TQString & name, int permissions, const TQString & owner, const TQString & group, uint size, const TQDateTime & lastModified, const TQDateTime & lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable )</li>
|
||
|
<li class=fn><a href="#TQUrlInfo-5"><b>TQUrlInfo</b></a> ( const TQUrl & url, int permissions, const TQString & owner, const TQString & group, uint size, const TQDateTime & lastModified, const TQDateTime & lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable )</li>
|
||
|
<li class=fn>TQUrlInfo & <a href="#operator-eq"><b>operator=</b></a> ( const TQUrlInfo & ui )</li>
|
||
|
<li class=fn>virtual <a href="#~TQUrlInfo"><b>~TQUrlInfo</b></a> ()</li>
|
||
|
<li class=fn>virtual void <a href="#setName"><b>setName</b></a> ( const TQString & name )</li>
|
||
|
<li class=fn>virtual void <a href="#setDir"><b>setDir</b></a> ( bool b )</li>
|
||
|
<li class=fn>virtual void <a href="#setFile"><b>setFile</b></a> ( bool b )</li>
|
||
|
<li class=fn>virtual void <a href="#setSymLink"><b>setSymLink</b></a> ( bool b )</li>
|
||
|
<li class=fn>virtual void <a href="#setOwner"><b>setOwner</b></a> ( const TQString & s )</li>
|
||
|
<li class=fn>virtual void <a href="#setGroup"><b>setGroup</b></a> ( const TQString & s )</li>
|
||
|
<li class=fn>virtual void <a href="#setSize"><b>setSize</b></a> ( uint size )</li>
|
||
|
<li class=fn>virtual void <a href="#setWritable"><b>setWritable</b></a> ( bool b )</li>
|
||
|
<li class=fn>virtual void <a href="#setReadable"><b>setReadable</b></a> ( bool b )</li>
|
||
|
<li class=fn>virtual void <a href="#setPermissions"><b>setPermissions</b></a> ( int p )</li>
|
||
|
<li class=fn>virtual void <a href="#setLastModified"><b>setLastModified</b></a> ( const TQDateTime & dt )</li>
|
||
|
<li class=fn>bool <a href="#isValid"><b>isValid</b></a> () const</li>
|
||
|
<li class=fn>TQString <a href="#name"><b>name</b></a> () const</li>
|
||
|
<li class=fn>int <a href="#permissions"><b>permissions</b></a> () const</li>
|
||
|
<li class=fn>TQString <a href="#owner"><b>owner</b></a> () const</li>
|
||
|
<li class=fn>TQString <a href="#group"><b>group</b></a> () const</li>
|
||
|
<li class=fn>uint <a href="#size"><b>size</b></a> () const</li>
|
||
|
<li class=fn>TQDateTime <a href="#lastModified"><b>lastModified</b></a> () const</li>
|
||
|
<li class=fn>TQDateTime <a href="#lastRead"><b>lastRead</b></a> () const</li>
|
||
|
<li class=fn>bool <a href="#isDir"><b>isDir</b></a> () const</li>
|
||
|
<li class=fn>bool <a href="#isFile"><b>isFile</b></a> () const</li>
|
||
|
<li class=fn>bool <a href="#isSymLink"><b>isSymLink</b></a> () const</li>
|
||
|
<li class=fn>bool <a href="#isWritable"><b>isWritable</b></a> () const</li>
|
||
|
<li class=fn>bool <a href="#isReadable"><b>isReadable</b></a> () const</li>
|
||
|
<li class=fn>bool <a href="#isExecutable"><b>isExecutable</b></a> () const</li>
|
||
|
<li class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const TQUrlInfo & i ) const</li>
|
||
|
</ul>
|
||
|
<h2>Static Public Members</h2>
|
||
|
<ul>
|
||
|
<li class=fn>bool <a href="#greaterThan"><b>greaterThan</b></a> ( const TQUrlInfo & i1, const TQUrlInfo & i2, int sortBy )</li>
|
||
|
<li class=fn>bool <a href="#lessThan"><b>lessThan</b></a> ( const TQUrlInfo & i1, const TQUrlInfo & i2, int sortBy )</li>
|
||
|
<li class=fn>bool <a href="#equal"><b>equal</b></a> ( const TQUrlInfo & i1, const TQUrlInfo & i2, int sortBy )</li>
|
||
|
</ul>
|
||
|
<hr><a name="details"></a><h2>Detailed Description</h2>
|
||
|
|
||
|
|
||
|
The TQUrlInfo class stores information about URLs.
|
||
|
<p>
|
||
|
|
||
|
<p> This class is just a container for storing information about URLs,
|
||
|
which is why all information must be passed in the constructor.
|
||
|
<p> Unless you're reimplementing a network protocol you're unlikely to
|
||
|
create TQUrlInfo objects yourself, but you may receive TQUrlInfo
|
||
5 months ago
|
objects from functions, e.g. <a href="tqurloperator.html#info">TQUrlOperator::info</a>().
|
||
13 years ago
|
<p> The information that can be retrieved includes <a href="#name">name</a>(),
|
||
|
<a href="#permissions">permissions</a>(), <a href="#owner">owner</a>(), <a href="#group">group</a>(), <a href="#size">size</a>(), <a href="#lastModified">lastModified</a>(),
|
||
|
<a href="#lastRead">lastRead</a>(), <a href="#isDir">isDir</a>(), <a href="#isFile">isFile</a>(), <a href="#isSymLink">isSymLink</a>(), <a href="#isWritable">isWritable</a>(),
|
||
|
<a href="#isReadable">isReadable</a>() and <a href="#isExecutable">isExecutable</a>().
|
||
|
<p>See also <a href="io.html">Input/Output and Networking</a> and <a href="misc.html">Miscellaneous Classes</a>.
|
||
|
|
||
|
<hr><h2>Member Type Documentation</h2>
|
||
|
<h3 class=fn><a name="PermissionSpec-enum"></a>TQUrlInfo::PermissionSpec</h3>
|
||
|
|
||
|
<p> This enum is used by the <a href="#permissions">permissions</a>() function to report the
|
||
|
permissions of a file.
|
||
|
<ul>
|
||
|
<li><tt>TQUrlInfo::ReadOwner</tt> - The file is readable by the owner of the file.
|
||
|
<li><tt>TQUrlInfo::WriteOwner</tt> - The file is writable by the owner of the file.
|
||
|
<li><tt>TQUrlInfo::ExeOwner</tt> - The file is executable by the owner of the file.
|
||
|
<li><tt>TQUrlInfo::ReadGroup</tt> - The file is readable by the group.
|
||
|
<li><tt>TQUrlInfo::WriteGroup</tt> - The file is writable by the group.
|
||
|
<li><tt>TQUrlInfo::ExeGroup</tt> - The file is executable by the group.
|
||
|
<li><tt>TQUrlInfo::ReadOther</tt> - The file is readable by anyone.
|
||
|
<li><tt>TQUrlInfo::WriteOther</tt> - The file is writable by anyone.
|
||
|
<li><tt>TQUrlInfo::ExeOther</tt> - The file is executable by anyone.
|
||
|
</ul>
|
||
|
<hr><h2>Member Function Documentation</h2>
|
||
|
<h3 class=fn><a name="TQUrlInfo"></a>TQUrlInfo::TQUrlInfo ()
|
||
|
</h3>
|
||
|
Constructs an invalid TQUrlInfo object with default values.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
5 months ago
|
<h3 class=fn><a name="TQUrlInfo-2"></a>TQUrlInfo::TQUrlInfo ( const <a href="tqurloperator.html">TQUrlOperator</a> & path, const <a href="tqstring.html">TQString</a> & file )
|
||
13 years ago
|
</h3>
|
||
5 months ago
|
Constructs a TQUrlInfo object with information about the file <em>file</em> in the <em>path</em>. It tries to find the information about the <em>file</em> in the <a href="tqurloperator.html">TQUrlOperator</a> <em>path</em>.
|
||
13 years ago
|
<p> If the information is not found, this constructor creates an
|
||
|
invalid TQUrlInfo, i.e. <a href="#isValid">isValid</a>() returns FALSE. You should always
|
||
|
check if the URL info is valid before relying on the return values
|
||
|
of any getter functions.
|
||
|
<p> If <em>file</em> is empty, it defaults to the TQUrlOperator <em>path</em>, i.e.
|
||
|
to the directory.
|
||
5 months ago
|
<p> <p>See also <a href="#isValid">isValid</a>() and <a href="tqurloperator.html#info">TQUrlOperator::info</a>().
|
||
13 years ago
|
|
||
5 months ago
|
<h3 class=fn><a name="TQUrlInfo-3"></a>TQUrlInfo::TQUrlInfo ( const <a href="tqurlinfo.html">TQUrlInfo</a> & ui )
|
||
13 years ago
|
</h3>
|
||
|
Copy constructor, copies <em>ui</em> to this URL info object.
|
||
|
|
||
5 months ago
|
<h3 class=fn><a name="TQUrlInfo-4"></a>TQUrlInfo::TQUrlInfo ( const <a href="tqstring.html">TQString</a> & name, int permissions, const <a href="tqstring.html">TQString</a> & owner, const <a href="tqstring.html">TQString</a> & group, uint size, const <a href="tqdatetime.html">TQDateTime</a> & lastModified, const <a href="tqdatetime.html">TQDateTime</a> & lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable )
|
||
13 years ago
|
</h3>
|
||
|
Constructs a TQUrlInfo object by specifying all the URL's
|
||
|
information.
|
||
|
<p> The information that is passed is the <em>name</em>, file <em>permissions</em>, <em>owner</em> and <em>group</em> and the file's <em>size</em>. Also
|
||
|
passed is the <em>lastModified</em> date/time and the <em>lastRead</em>
|
||
|
date/time. Flags are also passed, specifically, <em>isDir</em>, <em>isFile</em>, <em>isSymLink</em>, <em>isWritable</em>, <em>isReadable</em> and <em>isExecutable</em>.
|
||
|
|
||
5 months ago
|
<h3 class=fn><a name="TQUrlInfo-5"></a>TQUrlInfo::TQUrlInfo ( const <a href="tqurl.html">TQUrl</a> & url, int permissions, const <a href="tqstring.html">TQString</a> & owner, const <a href="tqstring.html">TQString</a> & group, uint size, const <a href="tqdatetime.html">TQDateTime</a> & lastModified, const <a href="tqdatetime.html">TQDateTime</a> & lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable )
|
||
13 years ago
|
</h3>
|
||
|
Constructs a TQUrlInfo object by specifying all the URL's
|
||
|
information.
|
||
|
<p> The information that is passed is the <em>url</em>, file <em>permissions</em>, <em>owner</em> and <em>group</em> and the file's <em>size</em>. Also
|
||
|
passed is the <em>lastModified</em> date/time and the <em>lastRead</em>
|
||
|
date/time. Flags are also passed, specifically, <em>isDir</em>, <em>isFile</em>, <em>isSymLink</em>, <em>isWritable</em>, <em>isReadable</em> and <em>isExecutable</em>.
|
||
|
|
||
|
<h3 class=fn><a name="~TQUrlInfo"></a>TQUrlInfo::~TQUrlInfo ()<tt> [virtual]</tt>
|
||
|
</h3>
|
||
|
Destroys the URL info object.
|
||
5 months ago
|
<p> The <a href="tqurloperator.html">TQUrlOperator</a> object to which this URL referred (if any) is not
|
||
13 years ago
|
affected.
|
||
|
|
||
5 months ago
|
<h3 class=fn>bool <a name="equal"></a>TQUrlInfo::equal ( const <a href="tqurlinfo.html">TQUrlInfo</a> & i1, const <a href="tqurlinfo.html">TQUrlInfo</a> & i2, int sortBy )<tt> [static]</tt>
|
||
13 years ago
|
</h3>
|
||
|
Returns TRUE if <em>i1</em> equals to <em>i2</em>; otherwise returns FALSE.
|
||
|
The objects are compared by the value, which is specified by <em>sortBy</em>. This must be one of TQDir::Name, TQDir::Time or TQDir::Size.
|
||
|
|
||
5 months ago
|
<h3 class=fn>bool <a name="greaterThan"></a>TQUrlInfo::greaterThan ( const <a href="tqurlinfo.html">TQUrlInfo</a> & i1, const <a href="tqurlinfo.html">TQUrlInfo</a> & i2, int sortBy )<tt> [static]</tt>
|
||
13 years ago
|
</h3>
|
||
|
Returns TRUE if <em>i1</em> is greater than <em>i2</em>; otherwise returns
|
||
|
FALSE. The objects are compared by the value, which is specified
|
||
|
by <em>sortBy</em>. This must be one of TQDir::Name, TQDir::Time or
|
||
|
TQDir::Size.
|
||
|
|
||
6 months ago
|
<h3 class=fn><a href="tqstring.html">TQString</a> <a name="group"></a>TQUrlInfo::group () const
|
||
13 years ago
|
</h3>
|
||
|
Returns the group of the URL.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>bool <a name="isDir"></a>TQUrlInfo::isDir () const
|
||
|
</h3>
|
||
|
Returns TRUE if the URL is a directory; otherwise returns FALSE.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Examples: <a href="ftpclient-example.html#x773">network/ftpclient/ftpmainwindow.ui.h</a> and <a href="networkprotocol-example.html#x697">network/networkprotocol/nntp.cpp</a>.
|
||
|
<h3 class=fn>bool <a name="isExecutable"></a>TQUrlInfo::isExecutable () const
|
||
|
</h3>
|
||
|
Returns TRUE if the URL is executable; otherwise returns FALSE.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>bool <a name="isFile"></a>TQUrlInfo::isFile () const
|
||
|
</h3>
|
||
|
Returns TRUE if the URL is a file; otherwise returns FALSE.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>bool <a name="isReadable"></a>TQUrlInfo::isReadable () const
|
||
|
</h3>
|
||
|
Returns TRUE if the URL is readable; otherwise returns FALSE.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>bool <a name="isSymLink"></a>TQUrlInfo::isSymLink () const
|
||
|
</h3>
|
||
|
Returns TRUE if the URL is a symbolic link; otherwise returns FALSE.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>bool <a name="isValid"></a>TQUrlInfo::isValid () const
|
||
|
</h3>
|
||
|
Returns TRUE if the URL info is valid; otherwise returns FALSE.
|
||
|
Valid means that the TQUrlInfo contains real information. For
|
||
5 months ago
|
example, a call to <a href="tqurloperator.html#info">TQUrlOperator::info</a>() might return a an invalid
|
||
13 years ago
|
TQUrlInfo, if no information about the requested entry is
|
||
|
available.
|
||
|
<p> You should always check if the URL info is valid before relying on
|
||
|
the values.
|
||
|
|
||
|
<h3 class=fn>bool <a name="isWritable"></a>TQUrlInfo::isWritable () const
|
||
|
</h3>
|
||
|
Returns TRUE if the URL is writable; otherwise returns FALSE.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
5 months ago
|
<h3 class=fn><a href="tqdatetime.html">TQDateTime</a> <a name="lastModified"></a>TQUrlInfo::lastModified () const
|
||
13 years ago
|
</h3>
|
||
|
Returns the last modification date of the URL.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="ftpclient-example.html#x774">network/ftpclient/ftpmainwindow.ui.h</a>.
|
||
5 months ago
|
<h3 class=fn><a href="tqdatetime.html">TQDateTime</a> <a name="lastRead"></a>TQUrlInfo::lastRead () const
|
||
13 years ago
|
</h3>
|
||
|
Returns the date when the URL was last read.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
5 months ago
|
<h3 class=fn>bool <a name="lessThan"></a>TQUrlInfo::lessThan ( const <a href="tqurlinfo.html">TQUrlInfo</a> & i1, const <a href="tqurlinfo.html">TQUrlInfo</a> & i2, int sortBy )<tt> [static]</tt>
|
||
13 years ago
|
</h3>
|
||
|
Returns TRUE if <em>i1</em> is less than <em>i2</em>; otherwise returns FALSE.
|
||
|
The objects are compared by the value, which is specified by <em>sortBy</em>. This must be one of TQDir::Name, TQDir::Time or TQDir::Size.
|
||
|
|
||
6 months ago
|
<h3 class=fn><a href="tqstring.html">TQString</a> <a name="name"></a>TQUrlInfo::name () const
|
||
13 years ago
|
</h3>
|
||
|
Returns the file name of the URL.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="ftpclient-example.html#x775">network/ftpclient/ftpmainwindow.ui.h</a>.
|
||
5 months ago
|
<h3 class=fn><a href="tqurlinfo.html">TQUrlInfo</a> & <a name="operator-eq"></a>TQUrlInfo::operator= ( const <a href="tqurlinfo.html">TQUrlInfo</a> & ui )
|
||
13 years ago
|
</h3>
|
||
|
Assigns the values of <em>ui</em> to this TQUrlInfo object.
|
||
|
|
||
5 months ago
|
<h3 class=fn>bool <a name="operator-eq-eq"></a>TQUrlInfo::operator== ( const <a href="tqurlinfo.html">TQUrlInfo</a> & i ) const
|
||
13 years ago
|
</h3>
|
||
|
Compares this TQUrlInfo with <em>i</em> and returns TRUE if they are
|
||
|
equal; otherwise returns FALSE.
|
||
|
|
||
6 months ago
|
<h3 class=fn><a href="tqstring.html">TQString</a> <a name="owner"></a>TQUrlInfo::owner () const
|
||
13 years ago
|
</h3>
|
||
|
Returns the owner of the URL.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>int <a name="permissions"></a>TQUrlInfo::permissions () const
|
||
|
</h3>
|
||
|
Returns the permissions of the URL. You can use the <a href="#PermissionSpec-enum">PermissionSpec</a> flags
|
||
|
to test for certain permissions.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>void <a name="setDir"></a>TQUrlInfo::setDir ( bool b )<tt> [virtual]</tt>
|
||
|
</h3>
|
||
|
If <em>b</em> is TRUE then the URL is set to be a directory; if \b 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> If you call this function for an invalid URL info, this function
|
||
|
turns it into a valid one.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="networkprotocol-example.html#x698">network/networkprotocol/nntp.cpp</a>.
|
||
|
<h3 class=fn>void <a name="setFile"></a>TQUrlInfo::setFile ( bool b )<tt> [virtual]</tt>
|
||
|
</h3>
|
||
|
If <em>b</em> 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> If you call this function for an invalid URL info, this function
|
||
|
turns it into a valid one.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="networkprotocol-example.html#x699">network/networkprotocol/nntp.cpp</a>.
|
||
6 months ago
|
<h3 class=fn>void <a name="setGroup"></a>TQUrlInfo::setGroup ( const <a href="tqstring.html">TQString</a> & s )<tt> [virtual]</tt>
|
||
13 years ago
|
</h3>
|
||
|
Specifies that the owning group of the URL is called <em>s</em>.
|
||
|
<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="#isValid">isValid</a>().
|
||
|
|
||
5 months ago
|
<h3 class=fn>void <a name="setLastModified"></a>TQUrlInfo::setLastModified ( const <a href="tqdatetime.html">TQDateTime</a> & dt )<tt> [virtual]</tt>
|
||
13 years ago
|
</h3>
|
||
|
Specifies that the object the URL refers to was last modified at
|
||
|
<em>dt</em>.
|
||
|
<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="#isValid">isValid</a>().
|
||
|
|
||
6 months ago
|
<h3 class=fn>void <a name="setName"></a>TQUrlInfo::setName ( const <a href="tqstring.html">TQString</a> & name )<tt> [virtual]</tt>
|
||
13 years ago
|
</h3>
|
||
|
Sets the name of the URL to <em>name</em>. The name is the full text,
|
||
5 months ago
|
for example, "http://doc.trolltech.com/tqurlinfo.html".
|
||
13 years ago
|
<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="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="networkprotocol-example.html#x700">network/networkprotocol/nntp.cpp</a>.
|
||
6 months ago
|
<h3 class=fn>void <a name="setOwner"></a>TQUrlInfo::setOwner ( const <a href="tqstring.html">TQString</a> & s )<tt> [virtual]</tt>
|
||
13 years ago
|
</h3>
|
||
|
Specifies that the owner of the URL is called <em>s</em>.
|
||
|
<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="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>void <a name="setPermissions"></a>TQUrlInfo::setPermissions ( int p )<tt> [virtual]</tt>
|
||
|
</h3>
|
||
|
Specifies that the URL has access permisions, <em>p</em>.
|
||
|
<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="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>void <a name="setReadable"></a>TQUrlInfo::setReadable ( bool b )<tt> [virtual]</tt>
|
||
|
</h3>
|
||
|
Specifies that the URL is readable if <em>b</em> is TRUE and not
|
||
|
readable if <em>b</em> is FALSE.
|
||
|
<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="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="networkprotocol-example.html#x701">network/networkprotocol/nntp.cpp</a>.
|
||
|
<h3 class=fn>void <a name="setSize"></a>TQUrlInfo::setSize ( uint size )<tt> [virtual]</tt>
|
||
|
</h3>
|
||
|
Specifies the <em>size</em> of the URL.
|
||
|
<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="#isValid">isValid</a>().
|
||
|
|
||
|
<h3 class=fn>void <a name="setSymLink"></a>TQUrlInfo::setSymLink ( bool b )<tt> [virtual]</tt>
|
||
|
</h3>
|
||
|
Specifies that the URL refers to a symbolic link if <em>b</em> is TRUE
|
||
|
and that it does not if <em>b</em> is FALSE.
|
||
|
<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="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="networkprotocol-example.html#x702">network/networkprotocol/nntp.cpp</a>.
|
||
|
<h3 class=fn>void <a name="setWritable"></a>TQUrlInfo::setWritable ( bool b )<tt> [virtual]</tt>
|
||
|
</h3>
|
||
|
Specifies that the URL is writable if <em>b</em> is TRUE and not
|
||
|
writable if <em>b</em> is FALSE.
|
||
|
<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="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="networkprotocol-example.html#x703">network/networkprotocol/nntp.cpp</a>.
|
||
|
<h3 class=fn>uint <a name="size"></a>TQUrlInfo::size () const
|
||
|
</h3>
|
||
|
Returns the size of the URL.
|
||
|
<p> <p>See also <a href="#isValid">isValid</a>().
|
||
|
|
||
|
<p>Example: <a href="ftpclient-example.html#x776">network/ftpclient/ftpmainwindow.ui.h</a>.
|
||
|
<!-- eof -->
|
||
|
<hr><p>
|
||
|
This file is part of the <a href="index.html">TQt toolkit</a>.
|
||
|
Copyright © 1995-2007
|
||
|
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
||
|
<table width=100% cellspacing=0 border=0><tr>
|
||
|
<td>Copyright © 2007
|
||
|
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
||
|
<td align=right><div align=right>TQt 3.3.8</div>
|
||
|
</table></div></address></body>
|
||
|
</html>
|