File: qurl-qt3.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (200 lines) | stat: -rw-r--r-- 15,313 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?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" />
<!-- qurl.cpp -->
  <title>Qt 4.8: Qt 3 Support Members for QUrl</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <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="qtcore.html">QtCore</a></li>
<li>QUrl</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<h1 class="title">Qt 3 Support Members for QUrl</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qurl.html">QUrl class reference</a></li></ul></p>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#addPath">addPath</a></b> ( const QString &amp; <i>p</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#cdUp">cdUp</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#dirPath">dirPath</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#fileName">fileName</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#hasHost">hasHost</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#hasPassword">hasPassword</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#hasPath">hasPath</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#hasPort">hasPort</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#hasRef">hasRef</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#hasUser">hasUser</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#protocol">protocol</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#query">query</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#ref">ref</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#setFileName">setFileName</a></b> ( const QString &amp; <i>txt</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#setProtocol">setProtocol</a></b> ( const QString &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#setQuery">setQuery</a></b> ( const QString &amp; <i>txt</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#setRef">setRef</a></b> ( const QString &amp; <i>txt</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#setUser">setUser</a></b> ( const QString &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#user">user</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#operator-QString">operator QString</a></b> () const</td></tr>
</table>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#decode">decode</a></b> ( QString &amp; <i>url</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#encode">encode</a></b> ( QString &amp; <i>url</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#isRelativeUrl">isRelativeUrl</a></b> ( const QString &amp; <i>url</i> )</td></tr>
</table>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qurl-qt3.html#reset">reset</a></b> ()</td></tr>
</table>
<h2>Member Function Documentation</h2>
<!-- $$$addPath[overload1]$$$addPathconstQString& -->
<h3 class="fn"><a name="addPath"></a><span class="type">void</span> QUrl::<span class="name">addPath</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>p</i> )</h3>
<p>Use <a href="qurl.html#setPath">setPath</a>() instead.</p>
<!-- @@@addPath -->
<!-- $$$cdUp[overload1]$$$cdUp -->
<h3 class="fn"><a name="cdUp"></a><span class="type">bool</span> QUrl::<span class="name">cdUp</span> ()</h3>
<p>Use resolved(&quot;..&quot;) instead.</p>
<p>For example, if you have code like</p>
<pre class="cpp"> QUrl url(&quot;http://example.com/Developer/&quot;);
 url.cdUp();</pre>
<p>you can rewrite it as</p>
<pre class="cpp"> <span class="type"><a href="qurl.html">QUrl</a></span> url(<span class="string">&quot;http://example.com/Developer/&quot;</span>);
 url <span class="operator">=</span> url<span class="operator">.</span><a href="qurl.html#resolved">resolved</a>(<span class="string">&quot;..&quot;</span>);</pre>
<!-- @@@cdUp -->
<!-- $$$decode[overload1]$$$decodeQString& -->
<h3 class="fn"><a name="decode"></a><span class="type">void</span> QUrl::<span class="name">decode</span> ( <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>url</i> )<tt> [static]</tt></h3>
<p>Use <a href="qurl.html#fromPercentEncoding">fromPercentEncoding</a>() instead.</p>
<!-- @@@decode -->
<!-- $$$dirPath[overload1]$$$dirPath -->
<h3 class="fn"><a name="dirPath"></a><span class="type"><a href="qstring.html">QString</a></span> QUrl::<span class="name">dirPath</span> () const</h3>
<p>Use <a href="qfileinfo.html">QFileInfo</a>(<a href="qurl.html#pathx">path</a>()).absolutePath() or <a href="qfileinfo.html">QFileInfo</a>(<a href="qurl.html#pathx">path</a>()) instead.</p>
<!-- @@@dirPath -->
<!-- $$$encode[overload1]$$$encodeQString& -->
<h3 class="fn"><a name="encode"></a><span class="type">void</span> QUrl::<span class="name">encode</span> ( <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>url</i> )<tt> [static]</tt></h3>
<p>Use <a href="qurl.html#toPercentEncoding">toPercentEncoding</a>() instead.</p>
<!-- @@@encode -->
<!-- $$$fileName[overload1]$$$fileName -->
<h3 class="fn"><a name="fileName"></a><span class="type"><a href="qstring.html">QString</a></span> QUrl::<span class="name">fileName</span> () const</h3>
<p>Use <a href="qfileinfo.html">QFileInfo</a>(<a href="qurl.html#pathx">path</a>()).fileName() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#setFileName">setFileName</a>().</p>
<!-- @@@fileName -->
<!-- $$$hasHost[overload1]$$$hasHost -->
<h3 class="fn"><a name="hasHost"></a><span class="type">bool</span> QUrl::<span class="name">hasHost</span> () const</h3>
<p>Use !<a href="qurl.html#host">host</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<!-- @@@hasHost -->
<!-- $$$hasPassword[overload1]$$$hasPassword -->
<h3 class="fn"><a name="hasPassword"></a><span class="type">bool</span> QUrl::<span class="name">hasPassword</span> () const</h3>
<p>Use !<a href="qurl.html#password">password</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<!-- @@@hasPassword -->
<!-- $$$hasPath[overload1]$$$hasPath -->
<h3 class="fn"><a name="hasPath"></a><span class="type">bool</span> QUrl::<span class="name">hasPath</span> () const</h3>
<p>Use !<a href="qurl.html#pathx">path</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<!-- @@@hasPath -->
<!-- $$$hasPort[overload1]$$$hasPort -->
<h3 class="fn"><a name="hasPort"></a><span class="type">bool</span> QUrl::<span class="name">hasPort</span> () const</h3>
<p>Use <a href="qurl.html#port">port</a>() != -1 instead.</p>
<!-- @@@hasPort -->
<!-- $$$hasRef[overload1]$$$hasRef -->
<h3 class="fn"><a name="hasRef"></a><span class="type">bool</span> QUrl::<span class="name">hasRef</span> () const</h3>
<p>Use !<a href="qurl.html#fragment">fragment</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<!-- @@@hasRef -->
<!-- $$$hasUser[overload1]$$$hasUser -->
<h3 class="fn"><a name="hasUser"></a><span class="type">bool</span> QUrl::<span class="name">hasUser</span> () const</h3>
<p>Use !<a href="qurl.html#userName">userName</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<!-- @@@hasUser -->
<!-- $$$isRelativeUrl[overload1]$$$isRelativeUrlconstQString& -->
<h3 class="fn"><a name="isRelativeUrl"></a><span class="type">bool</span> QUrl::<span class="name">isRelativeUrl</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>url</i> )<tt> [static]</tt></h3>
<p>Use <a href="qurl.html#isRelative">isRelative</a>() instead.</p>
<!-- @@@isRelativeUrl -->
<!-- $$$protocol[overload1]$$$protocol -->
<h3 class="fn"><a name="protocol"></a><span class="type"><a href="qstring.html">QString</a></span> QUrl::<span class="name">protocol</span> () const</h3>
<p>Use <a href="qurl.html#scheme">scheme</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#setProtocol">setProtocol</a>().</p>
<!-- @@@protocol -->
<!-- $$$query[overload1]$$$query -->
<h3 class="fn"><a name="query"></a><span class="type"><a href="qstring.html">QString</a></span> QUrl::<span class="name">query</span> () const</h3>
<p>Use <a href="qurl.html#encodedQuery">encodedQuery</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#setQuery">setQuery</a>().</p>
<!-- @@@query -->
<!-- $$$ref[overload1]$$$ref -->
<h3 class="fn"><a name="ref"></a><span class="type"><a href="qstring.html">QString</a></span> QUrl::<span class="name">ref</span> () const</h3>
<p>Use <a href="qurl.html#fragment">fragment</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#setRef">setRef</a>().</p>
<!-- @@@ref -->
<!-- $$$reset[overload1]$$$reset -->
<h3 class="fn"><a name="reset"></a><span class="type">void</span> QUrl::<span class="name">reset</span> ()<tt> [protected]</tt></h3>
<p>Use <a href="qurl.html#clear">clear</a>() instead.</p>
<!-- @@@reset -->
<!-- $$$setFileName[overload1]$$$setFileNameconstQString& -->
<h3 class="fn"><a name="setFileName"></a><span class="type">void</span> QUrl::<span class="name">setFileName</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>txt</i> )</h3>
<p>Use <a href="qurl.html#setPath">setPath</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#fileName">fileName</a>().</p>
<!-- @@@setFileName -->
<!-- $$$setProtocol[overload1]$$$setProtocolconstQString& -->
<h3 class="fn"><a name="setProtocol"></a><span class="type">void</span> QUrl::<span class="name">setProtocol</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>s</i> )</h3>
<p>Use <a href="qurl.html#setScheme">setScheme</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#protocol">protocol</a>().</p>
<!-- @@@setProtocol -->
<!-- $$$setQuery[overload1]$$$setQueryconstQString& -->
<h3 class="fn"><a name="setQuery"></a><span class="type">void</span> QUrl::<span class="name">setQuery</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>txt</i> )</h3>
<p>Use <a href="qurl.html#setEncodedQuery">setEncodedQuery</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#query">query</a>().</p>
<!-- @@@setQuery -->
<!-- $$$setRef[overload1]$$$setRefconstQString& -->
<h3 class="fn"><a name="setRef"></a><span class="type">void</span> QUrl::<span class="name">setRef</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>txt</i> )</h3>
<p>Use <a href="qurl.html#setFragment">setFragment</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#ref">ref</a>().</p>
<!-- @@@setRef -->
<!-- $$$setUser[overload1]$$$setUserconstQString& -->
<h3 class="fn"><a name="setUser"></a><span class="type">void</span> QUrl::<span class="name">setUser</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>s</i> )</h3>
<p>Use <a href="qurl.html#setUserName">setUserName</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#user">user</a>().</p>
<!-- @@@setUser -->
<!-- $$$user[overload1]$$$user -->
<h3 class="fn"><a name="user"></a><span class="type"><a href="qstring.html">QString</a></span> QUrl::<span class="name">user</span> () const</h3>
<p>Use <a href="qurl.html#userName">userName</a>() instead.</p>
<p><b>See also </b><a href="qurl-qt3.html#setUser">setUser</a>().</p>
<!-- @@@user -->
<!-- $$$operator QString[overload1]$$$operator QString -->
<h3 class="fn"><a name="operator-QString"></a>QUrl::<span class="name">operator QString</span> () const</h3>
<p>Use <a href="qurl.html#toString">toString</a>() instead.</p>
<!-- @@@operator QString -->
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. 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>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      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>
</body>
</html>