vpnengine/pkiservice/src/pkiwrapper.cpp
branchRCL_3
changeset 49 5960d2d03390
parent 41 e06095241a65
equal deleted inserted replaced
46:29c8f9bc68e1 49:5960d2d03390
     1 /*
     1 /*
     2 * Copyright (c) 2006 - 2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006 - 2008 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   149 void CPKIWrapper::SetTrusted(TBool aValue)
   149 void CPKIWrapper::SetTrusted(TBool aValue)
   150 {
   150 {
   151     iTrusted = aValue;
   151     iTrusted = aValue;
   152 }
   152 }
   153 
   153 
   154 void CPKIWrapper::SetApplicationsL(const RArray<TUid>& aApplUids)
   154 void CPKIWrapper::SetApplications(const RArray<TUid>& aApplUids)
   155 {
   155 {
   156     iUidArray.Close();
   156     iUidArray.Close();
   157 	for(TInt i=0;i<aApplUids.Count();i++)
   157 	for(TInt i=0;i<aApplUids.Count();i++)
   158 		{
   158 		{
   159 		User::LeaveIfError(iUidArray.Append(aApplUids[i]));
   159 		iUidArray.Append(aApplUids[i]);
   160 		}
   160 		}
   161 }
   161 }
   162 
   162 
   163 
   163 
   164 /**---------------------------------------------------------
   164 /**---------------------------------------------------------
   263         {
   263         {
   264         TUid tempUid;
   264         TUid tempUid;
   265         for (TUint i = 0; i < iCount; i++)
   265         for (TUint i = 0; i < iCount; i++)
   266             {
   266             {
   267             list->Read(i * sizeof(TUid), (TAny*)&tempUid, sizeof(TUid));
   267             list->Read(i * sizeof(TUid), (TAny*)&tempUid, sizeof(TUid));
   268             iUidArray.AppendL(tempUid);
   268             iUidArray.Append(tempUid);
   269             }
   269             }
   270         }
   270         }
   271     CleanupStack::PopAndDestroy(1);     // list
   271     CleanupStack::PopAndDestroy(1);     // list
   272     }
   272     }
   273 
   273 
   590             break;
   590             break;
   591 
   591 
   592 		case PkiService::ESetApplicability:
   592 		case PkiService::ESetApplicability:
   593 			if (iCurrentStatus == KErrNone)
   593 			if (iCurrentStatus == KErrNone)
   594 				{
   594 				{
   595 				iMapper.GetMapDescriptorAtIndex(iIndex).SetMapApplicationsL(iUidArray); 
   595 				iMapper.GetMapDescriptorAtIndex(iIndex).SetMapApplications(iUidArray); 
   596 				}
   596 				}
   597 			break;
   597 			break;
   598 
   598 
   599         case PkiService::ETrusted:
   599         case PkiService::ETrusted:
   600             if (iCurrentStatus == KErrNone)
   600             if (iCurrentStatus == KErrNone)