installationservices/swi/source/sisregistry/server_legacy/sisregistrycache.cpp
branchRCL_3
changeset 23 cd189dac02f7
parent 21 5bddc28da627
child 24 5cc91383ab1e
equal deleted inserted replaced
21:5bddc28da627 23:cd189dac02f7
   192 		aPackages.AppendL(package);
   192 		aPackages.AppendL(package);
   193 		CleanupStack::Pop(package);
   193 		CleanupStack::Pop(package);
   194 		}
   194 		}
   195 	CleanupStack::Pop(&aPackages);
   195 	CleanupStack::Pop(&aPackages);
   196 	}
   196 	}
       
   197 
       
   198 const RPointerArray<CSisRegistryToken>& CSisRegistryCache::TokenList() const
       
   199     {
       
   200     return iTokens;
       
   201     }
   197 	
   202 	
   198 RFs& CSisRegistryCache::RFsHandle()
   203 RFs& CSisRegistryCache::RFsHandle()
   199 	{ 
   204 	{ 
   200 	return iFs;
   205 	return iFs;
   201 	}
   206 	}
   439 			{
   444 			{
   440 			DEBUG_PRINTF(_L8("Sis Registry Server - Registry file does not match entry directory. Corrupt."));
   445 			DEBUG_PRINTF(_L8("Sis Registry Server - Registry file does not match entry directory. Corrupt."));
   441 			User::Leave(KErrCorrupt);	
   446 			User::Leave(KErrCorrupt);	
   442 			}
   447 			}
   443 			
   448 			
   444 		iTokens.AppendL(token);
   449 		iTokens.Append(token);
   445 		CleanupStack::Pop(token);
   450 		CleanupStack::Pop(token);
   446 		CleanupStack::PopAndDestroy(&fileStream);
   451 		CleanupStack::PopAndDestroy(&fileStream);
   447 				
   452 				
   448 		}
   453 		}
   449 
   454 
  1410 										 RArray<TInt>& aDriveList)
  1415 										 RArray<TInt>& aDriveList)
  1411 	{
  1416 	{
  1412 	CleanupClosePushL(aDriveList);
  1417 	CleanupClosePushL(aDriveList);
  1413 	aDriveList.Reset();
  1418 	aDriveList.Reset();
  1414 	// a copy of the controller is always kept on drive C
  1419 	// a copy of the controller is always kept on drive C
  1415 	aDriveList.AppendL(iSystemDrive);
  1420 	aDriveList.Append(iSystemDrive);
  1416 	
  1421 	
  1417 	// only controllers will be written to removable media and 
  1422 	// only controllers will be written to removable media and 
  1418 	// we have now to check for those 
  1423 	// we have now to check for those 
  1419 	TUint installationDrives  = aObject.Drives();
  1424 	TUint installationDrives  = aObject.Drives();
  1420 	TUint fixedDrives = FixedDrives();
  1425 	TUint fixedDrives = FixedDrives();