XDMEngine/inc/XdmStaticUtils.h
branchRCL_3
changeset 35 fbd2e7cec7ef
parent 0 c8caa15ef882
equal deleted inserted replaced
34:2669f8761a99 35:fbd2e7cec7ef
       
     1 /*
       
     2 * Copyright (c) 2007 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:   XDM Engine static utils
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XDMSTATICUTILS__
       
    22 #define __XDMSTATICUTILS__
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 const TInt KBackSlash           = 92;
       
    27 
       
    28 class RFs;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 class XdmStaticUtils
       
    32 
       
    33     {
       
    34     public:
       
    35         
       
    36         /**
       
    37         * Check whether a file already exists.
       
    38         *
       
    39         * @param RFs& An opened file session
       
    40         * @param TDesC& The file name to check
       
    41         * @return TBool Is the file already there
       
    42         */     
       
    43         IMPORT_C static TBool CheckFileExistsL( RFs& aFileSession, const TDesC& aFileName );
       
    44         
       
    45         /**
       
    46         * Generate a new file name unique in the context
       
    47         * of the folder in which it resides
       
    48         *
       
    49         * @param RFs& An opened file session
       
    50         * @param TDesC& The file name to check
       
    51         * @param TDesC& The extension in the filename
       
    52         * @return HBufC* The generated filename
       
    53         */     
       
    54         IMPORT_C static HBufC* GenerateFileNameL( RFs& aFileSession, const TDesC& aFileName,
       
    55                                                   const TDesC& aExtension );
       
    56         
       
    57         /**
       
    58         * Clean up a directory
       
    59         *
       
    60         * @param RFs& An opened file session
       
    61         * @param TDesC& The directory to clean up
       
    62         * @return void
       
    63         */                                           
       
    64         IMPORT_C static void CleanUpDirectoryL( RFs& aFileSession, const TDesC& aDirectory );
       
    65     
       
    66     };
       
    67 
       
    68 #endif      //__XDMCREDENTIALS__
       
    69             
       
    70 // End of File