javacommons/fileutils/src.linux/linuxdriveutilities.cpp
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 19 71c436fe3ce0
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
     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:  DriveUtilities - Linux specific
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "logger.h"
       
    20 
       
    21 #include "driveutilities.h"
       
    22 
       
    23 namespace java
       
    24 {
       
    25 namespace fileutils
       
    26 {
       
    27 OS_EXPORT void DriveUtilities::getAllDrives(driveInfos& aDriveInfos)
       
    28 {
       
    29     JELOG2(EJavaFile);
       
    30 
       
    31     driveInfo di;
       
    32     di.iRootPath              = L"/tmp/";
       
    33     di.iIsPresent             = true;
       
    34     di.iIsRemovable           = false;
       
    35     di.iIsLocal               = true;
       
    36     di.iIsReadOnly            = false;
       
    37     di.iId                    = 0x12345;
       
    38     di.iIsExternallyMountable = false;
       
    39 
       
    40     aDriveInfos.push_back(di);
       
    41 }
       
    42 } // end of namespace fileutils
       
    43 } // end of namespace java