uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_vimpstsettingsstoreimp.cpp
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     1 /*
       
     2 * Copyright (c) 2008 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:  vimpst settings store definitions and repository transactions.
       
    15 *
       
    16 */
       
    17 
       
    18 //  INCLUDES
       
    19 #include <e32std.h>
       
    20 #include "s_vimpstsettingsstoreimp.h"
       
    21 
       
    22 //dummy serviceId, assuming the service id not more than 256. for the first time
       
    23 //and it is assumed that this service id is for initializing the cenrep keys only.
       
    24 //not updated in the service table and hence will not get a TAB in phone book
       
    25 //const TInt KServiceIDOffset = 16;
       
    26 
       
    27 // opaque data length, see cvimpstuisapsettings.h SetOpaqueDesC16 method description.
       
    28 //const TInt KSapSettingsDataBufferLength = 5;
       
    29 // Collation level 1 to ignore case
       
    30 //const TInt KCollationLevel = 1;
       
    31 
       
    32 /**  Key to CIMPSSAPSettings opaque value */
       
    33 //_LIT( KIMToUAccepted, "KIMToUAccepted" );
       
    34 /**  User id separator in KIMToUAccepted list */
       
    35 //_LIT( KIMDot, "," );
       
    36 
       
    37 //================= MEMBER FUNCTIONS =======================
       
    38 // ---------------------------------------------------------
       
    39 // CVIMPSTSettingsStoreImp::NewL
       
    40 // 
       
    41 // ---------------------------------------------------------
       
    42 MVIMPSTSettingsStore* CVIMPSTSettingsStoreImp::InitialiseLibraryL( )
       
    43     {
       
    44     // no existing instance, create a new one
       
    45     MVIMPSTSettingsStore *settingsStoreImp = CVIMPSTSettingsStoreImp::NewL();
       
    46     return (MVIMPSTSettingsStore*)settingsStoreImp;
       
    47     }
       
    48 
       
    49 void CVIMPSTSettingsStoreImp::Release( )
       
    50     {
       
    51     
       
    52     }
       
    53 // ---------------------------------------------------------
       
    54 // CVIMPSTSettingsStoreImp::NewLC
       
    55 // 
       
    56 // ---------------------------------------------------------
       
    57 MVIMPSTSettingsStore* CVIMPSTSettingsStoreImp::NewL( )
       
    58     {
       
    59     CVIMPSTSettingsStoreImp* self = new (ELeave) CVIMPSTSettingsStoreImp( );
       
    60     CleanupStack::PushL( self );
       
    61     self->ConstructL( );
       
    62     CleanupStack::Pop( self );
       
    63     return self;
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------
       
    67 // CVIMPSTSettingsStoreImp::ConstructL
       
    68 // 
       
    69 // ---------------------------------------------------------
       
    70 
       
    71 void CVIMPSTSettingsStoreImp::ConstructL( )
       
    72     {
       
    73    
       
    74     }
       
    75 
       
    76 // ---------------------------------------------------------
       
    77 // CVIMPSTSettingsStoreImp::Destructor
       
    78 // 
       
    79 // ---------------------------------------------------------
       
    80 CVIMPSTSettingsStoreImp::~CVIMPSTSettingsStoreImp()
       
    81     {
       
    82    
       
    83     }
       
    84 
       
    85 // --------------------------------------------------------------------------------------------------
       
    86 // CVIMPSTSettingsStoreImp::SetL
       
    87 // 
       
    88 // ---------------------------------------------------------------------------------------------------
       
    89 
       
    90 TInt CVIMPSTSettingsStoreImp::SetL(TUint32 /*aServiceId*/, TSettingItemName /*aSettingItemName*/, const TDesC8& /*aBuffer*/  )
       
    91     {
       
    92     return KErrNone;  // return the value : error code  
       
    93     }
       
    94 
       
    95 // --------------------------------------------------------------------------------------------------
       
    96 // CVIMPSTSettingsStoreImp::SetL
       
    97 // 
       
    98 // ---------------------------------------------------------------------------------------------------
       
    99 
       
   100 TInt CVIMPSTSettingsStoreImp::GetL(TUint32 /*aServiceId*/, TSettingItemName /*aSettingItemName*/, const TDesC8& /*aBuffer*/  )
       
   101     {
       
   102     return KErrNone;  // return the value : error code  
       
   103     }
       
   104 
       
   105 //End of file