CSenChunk Class Reference

class CSenChunk : public CBase

Inherits from

Constructor & Destructor Documentation

CSenChunk()

IMPORT_CCSenChunk()[protected]

Constructor.

~CSenChunk()

IMPORT_C~CSenChunk()

Destructor.

Member Functions Documentation

AdjustChunk(TInt)

IMPORT_C TIntAdjustChunk(TIntaNewSize)
Changes the number of bytes committed to the internal chunk. This value is always rounded up to the next nearest processor page boundary. This value is rounded up to KSenMinRChunkSize if value is less than KSenMinRChunkSize.
Since
Series60 4.0

Parameters

TInt aNewSizeThe number of bytes to be committed to this chunk.

AllocDescToChunk(TInt, TPtr8 *&)

IMPORT_C TIntAllocDescToChunk(TIntaSize,
TPtr8 *&apAllocated
)
Changes the number of bytes committed to the internal chunk and places a pointer to chunk to apAllocated. Size is always rounded up to the next nearest processor page boundary. Size is rounded up to KSenMinRChunkSize if given size is less than KSenMinRChunkSize.
Since
Series60 4.0

Parameters

TInt aSizeThe number of bytes to be committed to this chunk.
TPtr8 *& apAllocated

Chunk()

IMPORT_C RChunk &Chunk()
Since
Series60 4.0

ChunkHeader()

IMPORT_C TChunkHeader &ChunkHeader()
Since
Series60 4.0

ChunkName()

IMPORT_C TPtrCChunkName()const
Since
Series60 4.0

ChunkToArgs(TIpcArgs &, TInt)

IMPORT_C voidChunkToArgs(TIpcArgs &aArgs,
TIntaIndex
)
Sets an internal chunk into TIpcArgs into given po.
Since
Series60 4.0

Parameters

TIpcArgs & aArgsThe IPC message arguments
TInt aIndexAn index value that identifies the slot in the array of arguments into which the chunk is to be placed. This must be a value in the range 0 to 3.

CloseChunk()

IMPORT_C voidCloseChunk()
Closes RChunk inside CSenChunk
Since
Series60 4.0

ConstructL(const TDesC &)

voidConstructL(const TDesC &aChunkName)[private]
Basic ConstructL function
Since
Series60 4.0

Parameters

const TDesC & aChunkNameis the chunk name.

CreateChunk()

IMPORT_C TIntCreateChunk()
Creates global protected RChunk inside CSenChunk
Since
Series60 4.0

DescFromChunk(TPtrC8 &, TInt)

IMPORT_C TIntDescFromChunk(TPtrC8 &aDesc,
TIntaIndex = 0
)
Gets stored descriptor in given index from internal chunk.
Since
Series60 4.0

Parameters

TPtrC8 & aDescwill hold the pointer to descriptor in internal chunk
TInt aIndex = 0is the index of descriptor to get

DescToChunk(const TDesC8 &)

IMPORT_C TIntDescToChunk(const TDesC8 &aDesc)
Stores given descriptor into internal chunk. Internal chunk is tried to adjust so that given descriptor fits into chunk.
Since
Series60 4.0

Parameters

const TDesC8 & aDescis the descriptor to store

DescToChunk(const TDesC8 &, TInt)

IMPORT_C TIntDescToChunk(const TDesC8 &aDesc,
TIntaIndex
)
Stores given descriptor into internal chunk. Internal chunk is tried to adjust so that given descriptor fits into chunk.
Since
Series60 4.0

Parameters

const TDesC8 & aDescis the descriptor to store
TInt aIndex

DescsFromChunk(TPtrC8 &, TPtrC8 &)

IMPORT_C TIntDescsFromChunk(TPtrC8 &aDesc1,
TPtrC8 &aDesc2
)
Gets stored descriptors from internal chunk.
Since
Series60 4.0

Parameters

TPtrC8 & aDesc1will hold the pointer to the first descriptor in internal chunk
TPtrC8 & aDesc2will hold the pointer to the second descriptor in internal chunk

DescsToChunk(const TDesC8 &, const TDesC8 &)

IMPORT_C TIntDescsToChunk(const TDesC8 &aDesc,
const TDesC8 &aDesc2
)
Stores given descriptors into internal chunk. Internal chunk is tried to adjust so that both of the given descriptors fit into chunk.
Since
Series60 4.0

Parameters

const TDesC8 & aDescis the first descriptor to store
const TDesC8 & aDesc2is the second descriptor to store

Log()

IMPORT_C RFileLogger *Log()const [protected]
Since
Series60 4.0

NewL(const TDesC &)

IMPORT_C CSenChunk *NewL(const TDesC &aChunkName)[static]
Helper class for storing RChunks Two-phased constructor.
Since
Series60 4.0

Parameters

const TDesC & aChunkNameis the chunk name.

NewLC(const TDesC &)

IMPORT_C CSenChunk *NewLC(const TDesC &aChunkName)[static]
Two-phased constructor.
Since
Series60 4.0

Parameters

const TDesC & aChunkNameis the chunk name.

OpenChunk()

IMPORT_C TIntOpenChunk()
Opens global protected RChunk inside CSenChunk
Since
Series60 4.0

OpenChunkFromHandleNumberL(TInt)

IMPORT_C TIntOpenChunkFromHandleNumberL(TIntaHandleOrError)
Opens internal chunk using a handle number returned by a server to a client. This function is called by the client.
Since
Series60 4.0

Parameters

TInt aHandleOrErrorA handle-number, if zero or positive; an error value, if negative.

OpenChunkFromRMsgL(const RMessage2 &, TInt)

IMPORT_C TIntOpenChunkFromRMsgL(const RMessage2 &aMessage,
TIntaIndex
)
Opens internal chunk using a handle number sent by a client to a server. This function is called by the server.
Since
Series60 4.0

Parameters

const RMessage2 & aMessageRepresents the contents of the client message
TInt aIndexAn index specifying which of the four message arguments contains the handle number.

RequestFileHandle()

IMPORT_C RFile &RequestFileHandle()
Gets the Rfile Pointer to CHUNK to send content by HTTP:POST
Since
Series60

RequestFileHandle(RFile &)

IMPORT_C voidRequestFileHandle(RFile &aFile)
Sets the Rfile Pointer to CHUNK to send content by HTTP:POST
Since
Series60

Parameters

RFile & aFile

RoundToNextDividableByFourAddress(TUint8 *)

TUint8 *RoundToNextDividableByFourAddress(TUint8 *aValue)[private]

This private helper ensures that cast address is dividable by four (MANDATORY in ARMv5 environment, for example)

Parameters

TUint8 * aValue

SetLogger(RFileLogger *)

IMPORT_C voidSetLogger(RFileLogger *aLog)
Sets the file logger used for debug messages.
Since
Series60 4.0

Parameters

RFileLogger * aLogis the file logger

operator==(const CSenChunk &)

IMPORT_C TBooloperator==(const CSenChunk &aChunk)
Tests whether two CSenChunks are equal.
Since
Series60 4.0

Parameters

const CSenChunk & aChunkThe SenChunk to be compared with this SenChunk

Member Data Documentation

RChunk iChunk

RChunk iChunk[private]

RFile iFile

RFile iFile[private]

RFileLogger * iLog

RFileLogger *iLog[private]

HBufC * ipChunkName

HBufC *ipChunkName[protected]