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 * aKeyIdentifier of the file

CHttpFile(TAny *, const RFile &)

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

Default constructor

Since
S60 v3.2

Parameters

TAny * aKeyIdentifier of the file
const RFile & aFileHandleHandle to the file

~CHttpFile()

~CHttpFile()

Virtual destructor

Since
S60 v3.2

Member Functions Documentation

CloseFile()

voidCloseFile()

Closes the file

ConstructL(const TDesC8 &, const TDesC &)

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

Second phase constructor

Since
S60 v3.2

Parameters

const TDesC8 & aUriUri of the file
const TDesC & aPathLocal path of the file

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aUri)[private]

Second phase constructor

Since
S60 v3.2

Parameters

const TDesC8 & aUriUri of the file

CreateFileInFileSystemL()

voidCreateFileInFileSystemL()

Creates the file in the file system

Since
S60 v3.2

DeleteFileFromFileSystemL()

voidDeleteFileFromFileSystemL()

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 * aKeyIdentifier of the file
const TDesC8 & aUriUri of the file
const TDesC & aPathLocal 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 * aKeyIdentifier of the file
const TDesC8 & aUriUri of the file
const RFile & aFileHandleHandle 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 * aKeyIdentifier of the file
const TDesC8 & aUriUri of the file
const TDesC & aPathLocal 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 * aKeyIdentifier of the file
const TDesC8 & aUriUri of the file
const RFile & aFileHandleHandle to the file

Path()

const HBufC *Path()const

Getter for the iPath member variable

Since
S60 v3.2

SetHeaderL(const TDesC8 &, const TDesC8 &)

voidSetHeaderL(const TDesC8 &aFieldName,
const TDesC8 &aFieldValue
)

Sets a header

Since
S60 v3.2

Parameters

const TDesC8 & aFieldNameThe field name, e.g. 'Accept'
const TDesC8 & aFieldValueThe field value. e.g. 'text/plain'

SetUriL(const TDesC8 &)

voidSetUriL(const TDesC8 &aUri)

Setter for iUri

Since
S60 v3.2

Parameters

const TDesC8 & aUri

TrackProgress(TBool)

voidTrackProgress(TBoolaValue)

Setter for the member variable iTrackProgress

Since
S60 v3.2

Parameters

TBool aValueValue 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.