class CImapTransportBufferSizes : public CBase |
Stores the transport buffer sizes to be used for IMAP operations.
Each rule consists of a bearer types field, and some buffer size information. The bearer types are defined by the TCommDbBearer enumeration and it is possible to specify multiple bearer types for one rule by performing a bitwise OR operation on the values from the enumeration and passing the resulting value to the various APIs. The buffer size options supported are: 1) Fetch request size - Maximum amount of data that can be requested from the server by a FETCH command. Fetching large email components such as atatchments may require multiple fetch requests to be made dependent on the size specified. 2) Fetch commands outstanding - The maximum number of fetch responses that can be outstanding at any one time. Fetching large email components such as attachments may require multiple fetch requests to be made. It is possible to send multiple fetch requests to the server at the same time, and this option determines how many responses can be outstanding at any one time.
Public Member Functions | |
---|---|
~CImapTransportBufferSizes() | |
IMPORT_C TInt | AddSizesL(TInt, TUint32, TInt, TInt) |
IMPORT_C CImapTransportBufferSizes * | CopyL() |
IMPORT_C CImapTransportBufferSizes * | CopyLC() |
IMPORT_C TInt | DeleteBearerTypesL(TUint32, TBool &) |
IMPORT_C TBool | DeleteSizesL(TInt) |
IMPORT_C TBool | GetSizesL(TInt, TUint32 &, TInt &, TInt &) |
IMPORT_C TInt | GetSizesL(TUint32, TInt &, TInt &) |
IMPORT_C CImapTransportBufferSizes * | NewL() |
IMPORT_C CImapTransportBufferSizes * | NewLC() |
IMPORT_C void | Reset() |
Private Member Functions | |
---|---|
CImapTransportBufferSizes() | |
void | ConstructL() |
Private Attributes | |
---|---|
RArray< TImapTransportBufferSizes > | iSizesList |
IMPORT_C TInt | AddSizesL | ( | TInt | aPos, |
TUint32 | aBearerTypes, | |||
TInt | aFetchRequestSize, | |||
TInt | aMaxOutstandingFetchResponses | |||
) |
Adds a transport buffer sizes entry
The position for the new entry is specified in the parameter list. If the position is greater than the number of entries already in the list then the new entry is added at the end of the list. If the position is less than the number of entries already in the list, then the new entry is inserted at that position and all subsequent entries moved down by one position. The actual position where the entry was added is given by the return value.
Invalid arguments passed to the routine will cause a panic on debug builds but a leave with KErrArgument on a release build.
TInt aPos | Position in the list to add the entry. |
TUint32 aBearerTypes | Bearer types that will use the entry. |
TInt aFetchRequestSize | Fetch request size in bytes. Minimum value 1024. Must be a multiple of 1024. |
TInt aMaxOutstandingFetchResponses | Maximum number of outstanding fetch responses allowed. Minimum value 1, Maximum value 8. |
IMPORT_C CImapTransportBufferSizes * | CopyLC | ( | ) |
Make new copy of an instance of the class. On return the copy will be on the cleanup stack.
IMPORT_C TInt | DeleteBearerTypesL | ( | TUint32 | aBearerTypes, |
TBool & | aSizesRemoved | |||
) |
Deletes bearer types from the transport buffer sizes entries.
Every entry is examined to see if the bearer types associated with that entry contain all of the passed in bearer types. If there is a match then the bearer types are removed from the entry. If this results in all the bearer types for the entry being removed then the entry is deleted and all subsequent entries are moved up one position.
Invalid arguments passed to the routine will cause a panic on debug builds but a leave with KErrArgument on a release build.
IMPORT_C TBool | DeleteSizesL | ( | TInt | aPos | ) |
Deletes a transport buffer sizes entry from a given position
Invalid arguments passed to the routine will cause a panic on debug builds but a leave with KErrArgument on a release build.
TInt aPos | Position in the list to add the entry. |
IMPORT_C TBool | GetSizesL | ( | TInt | aPos, |
TUint32 & | aBearerTypes, | |||
TInt & | aFetchRequestSize, | |||
TInt & | aMaxOutstandingFetchResponses | |||
) | const |
Gets the transport buffer sizes entry at a given position.
Invalid arguments passed to the routine will cause a panic on debug builds but a leave with KErrArgument on a release build.
TInt aPos | Position of the entry in the list |
TUint32 & aBearerTypes | On successful completion, this holds the bearer types for the entry |
TInt & aFetchRequestSize | On successful completion, this holds the fetch request size in bytes. |
TInt & aMaxOutstandingFetchResponses | On successful completion, this holds the maximum number of outstanding fetch responses allowed. |
IMPORT_C TInt | GetSizesL | ( | TUint32 | aBearerTypes, |
TInt & | aFetchRequestSize, | |||
TInt & | aMaxOutstandingFetchResponses | |||
) | const |
Gets the transport buffer sizes entry for a bearer type.
An entry is returned only if the bearer types associated with the entry contain all the bearer types specified in the passed in value.
Invalid arguments passed to the routine will cause a panic on debug builds but a leave with KErrArgument on a release build.
RArray< TImapTransportBufferSizes > | iSizesList | [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.