landmarksui/engine/inc/LmkFileUtils.h
branchRCL_3
changeset 18 870918037e16
parent 0 522cd55cc3d7
equal deleted inserted replaced
17:1fc85118c3ae 18:870918037e16
       
     1 /*
       
     2 * Copyright (c) 2002 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:    LandmarksUi Content File -    Static utility class for file operations.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef LMKFILEUTILS_H
       
    25 #define LMKFILEUTILS_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include <e32base.h>
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Static utility class for file operations.
       
    34 */
       
    35 class LmkFileUtils
       
    36     {
       
    37     public: // New functions
       
    38 
       
    39         /**
       
    40         * Helper method for deleting a file.
       
    41         * Error KErrNotFound is omitted but in case of other errors
       
    42         * this method leaves.
       
    43         * @param aFile full name of the file which is deleted
       
    44         */
       
    45         IMPORT_C static void DeleteFileL( const TDesC& aFile );
       
    46         /**
       
    47         * This function tests whether the file name or path is valid
       
    48         * or not.
       
    49         * @param aFile file name/path
       
    50         * @return ETrue if the name/path is valid else EFalse
       
    51         */
       
    52         IMPORT_C static TBool IsValidPathL( TPtrC aFile );
       
    53     };
       
    54 
       
    55 #endif // LMKFILEUTILS_H
       
    56 
       
    57 // End of File