installationservices/swi/source/sishelper/sishelper.cpp
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 1997-2010 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 the License "Eclipse Public License v1.0"
     5 * under the terms of the License "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".
   509 	}
   509 	}
   510 
   510 
   511 void CSisHelperSession::FillDrivesAndSpacesL(RArray<TChar>& aDriveLetters, 
   511 void CSisHelperSession::FillDrivesAndSpacesL(RArray<TChar>& aDriveLetters, 
   512 					                        RArray<TInt64>& aDriveSpaces)
   512 					                        RArray<TInt64>& aDriveSpaces)
   513 	{
   513 	{
       
   514 	CleanupClosePushL(aDriveLetters);
       
   515 	CleanupClosePushL(aDriveSpaces);
   514 	// This is the LFSS free space threshold
   516 	// This is the LFSS free space threshold
   515 	TInt freeSpaceAdjustment = 1024 * 128;    // Bytes	
   517 	TInt freeSpaceAdjustment = 1024 * 128;    // Bytes	
   516 
   518 
   517     // get information about drives
   519     // get information about drives
   518     TDriveList driveList;
   520     TDriveList driveList;
   564 		User::LeaveIfError(fs.DriveToChar(driveNumber, aDrive));
   566 		User::LeaveIfError(fs.DriveToChar(driveNumber, aDrive));
   565 		User::LeaveIfError(aDriveLetters.Append(TChar(aDrive)));
   567 		User::LeaveIfError(aDriveLetters.Append(TChar(aDrive)));
   566         User::LeaveIfError(aDriveSpaces.Append(volSpace));
   568         User::LeaveIfError(aDriveSpaces.Append(volSpace));
   567         }
   569         }
   568     CleanupStack::PopAndDestroy(&fs);
   570     CleanupStack::PopAndDestroy(&fs);
       
   571     CleanupStack::Pop(2, &aDriveLetters);
   569 	}
   572 	}
   570 
   573 
   571 
   574 
   572 void CSisHelperSession::CreateSisStubL(const RMessage2& aMessage)
   575 void CSisHelperSession::CreateSisStubL(const RMessage2& aMessage)
   573 	{
   576 	{