analyzetool/storageserver/server/inc/atdriveinfo.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 19 da2cedce4920
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Declaration of the class TATDriveInfo.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ATDRIVEINFO_H
       
    21 #define ATDRIVEINFO_H
       
    22 
       
    23 #include <f32file.h>
       
    24 
       
    25 /**
       
    26 *  Check what drives exists and creates file full path.
       
    27 */
       
    28 class TATDriveInfo
       
    29     {    
       
    30     public: // Constructors
       
    31         
       
    32         /**
       
    33         * C++ default constructor.
       
    34         */
       
    35         TATDriveInfo();
       
    36 
       
    37     public: // New functions
       
    38 
       
    39         /**
       
    40         * Create the file full path.
       
    41         * @param aPath Full path.
       
    42         * @param aFileName Filename.
       
    43         * @param aFs A handle to a file server.
       
    44         * @return KErrNone or KErrAlreadyExists, if successful; 
       
    45         *   Otherwise one of the other system wide error codes.
       
    46         */
       
    47         static TInt CreatePath( TDes& aPath, const TDesC& aFileName, RFs& aFs );   
       
    48     
       
    49     private: // New functions
       
    50     
       
    51         /**
       
    52         * Get the available drive character.
       
    53         * @param aDrive The drive letter.
       
    54         * @param aDriveNumber The drive number.
       
    55         * @param aFs A handle to a file server.
       
    56         * @param aDriveType Drive type.
       
    57         * @return KErrNone, if successful; otherwise KErrNotFound
       
    58         */
       
    59         static TInt GetDrive( TChar& aDrive, TInt& aDriveNumber, 
       
    60                 RFs& aFs, const TUint aDriveType );  
       
    61         
       
    62     };
       
    63 
       
    64 #endif // ATDRIVEINFO_H
       
    65 
       
    66 // End of File
       
    67