#include <app/obexheaderlist.h>
Link against: obexmtmutil.lib
class CObexHeaderList : public CBase |
Public Member Functions | |
---|---|
~CObexHeaderList() | |
IMPORT_C TInt | AddHeader(const CObexHeader *) |
IMPORT_C void | ExportToAttachmentL(CMsvAttachment &) |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | ImportFromAttachmentL(CMsvAttachment &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C CObexHeaderList * | NewL() |
IMPORT_C CObexHeaderList * | NewLC() |
Protected Member Functions | |
---|---|
IMPORT_C void | AddHeadersToBaseObjectL(CObexBaseObject &) |
IMPORT_C TInt | Count() |
IMPORT_C CObexHeader *& | ObexHeaderL(TInt) |
Encapsulates and owns a list of CObexHeader objects. Public users of this class can add CObexHeader objects
IMPORT_C | ~CObexHeaderList | ( | ) |
Destructor which frees all allocated memory with the list.
Destructor which frees all allocated memory with the list
IMPORT_C TInt | AddHeader | ( | const CObexHeader * | aHeader | ) |
Add a CObexHeader object to the list. The CObexHeader object added should have its attribute, header ID and header value set before it is added to the list. CObexHeaderlist will not change these values of its contained CObexHeader objects Add a CObexHeader object to the list. The CObexHeader object added should have its attribute, header ID and header value set before it is added to the list. CObexHeaderlist will not change these values of its contained CObexHeader objects
Parameters | |
---|---|
aHeader | is a pointer to a constant CObexHeader object |
IMPORT_C void | AddHeadersToBaseObjectL | ( | CObexBaseObject & | aObexBaseObj | ) | [protected] |
Add all the CObexHeader objects contained in a list to a CObexBaseObject.
Parameters | |
---|---|
aObexBaseObj | is a reference to a CObexBaseObject |
Leave Codes | |
---|---|
Error | System wide error code |
it | may leave with one of the system wide error code |
IMPORT_C TInt | Count | ( | ) | const [protected] |
Return the number of CObexHeader object pointers contained in the list.
Return the number of CObexHeader object pointers contained in the list
IMPORT_C void | ExportToAttachmentL | ( | CMsvAttachment & | aAttachment | ) | const |
Parameters | |
---|---|
aAttachment | The attachment to store the header list for. |
Leave Codes | |
---|---|
System-wide | error codes. |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aWriteStream | ) | const |
Externalise the contents of the CObexHeaderList class to a stream in CMsvStore
Parameters | |
---|---|
aWriteStream | is a reference to a RMsvWriteStream |
Leave Codes | |
---|---|
it | may leave with one of the system wide error code |
IMPORT_C void | ImportFromAttachmentL | ( | CMsvAttachment & | aAttachment | ) |
Parameters | |
---|---|
aAttachment | The attachment to retieve the header list from. |
Leave Codes | |
---|---|
System-wide | error codes. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aReadStream | ) |
Internalise the contents of the CObexHeaderList class from a stream in CMsvStore
Parameters | |
---|---|
aReadStream | is a reference to a RMsvReadStream |
Leave Codes | |
---|---|
it | may leave with one of the system wide error code |
IMPORT_C CObexHeaderList * | NewL | ( | ) | [static] |
Factory function to return a new CObexHeaderList. Factory function to return a CObexHeaderList*
IMPORT_C CObexHeaderList * | NewLC | ( | ) | [static] |
Factory function to return a new CObexHeaderList and leave it on the cleanup stack. Factory function to return a CObexHeaderList* and leave it on the CleanupStack
IMPORT_C CObexHeader *& | ObexHeaderL | ( | TInt | aPos | ) | [protected] |
Get a non constant reference to the CObexHeader object pointer at position aPos into the list.
Parameters | |
---|---|
aPos | is a list index specifying the CObexHeader object pointer to be returned |
Leave Codes | |
---|---|
KErrArgument | aPos is out of range |
KErrNotFound | The list is empty |
leave | if aPos is out of range(KErrArgument) or the list is empty (KErrNotFound) |