blob: 536840ac868d1dc49baba6d0c35ce325402f0660 (
plain)
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
|
//! [0]
Q3Url url( "http://qt.nokia.com" );
// or
Q3Url url( "file:///home/myself/Mail", "Inbox" );
//! [0]
//! [1]
Q3Url url( "http://qt.nokia.com" );
QString s = url;
// or
QString s( "http://qt.nokia.com" );
Q3Url url( s );
//! [1]
//! [2]
Q3Url url( "ftp://ftp.trolltech.com/qt/source", "qt-2.1.0.tar.gz" );
//! [2]
//! [3]
Q3Url url( "ftp://ftp.trolltech.com/qt/source", "/usr/local" );
//! [3]
//! [4]
Q3Url url( "ftp://ftp.trolltech.com/qt/source", "file:///usr/local" );
//! [4]
//! [5]
QString url = http://qt.nokia.com
Q3Url::encode( url );
// url is now "http%3A//www%20trolltech%20com"
//! [5]
//! [6]
QString url = "http%3A//www%20trolltech%20com"
Q3Url::decode( url );
// url is now "http://qt.nokia.com"
//! [6]
|