S60 3rd Edition API Reference: PosLmCategorySerialization Class Reference

PosLmCategorySerialization Class Reference

API published in: S60 3rd Ed FP 1

Link against: eposlandmarks.lib

Capability Information

Required Capabilities

LocalServices NetworkServices ReadDeviceData ReadUserData WriteDeviceData WriteUserData


#include <epos_poslmcategoryserialization.h>

Detailed Description

This class contains helper methods for landmark category serialization.

A landmark category can be packed into a buffer with PackL method and unpacked back with UnpackL method.


Static Public Member Functions

static IMPORT_C HBufC8 * PackL (const CPosLandmarkCategory &aCategory)
 Packs category object into a buffer.
static IMPORT_C CPosLandmarkCategoryUnpackL (const TDesC8 &aBuffer)
 Unpacks a category object, packed with PackL method, from buffer.

Member Function Documentation

static IMPORT_C HBufC8* PosLmCategorySerialization::PackL const CPosLandmarkCategory aCategory  )  [static]
 

Packs category object into a buffer.

All the data is preserved when packing. Database information is not stored. Packed category can be unpacked with UnpackL method.

Parameters:
aCategory The category to be packed.
Returns:
The buffer with the category data packed. Ownership is transferred to the client.
static IMPORT_C CPosLandmarkCategory* PosLmCategorySerialization::UnpackL const TDesC8 &  aBuffer  )  [static]
 

Unpacks a category object, packed with PackL method, from buffer.

All the data is preserved when packing, and restored exactly when unpacking. It means that category ID is valid only for the database, this category was read from.

Parameters:
aBuffer The buffer containing category.
Returns:
The category unpacked. Ownership is transferred to client.
Leave:
KErrCorrupt if buffer does not contain valid category package.

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2007
Back to top