/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: SUPL PSY position requestor header file
*
*/
#ifndef SUPLPSYGENERICINFOUSER_H
#define SUPLPSYGENERICINFOUSER_H
// INCLUDES
#include <e32base.h>
#include <lbs.h>
// FORWARD DECLARATIONS
// CLASS DECLARATION
/**
* This class is helper class for SUPL PSY to handle HPositionGenericInfo.
*
* @lib nlaapesuplpsy.dll
* @since S60 3.1
*/
class SuplPsyGenericInfoUser
{
public:
/**
* Return the number of fields that SUPL PSY supports
* @return Number of the filelds that SUPL PSY supports
*/
static TInt SupportedFieldsCount();
/**
* Return the supported field id
* @param aIndex The index in the array
* @return The field Id
*/
static TInt SupportedFieldAt( TInt aIndex );
/**
* Copy HPositionGenericInfo
* @param aSrc The source HPositionGenericInfo
* @param aDes The destination of HPositionGenericInfo
*/
static TInt CopyHGenericInfo(
const HPositionGenericInfo& aSrc,
HPositionGenericInfo& aDes );
private:
/**
* Copy field value from one HPositionGenericInfo to another
*/
static TInt CopyField(
const HPositionGenericInfo& aSrc,
HPositionGenericInfo& aDes,
TInt aFieldId );
/**
* Get field data type
*/
static TInt FieldDataType(
TInt aFieldId,
TInt& aFieldDataType,
TBool& aIsList );
/**
* Copy data by type
*/
static TInt CopyDataByType(
const HPositionGenericInfo& aSrc,
HPositionGenericInfo& aDes,
TInt aFieldId,
TInt aDataType );
/**
* Copy data template function
*/
template < class T > static TInt CopyData(
const HPositionGenericInfo& aSrc,
HPositionGenericInfo& aDes,
TInt aFieldId );
};
#endif // SUPLPSYGENERICINFOUSER_H
// End of File