diff -r 000000000000 -r 164170e6151a pkiutilities/DeviceToken/Src/Generic/Common/DevTokenCliServ.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkiutilities/DeviceToken/Src/Generic/Common/DevTokenCliServ.cpp Tue Jan 26 15:20:08 2010 +0200 @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2006 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: Implementation of DevTokenCliServ +* +*/ + + + +#include "DevTokenCliServ.h" +#include "DevTokenTypesEnum.h" +#include "DevTokenImplementationUID.hrh" + +const TInt KDeviceTokenTypeUidValues[] = { DEVCERTKEYSTORE_IMPLEMENTATION_UID, DEVCERTSTORE_IMPLEMENTATION_UID, TRUSRVCERTSTORE_IMPLEMENTATION_UID }; + +// ======== MEMBER FUNCTIONS ======== + +// ----------------------------------------------------------------------------- +// RSupportedTokensArray::RSupportedTokensArray() +// ----------------------------------------------------------------------------- +// +RSupportedTokensArray::RSupportedTokensArray() + { + _LIT(KKeyStoreName, "device cert keystore"); + _LIT(KDeviceCertStoreName, "device certstore"); + _LIT(KTruSrvCertStoreName, "trust server certstore"); + const TDesC* array[] = {&KKeyStoreName, &KDeviceCertStoreName, &KTruSrvCertStoreName }; + Copy(array, ETotalTokensSupported); + } + + +// ----------------------------------------------------------------------------- +// RTokenTypeUIDLookup::RTokenTypeUIDLookup() +// ----------------------------------------------------------------------------- +// +RTokenTypeUIDLookup::RTokenTypeUIDLookup() : + TFixedArray(KDeviceTokenTypeUidValues, ETotalTokensSupported) + { + } + +//EOF +