CHttpFile Class Reference

class CHttpFile : public CBase

Class which represents one dowloaded/uploaded file

httptransfer.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CHttpFile(TAny *)

CHttpFile ( TAny * aKey ) [private]

Default constructor

Since
S60 v3.2

Parameters

TAny * aKey Identifier of the file

CHttpFile(TAny *, const RFile &)

CHttpFile ( TAny * aKey,
const RFile & aFileHandle
) [private]

Default constructor

Since
S60 v3.2

Parameters

TAny * aKey Identifier of the file
const RFile & aFileHandle Handle to the file

~CHttpFile()

~CHttpFile ( )

Virtual destructor

Since
S60 v3.2

Member Functions Documentation

CloseFile()

void CloseFile ( )

Closes the file

ConstructL(const TDesC8 &, const TDesC &)

void ConstructL ( const TDesC8 & aUri,
const TDesC & aPath
) [private]

Second phase constructor

Since
S60 v3.2

Parameters

const TDesC8 & aUri Uri of the file
const TDesC & aPath Local path of the file

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aUri ) [private]

Second phase constructor

Since
S60 v3.2

Parameters

const TDesC8 & aUri Uri of the file

CreateFileInFileSystemL()

void CreateFileInFileSystemL ( )

Creates the file in the file system

Since
S60 v3.2

DeleteFileFromFileSystemL()

void DeleteFileFromFileSystemL ( )

Deletes the file from the file system

Since
S60 v3.2

FileHandle()

RFile FileHandle ( ) const

Getter for the filehandle

Since
S60 v3.2

Headers()

RPointerArray < CHttpHeader > & Headers ( )

Getter for header array

Since
S60 v3.2

Key()

TAny * Key ( ) const

Getter for the member variable iKey

Since
S60 v3.2

NewL(TAny *, const TDesC8 &, const TDesC &)

CHttpFile * NewL ( TAny * aKey,
const TDesC8 & aUri,
const TDesC & aPath
) [static]

Constructor

Since
S60 v3.2

Parameters

TAny * aKey Identifier of the file
const TDesC8 & aUri Uri of the file
const TDesC & aPath Local path of the file

NewL(TAny *, const TDesC8 &, const RFile &)

CHttpFile * NewL ( TAny * aKey,
const TDesC8 & aUri,
const RFile & aFileHandle
) [static]

Constructor

Since
S60 v3.2

Parameters

TAny * aKey Identifier of the file
const TDesC8 & aUri Uri of the file
const RFile & aFileHandle Handle to the file

NewLC(TAny *, const TDesC8 &, const TDesC &)

CHttpFile * NewLC ( TAny * aKey,
const TDesC8 & aUri,
const TDesC & aPath
) [static]

Constructor

Since
S60 v3.2

Parameters

TAny * aKey Identifier of the file
const TDesC8 & aUri Uri of the file
const TDesC & aPath Local path of the file

NewLC(TAny *, const TDesC8 &, const RFile &)

CHttpFile * NewLC ( TAny * aKey,
const TDesC8 & aUri,
const RFile & aFileHandle
) [static]

Constructor

Since
S60 v3.2

Parameters

TAny * aKey Identifier of the file
const TDesC8 & aUri Uri of the file
const RFile & aFileHandle Handle to the file

Path()

const HBufC * Path ( ) const

Getter for the iPath member variable

Since
S60 v3.2

SetHeaderL(const TDesC8 &, const TDesC8 &)

void SetHeaderL ( const TDesC8 & aFieldName,
const TDesC8 & aFieldValue
)

Sets a header

Since
S60 v3.2

Parameters

const TDesC8 & aFieldName The field name, e.g. 'Accept'
const TDesC8 & aFieldValue The field value. e.g. 'text/plain'

SetUriL(const TDesC8 &)

void SetUriL ( const TDesC8 & aUri )

Setter for iUri

Since
S60 v3.2

Parameters

const TDesC8 & aUri

TrackProgress(TBool)

void TrackProgress ( TBool aValue )

Setter for the member variable iTrackProgress

Since
S60 v3.2

Parameters

TBool aValue Value of the progress flag

TrackingOn()

TBool TrackingOn ( ) const

Returns if tracking is set on.

Since
S60 v3.2

Uri()

const HBufC8 * Uri ( ) const

Getter for the iUri member variable

Since
S60 v3.2

Member Data Documentation

RFile iFile

RFile iFile [private]

Handle to the file

RFs iFsSession

RFs iFsSession [private]

File server session

RPointerArray< CHttpHeader > iHeaderArray

RPointerArray < CHttpHeader > iHeaderArray [private]

Array of headers

TAny * iKey

TAny * iKey [private]

Identifier of the object Not own.

HBufC * iPath

HBufC * iPath [private]

Full path on local system Own.

TBool iTrackProgress

TBool iTrackProgress [private]

Indicator if tracking of the progress is switched on

HBufC8 * iUri

HBufC8 * iUri [private]

Uri Own.