contentstorage/casrv/cawidgetscanner/src/widgetscannerutils.cpp
branchRCL_3
changeset 113 0efa10d348c0
equal deleted inserted replaced
111:053c6c7c14f3 113:0efa10d348c0
       
     1 /*
       
     2  * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "widgetscannerutils.h"
       
    20 #include "cainnerentry.h"
       
    21 #include "cadef.h"
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 //
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 void WidgetScannerUtils::CurrentMmcId( const RFs& aFs, TDes& aMmcId )
       
    28     {
       
    29     TInt mmcDrive;
       
    30     if ( DriveInfo::GetDefaultDrive( DriveInfo::EDefaultRemovableMassStorage,
       
    31             mmcDrive ) == KErrNone )
       
    32         {
       
    33         TVolumeInfo volumeInfo;
       
    34         if ( aFs.Volume( volumeInfo, mmcDrive ) == KErrNone )
       
    35             {
       
    36             aMmcId.Zero();
       
    37             aMmcId.AppendNum( volumeInfo.iUniqueID );
       
    38             }
       
    39         }
       
    40     }
       
    41 
       
    42 //  End of File