persistentstorage/dbms/SPConv/cn_util.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // TSPConvUtil class
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __CN_UTIL_H__
       
    19 #define __CN_UTIL_H__
       
    20 
       
    21 #include <e32std.h>
       
    22 
       
    23 //Forward declarations
       
    24 class CCommandLineArguments;
       
    25 struct TCmdLinePrm;
       
    26 class RFs;
       
    27 
       
    28 /**
       
    29 TSPConvUtil is a utility class with a set of static methods, which do things, like:
       
    30 parsing command line arguments, printing messages, file existence checking, constructing
       
    31 binary file name, extracting the UID from a binary file name.
       
    32 @internalComponent
       
    33 */
       
    34 class TSPConvUtil
       
    35 	{
       
    36 public:
       
    37 	static void ParseL(const CCommandLineArguments& aCmdLineParser, TCmdLinePrm& aCmdLinePrm);
       
    38 	static TBool FileExists(RFs& aFs, const TDesC& aFile);
       
    39 	static void ConstructBinFileNameL(TDes& aFile);
       
    40 	static TUid UidFromFileNameL(const TDesC& aFile);
       
    41 	static void Print(const TDesC& aText);
       
    42 	static void Print(const TDesC& aFormat, TInt aNumber);
       
    43 	static void Print(const TDesC& aFormat, const TDesC& aText);
       
    44 	static void Print(const TDesC& aFormat, const TDesC& aText1, const TDesC& aText2);
       
    45 private:
       
    46 	static TBool iPromptOnError;
       
    47 	};
       
    48 
       
    49 #endif//__CN_UTIL_H__