diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-02-24 00:06:16 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-02-24 00:06:16 +0000 |
commit | ef2935347099967cc7092fa7f472d91d51571468 (patch) | |
tree | abf0c041a31610fa7f8fb562c3c36a8277c438d2 /src/url.h | |
parent | 4309066dff46f52690998bbd1f60ec8b1631f142 (diff) | |
download | libbu++-ef2935347099967cc7092fa7f472d91d51571468.tar.gz libbu++-ef2935347099967cc7092fa7f472d91d51571468.tar.bz2 libbu++-ef2935347099967cc7092fa7f472d91d51571468.tar.xz libbu++-ef2935347099967cc7092fa7f472d91d51571468.zip |
Whoa, lots of updates. Md5 is more general, nids, cache, cachestore, and
cachestorenids all support synchronizing now. Url is pretty much done.
Diffstat (limited to 'src/url.h')
-rw-r--r-- | src/url.h | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -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 ); |