File: qurlinfo.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (168 lines) | stat: -rw-r--r-- 12,845 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QUrlInfo Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QUrlInfo Class Reference</h1><br clear="all">
<p>
<code>#include &lt;<a href="qurlinfo-h.html">qurlinfo.h</a>&gt;</code>
<p><a href="qurlinfo-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#665c11"><b>QUrlInfo</b></a>()</div>
<li><div class="fn"><a href="#b23d5e"><b>QUrlInfo</b></a>(constQUrlOperator&amp;path, constQString&amp;file)</div>
<li><div class="fn"><a href="#1b02d1"><b>QUrlInfo</b></a>(constQUrlInfo&amp;ui)</div>
<li><div class="fn"><a href="#a58c35"><b>QUrlInfo</b></a>(constQString&amp;name, intpermissions, constQString&amp;owner, constQString&amp;group, uintsize, constQDateTime&amp;lastModified, constQDateTime&amp;lastRead, boolisDir, boolisFile, boolisSymLink, boolisWritable, boolisReadable, boolisExecutable)</div>
<li><div class="fn"><a href="#79ed25"><b>QUrlInfo</b></a>(constQUrl&amp;url, intpermissions, constQString&amp;owner, constQString&amp;group, uintsize, constQDateTime&amp;lastModified, constQDateTime&amp;lastRead, boolisDir, boolisFile, boolisSymLink, boolisWritable, boolisReadable, boolisExecutable)</div>
<li><div class="fn">QUrlInfo&amp;<a href="#068a1c"><b>operator=</b></a>(constQUrlInfo&amp;ui)</div>
<li><div class="fn">virtual<a href="#06a8a3"><b>~QUrlInfo</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#bb1d61"><b>setName</b></a>(constQString&amp;name)</div>
<li><div class="fn">virtualvoid<a href="#c535a8"><b>setDir</b></a>(boolb)</div>
<li><div class="fn">virtualvoid<a href="#540379"><b>setFile</b></a>(boolb)</div>
<li><div class="fn">virtualvoid<a href="#792a53"><b>setSymLink</b></a>(boolb)</div>
<li><div class="fn">virtualvoid<a href="#040a76"><b>setOwner</b></a>(constQString&amp;s)</div>
<li><div class="fn">virtualvoid<a href="#4820ed"><b>setGroup</b></a>(constQString&amp;s)</div>
<li><div class="fn">virtualvoid<a href="#518860"><b>setSize</b></a>(uints)</div>
<li><div class="fn">virtualvoid<a href="#3bc67c"><b>setWritable</b></a>(boolb)</div>
<li><div class="fn">virtualvoid<a href="#cd9245"><b>setReadable</b></a>(boolb)</div>
<li><div class="fn">virtualvoid<a href="#ebc71d"><b>setPermissions</b></a>(intp)</div>
<li><div class="fn">virtualvoid<a href="#1f78b2"><b>setLastModified</b></a>(constQDateTime&amp;dt)</div>
<li><div class="fn">QString<a href="#572944"><b>name</b></a>()const</div>
<li><div class="fn">int<a href="#41bb23"><b>permissions</b></a>()const</div>
<li><div class="fn">QString<a href="#714de8"><b>owner</b></a>()const</div>
<li><div class="fn">QString<a href="#b2e650"><b>group</b></a>()const</div>
<li><div class="fn">uint<a href="#c4698e"><b>size</b></a>()const</div>
<li><div class="fn">QDateTime<a href="#fba5cb"><b>lastModified</b></a>()const</div>
<li><div class="fn">QDateTime<a href="#050929"><b>lastRead</b></a>()const</div>
<li><div class="fn">bool<a href="#edf452"><b>isDir</b></a>()const</div>
<li><div class="fn">bool<a href="#efc027"><b>isFile</b></a>()const</div>
<li><div class="fn">bool<a href="#e5cc03"><b>isSymLink</b></a>()const</div>
<li><div class="fn">bool<a href="#db0a57"><b>isWritable</b></a>()const</div>
<li><div class="fn">bool<a href="#c44668"><b>isReadable</b></a>()const</div>
<li><div class="fn">bool<a href="#967aa1"><b>isExecutable</b></a>()const</div>
<li><div class="fn">bool<a href="#db2b41"><b>operator==</b></a>(constQUrlInfo&amp;i)const</div>
</ul>
<h2>Static Public Members</h2>
<ul>
<li><div class="fn">bool<a href="#f61b31"><b>greaterThan</b></a>(constQUrlInfo&amp;i1, constQUrlInfo&amp;i2, intsortBy)</div>
<li><div class="fn">bool<a href="#f6b0fa"><b>lessThan</b></a>(constQUrlInfo&amp;i1, constQUrlInfo&amp;i2, intsortBy)</div>
<li><div class="fn">bool<a href="#ebee82"><b>equal</b></a>(constQUrlInfo&amp;i1, constQUrlInfo&amp;i2, intsortBy)</div>
</ul>
<hr><h2>Detailed Description</h2>
This class is just a container for storing information about a
URLs. That's why all informations have to be passed in the
constructor.

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="665c11"></a>QUrlInfo::QUrlInfo()</h3>
<p>Constructs an empty QUrlInfo object with default values.
<h3 class="fn"><a name="a58c35"></a>QUrlInfo::QUrlInfo(const<a href="qstring.html">QString</a>&amp;name, intpermissions, const<a href="qstring.html">QString</a>&amp;owner, const<a href="qstring.html">QString</a>&amp;group, uintsize, const<a href="qdatetime.html">QDateTime</a>&amp;lastModified, const<a href="qdatetime.html">QDateTime</a>&amp;lastRead, boolisDir, boolisFile, boolisSymLink, boolisWritable, boolisReadable, boolisExecutable)</h3>
<p>Constructs a QUrlInfo object by specifying all information of the URL.
<h3 class="fn"><a name="79ed25"></a>QUrlInfo::QUrlInfo(const<a href="qurl.html">QUrl</a>&amp;url, intpermissions, const<a href="qstring.html">QString</a>&amp;owner, const<a href="qstring.html">QString</a>&amp;group, uintsize, const<a href="qdatetime.html">QDateTime</a>&amp;lastModified, const<a href="qdatetime.html">QDateTime</a>&amp;lastRead, boolisDir, boolisFile, boolisSymLink, boolisWritable, boolisReadable, boolisExecutable)</h3>
<p>Constructs a QUrlInfo object by specifying all information of the URL.
<h3 class="fn"><a name="b23d5e"></a>QUrlInfo::QUrlInfo(const<a href="qurloperator.html">QUrlOperator</a>&amp;path, const<a href="qstring.html">QString</a>&amp;file)</h3>
<p>Constructs a QUrlInfo object with information about the file <em>file</em>
in the <em>path.</em> This constructor tries to find the infos about
<em>file,</em> which should be stored in the <a href="qurloperator.html">QUrlOperator</a> <em>path.</em>
If this is not the case, an empty QUrlInfo object is created.
<h3 class="fn"><a name="1b02d1"></a>QUrlInfo::QUrlInfo(constQUrlInfo&amp;ui)</h3>
<p>Copy constructor.
<h3 class="fn"><a name="06a8a3"></a>QUrlInfo::~QUrlInfo() <code>[virtual]</code></h3>
<p>Destructor.
<h3 class="fn">bool<a name="ebee82"></a>QUrlInfo::equal(constQUrlInfo&amp;i1, constQUrlInfo&amp;i2, intsortBy) <code>[static]</code></h3>
<p>Returns TRUE if <em>u1</em> is equal <em>u2,</em> else FALSE. The objects
are compared by the value, which is specified by <em>sortBy.</em> This has
to be one of QDir::Name, QDir::Time and QDir::Size.
<h3 class="fn">bool<a name="f61b31"></a>QUrlInfo::greaterThan(constQUrlInfo&amp;i1, constQUrlInfo&amp;i2, intsortBy) <code>[static]</code></h3>
<p>Returns TRUE if <em>u1</em> is greater than <em>u2,</em> else FALSE. The objects
are compared by the value, which is specified by <em>sortBy.</em> This has
to be one of QDir::Name, QDir::Time and QDir::Size.
<h3 class="fn"><a href="qstring.html">QString</a><a name="b2e650"></a>QUrlInfo::group()const</h3>
<p>Returns the group of the URL.
<h3 class="fn">bool<a name="edf452"></a>QUrlInfo::isDir()const</h3>
<p>Returns TRUE, if the URL is a directory, else FALSE.
<h3 class="fn">bool<a name="967aa1"></a>QUrlInfo::isExecutable()const</h3>
<p>Returns TRUE, if the URL is executable, else FALSE.
<h3 class="fn">bool<a name="efc027"></a>QUrlInfo::isFile()const</h3>
<p>Returns TRUE, if the URL is a file, else FALSE.
<h3 class="fn">bool<a name="c44668"></a>QUrlInfo::isReadable()const</h3>
<p>Returns TRUE, if the URL is readable , else FALSE.
<h3 class="fn">bool<a name="e5cc03"></a>QUrlInfo::isSymLink()const</h3>
<p>Returns TRUE, if the URL is a symbolic link, else FALSE.
<h3 class="fn">bool<a name="db0a57"></a>QUrlInfo::isWritable()const</h3>
<p>Returns TRUE, if the URL is writable, else FALSE.
<h3 class="fn"><a href="qdatetime.html">QDateTime</a><a name="fba5cb"></a>QUrlInfo::lastModified()const</h3>
<p>Returns the last modification date of the URL.
<h3 class="fn"><a href="qdatetime.html">QDateTime</a><a name="050929"></a>QUrlInfo::lastRead()const</h3>
<p>Returns the date at which the URL was read the last time.
<h3 class="fn">bool<a name="f6b0fa"></a>QUrlInfo::lessThan(constQUrlInfo&amp;i1, constQUrlInfo&amp;i2, intsortBy) <code>[static]</code></h3>
<p>Returns TRUE if <em>u1</em> is less than <em>u2,</em> else FALSE. The objects
are compared by the value, which is specified by <em>sortBy.</em> This has
to be one of QDir::Name, QDir::Time and QDir::Size.
<h3 class="fn"><a href="qstring.html">QString</a><a name="572944"></a>QUrlInfo::name()const</h3>
<p>Returns the filename of the URL.
<h3 class="fn">QUrlInfo&amp;<a name="068a1c"></a>QUrlInfo::operator=(constQUrlInfo&amp;ui)</h3>
<p>Assings the values of <em>ui</em> to this QUrlInfo object.
<h3 class="fn">bool<a name="db2b41"></a>QUrlInfo::operator==(constQUrlInfo&amp;i)const</h3>
<p>Compares this QUrlInfo with <em>i</em> and returns TRUE if they
are equal, else FALSE.
<h3 class="fn"><a href="qstring.html">QString</a><a name="714de8"></a>QUrlInfo::owner()const</h3>
<p>Returns the owner of the URL.
<h3 class="fn">int<a name="41bb23"></a>QUrlInfo::permissions()const</h3>
<p>Returns the permissions of the URL.
<h3 class="fn">void<a name="c535a8"></a>QUrlInfo::setDir(boolb) <code>[virtual]</code></h3>
<p>Specifies if the URL is a directory.
<h3 class="fn">void<a name="540379"></a>QUrlInfo::setFile(boolb) <code>[virtual]</code></h3>
<p>Specifies if the URL is a file.
<h3 class="fn">void<a name="4820ed"></a>QUrlInfo::setGroup(const<a href="qstring.html">QString</a>&amp;s) <code>[virtual]</code></h3>
<p>Sets the group if the URL to <em>s.</em>
<h3 class="fn">void<a name="1f78b2"></a>QUrlInfo::setLastModified(const<a href="qdatetime.html">QDateTime</a>&amp;dt) <code>[virtual]</code></h3>
<p>Sets the last modification date of the URL to <em>dt.</em>
<h3 class="fn">void<a name="bb1d61"></a>QUrlInfo::setName(const<a href="qstring.html">QString</a>&amp;name) <code>[virtual]</code></h3>
<p>Sets the filename or the URL.
<h3 class="fn">void<a name="040a76"></a>QUrlInfo::setOwner(const<a href="qstring.html">QString</a>&amp;s) <code>[virtual]</code></h3>
<p>Sets the owner of the URL to <em>s.</em>
<h3 class="fn">void<a name="ebc71d"></a>QUrlInfo::setPermissions(intp) <code>[virtual]</code></h3>
<p>Sets the permissions of the URL to <em>p.</em>
<h3 class="fn">void<a name="cd9245"></a>QUrlInfo::setReadable(boolb) <code>[virtual]</code></h3>
<p>Specifies if the URL is readable.
<h3 class="fn">void<a name="518860"></a>QUrlInfo::setSize(uints) <code>[virtual]</code></h3>
<p>Sets the size of the URL to <em>s.</em>
<h3 class="fn">void<a name="792a53"></a>QUrlInfo::setSymLink(boolb) <code>[virtual]</code></h3>
<p>Specifies if the URL is a symbolic link.
<h3 class="fn">void<a name="3bc67c"></a>QUrlInfo::setWritable(boolb) <code>[virtual]</code></h3>
<p>Specifies if the URL is writable.
<h3 class="fn">uint<a name="c4698e"></a>QUrlInfo::size()const</h3>
<p>Returns the size of the URL.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2001
<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  2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>