diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
| commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
| tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/httpget.cpp | |
| parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
| parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
| download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip | |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to 'src/httpget.cpp')
| -rw-r--r-- | src/httpget.cpp | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/src/httpget.cpp b/src/httpget.cpp index 2347167..99492a2 100644 --- a/src/httpget.cpp +++ b/src/httpget.cpp | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
| 3 | * | 3 | * |
| 4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
| 5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
| @@ -7,7 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | #include "bu/httpget.h" | 8 | #include "bu/httpget.h" |
| 9 | 9 | ||
| 10 | Bu::HttpGet::HttpGet( const Bu::Url &uSrc, const Bu::FString &sMethod ) : | 10 | Bu::HttpGet::HttpGet( const Bu::Url &uSrc, const Bu::String &sMethod ) : |
| 11 | uSrc( uSrc ), | 11 | uSrc( uSrc ), |
| 12 | sMethod( sMethod ), | 12 | sMethod( sMethod ), |
| 13 | sSrv( uSrc.getHost(), uSrc.getPort() ) | 13 | sSrv( uSrc.getHost(), uSrc.getPort() ) |
| @@ -34,30 +34,30 @@ void Bu::HttpGet::get() | |||
| 34 | // sSrv.read( | 34 | // sSrv.read( |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | size_t Bu::HttpGet::read( void * /*pBuf*/, size_t /*nBytes*/ ) | 37 | Bu::size Bu::HttpGet::read( void * /*pBuf*/, Bu::size /*nBytes*/ ) |
| 38 | { | 38 | { |
| 39 | return 0; | 39 | return 0; |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | size_t Bu::HttpGet::write( const void * /*pBuf*/, size_t /*nBytes*/ ) | 42 | Bu::size Bu::HttpGet::write( const void * /*pBuf*/, Bu::size /*nBytes*/ ) |
| 43 | { | 43 | { |
| 44 | return 0; | 44 | return 0; |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | long Bu::HttpGet::tell() | 47 | Bu::size Bu::HttpGet::tell() |
| 48 | { | 48 | { |
| 49 | return 0; | 49 | return 0; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | void Bu::HttpGet::seek( long ) | 52 | void Bu::HttpGet::seek( Bu::size ) |
| 53 | { | 53 | { |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | void Bu::HttpGet::setPos( long ) | 56 | void Bu::HttpGet::setPos( Bu::size ) |
| 57 | { | 57 | { |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | void Bu::HttpGet::setPosEnd( long ) | 60 | void Bu::HttpGet::setPosEnd( Bu::size ) |
| 61 | { | 61 | { |
| 62 | } | 62 | } |
| 63 | 63 | ||
| @@ -109,3 +109,18 @@ void Bu::HttpGet::setBlocking( bool /*bBlocking*/ ) | |||
| 109 | { | 109 | { |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | Bu::size Bu::HttpGet::getSize() const | ||
| 113 | { | ||
| 114 | return 0; | ||
| 115 | } | ||
| 116 | |||
| 117 | Bu::size Bu::HttpGet::getBlockSize() const | ||
| 118 | { | ||
| 119 | return 0; | ||
| 120 | } | ||
| 121 | |||
| 122 | Bu::String Bu::HttpGet::getLocation() const | ||
| 123 | { | ||
| 124 | return uSrc.getUrl(); | ||
| 125 | } | ||
| 126 | |||
