supl/locationomasuplprotocolhandler/syncmlprovhandler/inc/epos_tomasuplsettingsmap.h
changeset 0 667063e416a2
child 39 3efc7a0e8755
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005 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:  TOMASuplSettingsMap is a utility class to determine the setting ID and name
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef T_TOMASUPLSETTINGSMAP_H
       
    22 #define T_TOMASUPLSETTINGSMAP_H
       
    23 
       
    24 
       
    25 #include <e32cmn.h>
       
    26 
       
    27 
       
    28 _LIT8(KRootFull,"Supl");
       
    29 _LIT8(KSlpAddrFull,"Supl/SLP") ;
       
    30 _LIT8(KIapIdFull,"Supl/PrefConRef") ;
       
    31 _LIT8(KProviderIdFull,"Supl/ProviderId") ;
       
    32 _LIT8(KNameFull,"Supl/Name") ;
       
    33 _LIT8(KToConRefFull,"Supl/ToConRef") ;
       
    34 _LIT8(KConRefFull,"Supl/ConRef") ;
       
    35 _LIT8(KAddrTypeFull,"Supl/AddrType") ;
       
    36 
       
    37 _LIT8(KRootNode,"Supl");
       
    38 _LIT8(KSlpAddr,"SLP") ;
       
    39 _LIT8(KIapIdName,"PrefConRef") ;
       
    40 _LIT8(KProviderId,"ProviderId") ;
       
    41 _LIT8(KName,"Name") ;
       
    42 _LIT8(KToConRef,"ToConRef") ;
       
    43 _LIT8(KConRef,"ConRef") ;
       
    44 _LIT8(KAddrType,"AddrType") ;
       
    45 
       
    46 _LIT(KSuplFile,"supldm.txt");
       
    47 _LIT(KSlpFile,"slpdm.txt");
       
    48 _LIT(KIAPIDFile,"iapiddm.txt");
       
    49 _LIT(KProviderIdFile,"providdm.txt");
       
    50 _LIT(KNameFile,"namedm.txt");
       
    51 _LIT(KToConRefFile,"toconrefdm.txt");
       
    52 _LIT(KConRefFile,"conrefdm.txt");
       
    53 _LIT(KAddrTypeFile,"addrtypedm.txt");
       
    54 
       
    55 
       
    56 static const TUint32 KSizeOfSettingId = 0x8;
       
    57 
       
    58 
       
    59 /**
       
    60 * TSettingMap is a setting ID and setting name value pair
       
    61 * @since S60 v3.1
       
    62 */
       
    63 class TSettingMap
       
    64     {
       
    65 public:
       
    66     TPtrC8 iSettingName;
       
    67     };
       
    68 
       
    69 typedef RArray<TSettingMap> RChildList;
       
    70 
       
    71 
       
    72 /**
       
    73 * TOMASuplSettingsMap is a utility class to determine the setting ID and name 
       
    74 * @since S60 v3.1
       
    75 */
       
    76 class TOMASuplSettingsMap
       
    77     {
       
    78 public: // enums
       
    79 
       
    80     enum TSuplSettingType
       
    81         {
       
    82         ESlp,
       
    83         EPrefConRef,
       
    84         EProviderId,
       
    85         EName,
       
    86         EToConRef,
       
    87         EConRef,
       
    88         EAddrType,
       
    89         ENone	
       
    90         };
       
    91 
       
    92 public:
       
    93 
       
    94     static TInt Map(const TDesC8& aSettingName, TSuplSettingType& suplSettingType);
       
    95     
       
    96     static TInt Get(const TDesC8& aUri, RChildList& aList, RArray<TPtrC8>& aChildren);
       
    97     
       
    98     static TInt FileName(const TDesC8& aUri, const TDesC*& aFileName);
       
    99     };
       
   100 
       
   101 
       
   102 #endif  // T_TOMASUPLSETTINGSMAP_H