diff options
Diffstat (limited to 'src/httpget.h')
| -rw-r--r-- | src/httpget.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/httpget.h b/src/httpget.h index 58982c0..a58e8ac 100644 --- a/src/httpget.h +++ b/src/httpget.h | |||
| @@ -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. |
| @@ -26,14 +26,14 @@ namespace Bu | |||
| 26 | 26 | ||
| 27 | // From Bu::Stream | 27 | // From Bu::Stream |
| 28 | virtual void close(); | 28 | virtual void close(); |
| 29 | virtual size_t read( void *pBuf, size_t nBytes ); | 29 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); |
| 30 | virtual size_t write( const void *pBuf, size_t nBytes ); | 30 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); |
| 31 | using Stream::write; | 31 | using Stream::write; |
| 32 | 32 | ||
| 33 | virtual long tell(); | 33 | virtual Bu::size tell(); |
| 34 | virtual void seek( long offset ); | 34 | virtual void seek( Bu::size offset ); |
| 35 | virtual void setPos( long pos ); | 35 | virtual void setPos( Bu::size pos ); |
| 36 | virtual void setPosEnd( long pos ); | 36 | virtual void setPosEnd( Bu::size pos ); |
| 37 | virtual bool isEos(); | 37 | virtual bool isEos(); |
| 38 | virtual bool isOpen(); | 38 | virtual bool isOpen(); |
| 39 | 39 | ||
| @@ -49,6 +49,10 @@ namespace Bu | |||
| 49 | virtual bool isBlocking(); | 49 | virtual bool isBlocking(); |
| 50 | virtual void setBlocking( bool bBlocking=true ); | 50 | virtual void setBlocking( bool bBlocking=true ); |
| 51 | 51 | ||
| 52 | virtual size getSize() const; | ||
| 53 | virtual size getBlockSize() const; | ||
| 54 | virtual Bu::String getLocation() const; | ||
| 55 | |||
| 52 | private: | 56 | private: |
| 53 | Bu::Url uSrc; | 57 | Bu::Url uSrc; |
| 54 | Bu::String sMethod; | 58 | Bu::String sMethod; |
