aboutsummaryrefslogtreecommitdiff
path: root/src/url.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.h')
-rw-r--r--src/url.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/url.h b/src/url.h
index 861bb9f..8713ed4 100644
--- a/src/url.h
+++ b/src/url.h
@@ -29,15 +29,17 @@ namespace Bu
29 void parseParams( Bu::FString::const_iterator &i ); 29 void parseParams( Bu::FString::const_iterator &i );
30 void clear(); 30 void clear();
31 31
32 Bu::FString getUrl(); 32 Bu::FString getUrl() const;
33 Bu::FString getFullPath() const;
33 34
34 const Bu::FString &getProtocol() { return sProtocol; } 35 const Bu::FString &getProtocol() const { return sProtocol; }
35 const Bu::FString &getUser() { return sUser; } 36 const Bu::FString &getUser() const { return sUser; }
36 const Bu::FString &getPass() { return sPass; } 37 const Bu::FString &getPass() const { return sPass; }
37 const Bu::FString &getHost() { return sHost; } 38 const Bu::FString &getHost() const { return sHost; }
38 const Bu::FString &getPath() { return sPath; } 39 const Bu::FString &getPath() const { return sPath; }
39 int getPort() { return iPort; } 40 int getPort() const { return iPort; }
40 ParamList::const_iterator getParamBegin() { return lParam.begin(); } 41 ParamList::const_iterator getParamBegin() const
42 { return lParam.begin(); }
41 43
42 void setProtocol( const Bu::FString &sNewHost, bool bAutoSetPort=true ); 44 void setProtocol( const Bu::FString &sNewHost, bool bAutoSetPort=true );
43 void setUser( const Bu::FString &s ) { sUser = s; } 45 void setUser( const Bu::FString &s ) { sUser = s; }
@@ -47,7 +49,7 @@ namespace Bu
47 void setPort( int i ) { iPort = i; } 49 void setPort( int i ) { iPort = i; }
48 void addParam( const Bu::FString &n, const Bu::FString &v ); 50 void addParam( const Bu::FString &n, const Bu::FString &v );
49 51
50 bool hasPort() { return iPort.has(); } 52 bool hasPort() const { return iPort.has(); }
51 53
52 static Bu::FString decode( const Bu::FString &sStr ); 54 static Bu::FString decode( const Bu::FString &sStr );
53 static Bu::FString encode( const Bu::FString &sStr ); 55 static Bu::FString encode( const Bu::FString &sStr );