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