xdmprotocols/XcapProtocol/XcapUtils/inc/XcapStaticUtils.h
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     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:   XcapStaticUtils
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XCAPSTATICUTILS__
       
    22 #define __XCAPSTATICUTILS__
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 class RFs;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class XcapStaticUtils
       
    30 
       
    31     {
       
    32     public:
       
    33         
       
    34         /**
       
    35         * Check whether a file already exists.
       
    36         *
       
    37         * @param TDesC& The file name to check
       
    38         * @return TBool Is the file already there
       
    39         */     
       
    40         IMPORT_C static TBool CheckFileExistsL( RFs& aFileSession, const TDesC& aFileName );
       
    41         
       
    42         /**
       
    43         * Generate a new file name unique in the context
       
    44         * of the folder in which it resides
       
    45         *
       
    46         * @param TDesC& The file name to check
       
    47         * @return TBool Is the file already there
       
    48         */     
       
    49         IMPORT_C static HBufC* GenerateFileNameLC( RFs& aFileSession, const TDesC& aFileName,
       
    50                                                    const TDesC& aExtension );
       
    51     
       
    52     };
       
    53 
       
    54 #endif
       
    55 
       
    56 // End of File