CUpnpHttpFileAccess Class Reference
class CUpnpHttpFileAccess : public CBase |
Constructor & Destructor Documentation
CUpnpHttpFileAccess(TInt)
CUpnpHttpFileAccess | ( | TInt | aFileSize | ) | [private] |
First phase constructor. This constructor is used when file is to be sent from HttpServer.
- Since
- Series60 2.6
Parameters
TInt aFileSize | Size of file to be served. |
CUpnpHttpFileAccess()
CUpnpHttpFileAccess | ( | ) | [private] |
First phase constructor. This constructor is used when file is to be received.
- Since
- Series60 2.6
~CUpnpHttpFileAccess()
Virtual Destructor function.
Member Functions Documentation
BytesWritten()
Returnes the number of bytes written
- Since
- Series60 3.2
ConstructL(CUpnpHttpSession *, const TDesC8 &, const TDesC16 &)
By default Symbian 2nd phase constructor is private.
Parameters
CUpnpHttpSession * aSession | handle to parent session that owns this object. |
const TDesC8 & aHeaderBuffer | descriptor with message headers. |
const TDesC16 & aFilename | |
ConstructL(CUpnpHttpSession *, const TDesC16 &)
By default Symbian 2nd phase constructor is private.
DeleteFile()
Deletes file in error cases.
- Since
- Series60 2.6
Download()
Returnes if currently handled file is downloaded or uploaded.
- Since
- Series60 2.6
EncodingMode()
Returns the encoding mode
- Since
- Series60 3.2
EndPosOfFile()
Returns the position where to stop reading the file.
- Since
- Series60 2.6
FileExist()
Returnes true if currently handled file is not removed.
- Since
- Series60 3.2
FileToServe()
Returns the filename of the served file.
- Since
- Series60 2.6
GetHeaders()
Gets the headers of content to be sent
- Since
- Series60 3.2
GetL(TPtr8 &, TInt)
Gets bytes to be sent
- Since
- Series60 3.2
Parameters
TPtr8 & aPointer | to write the read content |
TInt aBytesToSend | Number of bytes to send. |
HeadersSent()
True if HTTP headers sent
- Since
- Series60 3.2
IsEndOfFile()
TBool
| IsEndOfFile | ( | ) | [private] |
Checks if whole file has been read - returns ETrue if yes Close iTargetFile when returns ETrue
NewL(CUpnpHttpSession *, const TDesC8 &, const TDesC16 &, TInt)
Constructor function. This constructor is used when file is served by HttpServer.
- Since
- Series60 2.6
Parameters
CUpnpHttpSession * aSession | Pointer to owning session of this CUpnpHttpFileAccess. |
const TDesC8 & aHeaderBuffer | Buffer that contains the headers of message to be served. |
const TDesC16 & aFilename | Name of file to be served. |
TInt aFileSize | Size of file to be served. |
NewL(CUpnpHttpSession *, const TDesC16 &)
Constructor function. This constructor is used when file is to be received.
- Since
- Series60 2.6
Parameters
CUpnpHttpSession * aSession | Pointer to owning session of this CUpnpHttpFileAccess. |
const TDesC16 & aFilename | Name of file to be saved locally. |
PosOfFile()
Returns the reading position of the file.
- Since
- Series60 2.6
SaveL(TDesC8 &)
Parameters
TDesC8 & aBuffer | Content to save (append) to file. |
SetChunkCompleted(TBool)
void | SetChunkCompleted | ( | TBool | aCompleted | ) | |
True when chunk tranfer completes
- Since
- Series60 3.2
SetEncodingMode(TBool)
void | SetEncodingMode | ( | TBool | aIsChunked | ) | |
Sets the encoding mode
- Since
- Series60 3.2
SetEndPosOfFile(TInt)
void | SetEndPosOfFile | ( | TInt | aNewEndPos | ) | |
Sets the position where to stop reading the file.
- Since
- Series60 2.6
SetHeadersSent()
Called after headers were queued to be sent
- Since
- Series60 3.2
SetOffset(TUint)
void | SetOffset | ( | TUint | aOffset | ) | |
Sets the offset of the local file at which should be downloaded content saved.
- Since
- Series60 2.6
SetPosOfFile(TUint)
void | SetPosOfFile | ( | TUint | aNewPos | ) | |
Sets the reading position of the file.
- Since
- Series60 2.6
Parameters
TUint aNewPos | Position of reading, counting from start of file. |
SetPosOfHeader(TUint)
void | SetPosOfHeader | ( | TUint | aNewPos | ) | |
Sets the reading position of the headerbuffer.
- Since
- Series60 2.6
Parameters
TUint aNewPos | Position of reading, counting from start of headerbuffer. |
SetTotalSize(TInt)
void | SetTotalSize | ( | TInt | aSizeToSet | ) | |
Sets the total size of file transfer (FileSize).
- Since
- Series60 2.6
SetTransferTotal(TInt)
void | SetTransferTotal | ( | TInt | aLength | ) | |
Sets the size of the transfer
- Since
- Series60 3.2
TransferTotal()
Returns the number of bytes that is to be transferred, ie size of file.
- Since
- Series60 2.6
TransferredBytes()
Returns the number of bytes that has been transferred
- Since
- Series60 2.6
Member Data Documentation
TInt
iBytesWritten
TInt
| iBytesWritten | [private] |
TInt
iEndPosOfFile
TInt
| iEndPosOfFile | [private] |
HBufC8 * iHeaderBuffer
HBufC8 * | iHeaderBuffer | [private] |
TInt
iHeaderLength
TInt
| iHeaderLength | [private] |
TBool
iHeadersSent
TBool
| iHeadersSent | [private] |
TBool
iIsChunkCompleted
TBool
| iIsChunkCompleted | [private] |
TBool
iIsChunked
TBool
| iIsChunked | [private] |
TBool
iIsDeleted
TBool
| iIsDeleted | [private] |
TBool
iIsDownload
TBool
| iIsDownload | [private] |
HBufC * iOpenedFile
HBufC * | iOpenedFile | [private] |
TInt
iPosToReadHeader
TInt
| iPosToReadHeader | [private] |
CUpnpHttpSession * iSession
TInt
iSizeOfFile
TInt
| iSizeOfFile | [private] |
RFile
iTargetFile
RFile
| iTargetFile | [private] |
TInt
iTotalSizeOfDownload
TInt
| iTotalSizeOfDownload | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.