datasourcemodules/defaultpositioningmodule/inc/epos_posgenericinfouser.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef POSGENERICINFOUSER_H
       
    22 #define POSGENERICINFOUSER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <lbs.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  This class is helper class to handle HPositionGenericInfo.
       
    33 */
       
    34 class PosGenericInfoUser
       
    35     {
       
    36     public:
       
    37         /**
       
    38         * Copy HPositionGenericInfo
       
    39         * @param aSrc The source HPositionGenericInfo
       
    40         * @param aDes The destination of HPositionGenericInfo
       
    41         */
       
    42         static TInt CopyHGenericInfo( 
       
    43             const HPositionGenericInfo& aSrc,
       
    44             HPositionGenericInfo& aDes );
       
    45             
       
    46     private:
       
    47         /**
       
    48         * Copy field value from one HPositionGenericInfo to another
       
    49         */
       
    50         static TInt CopyField( 
       
    51             const HPositionGenericInfo& aSrc,
       
    52             HPositionGenericInfo& aDes,
       
    53             TInt aFieldId );
       
    54 
       
    55         /**
       
    56         * Get field data type
       
    57         */
       
    58         static TInt FieldDataType( 
       
    59             TInt aFieldId, 
       
    60             TInt& aFieldDataType, 
       
    61             TBool& aIsList );
       
    62 
       
    63         /**
       
    64         * Copy data by type
       
    65         */
       
    66         static TInt CopyDataByType( 
       
    67             const HPositionGenericInfo& aSrc,
       
    68             HPositionGenericInfo& aDes,
       
    69             TInt aFieldId,
       
    70             TInt aDataType );
       
    71             
       
    72         /**
       
    73         * Copy data template function
       
    74         */
       
    75         template < class T > static TInt CopyData( 
       
    76             const HPositionGenericInfo& aSrc,
       
    77             HPositionGenericInfo& aDes,
       
    78             TInt aFieldId );
       
    79 
       
    80     };
       
    81 
       
    82 #endif      // POSGENERICINFOUSER_H   
       
    83             
       
    84 // End of File