CSenChunk Class Reference
class CSenChunk : public CBase
|
Constructor & Destructor Documentation
CSenChunk()
IMPORT_C
|
CSenChunk
|
(
|
)
|
[protected]
|
Member Functions Documentation
AdjustChunk(TInt)
IMPORT_C
TInt
|
AdjustChunk
|
(
|
TInt
|
aNewSize
|
)
|
|
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
aNewSize
|
The number of bytes to be committed to this chunk.
|
AllocDescToChunk(TInt, TPtr8 *&)
IMPORT_C
TInt
|
AllocDescToChunk
|
(
|
TInt
|
aSize,
|
|
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
aSize
|
The number of bytes to be committed to this chunk.
|
TPtr8
*& apAllocated
|
|
ChunkName()
IMPORT_C
TPtrC
|
ChunkName
|
(
|
)
|
const
|
ChunkToArgs(TIpcArgs &, TInt)
Sets an internal chunk into
TIpcArgs
into given po.
-
Since
-
Series60 4.0
Parameters
TIpcArgs
& aArgs
|
The IPC message arguments
|
TInt
aIndex
|
An 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 void
|
CloseChunk
|
(
|
)
|
|
ConstructL(const TDesC &)
void
|
ConstructL
|
(
|
const
TDesC
&
|
aChunkName
|
)
|
[private]
|
Basic ConstructL function
-
Since
-
Series60 4.0
Parameters
const
TDesC
& aChunkName
|
is the chunk name.
|
CreateChunk()
IMPORT_C
TInt
|
CreateChunk
|
(
|
)
|
|
DescFromChunk(TPtrC8 &, TInt)
Gets stored descriptor in given index from internal chunk.
-
Since
-
Series60 4.0
Parameters
TPtrC8
& aDesc
|
will hold the pointer to descriptor in internal chunk
|
TInt
aIndex = 0
|
is the index of descriptor to get
|
DescToChunk(const TDesC8 &)
IMPORT_C
TInt
|
DescToChunk
|
(
|
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
& aDesc
|
is the descriptor to store
|
DescToChunk(const TDesC8 &, TInt)
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
& aDesc
|
is the descriptor to store
|
TInt
aIndex
|
|
DescsFromChunk(TPtrC8 &, TPtrC8 &)
Gets stored descriptors from internal chunk.
-
Since
-
Series60 4.0
Parameters
TPtrC8
& aDesc1
|
will hold the pointer to the first descriptor in internal chunk
|
TPtrC8
& aDesc2
|
will hold the pointer to the second descriptor in internal chunk
|
DescsToChunk(const TDesC8 &, const TDesC8 &)
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
& aDesc
|
is the first descriptor to store
|
const
TDesC8
& aDesc2
|
is the second descriptor to store
|
NewL(const TDesC &)
Helper class for storing RChunks Two-phased constructor.
-
Since
-
Series60 4.0
Parameters
const
TDesC
& aChunkName
|
is the chunk name.
|
NewLC(const TDesC &)
Two-phased constructor.
-
Since
-
Series60 4.0
Parameters
const
TDesC
& aChunkName
|
is the chunk name.
|
OpenChunk()
IMPORT_C
TInt
|
OpenChunk
|
(
|
)
|
|
OpenChunkFromHandleNumberL(TInt)
IMPORT_C
TInt
|
OpenChunkFromHandleNumberL
|
(
|
TInt
|
aHandleOrError
|
)
|
|
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
aHandleOrError
|
A handle-number, if zero or positive; an error value, if negative.
|
OpenChunkFromRMsgL(const RMessage2 &, TInt)
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
& aMessage
|
Represents the contents of the client message
|
TInt
aIndex
|
An 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 void
|
RequestFileHandle
|
(
|
RFile
&
|
aFile
|
)
|
|
Sets the Rfile Pointer to CHUNK to send content by HTTP:POST
-
Since
-
Series60
RoundToNextDividableByFourAddress(TUint8 *)
TUint8
*
|
RoundToNextDividableByFourAddress
|
(
|
TUint8
*
|
aValue
|
)
|
[private]
|
This private helper ensures that cast address is dividable by four (MANDATORY in ARMv5 environment, for example)
SetLogger(RFileLogger *)
Sets the file logger used for debug messages.
-
Since
-
Series60 4.0
operator==(const CSenChunk &)
Tests whether two CSenChunks are equal.
-
Since
-
Series60 4.0
Parameters
const
CSenChunk
& aChunk
|
The SenChunk to be compared with this SenChunk
|
Member Data Documentation
HBufC * ipChunkName
HBufC
*
|
ipChunkName
|
[protected]
|
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.