user: kashif.sayed
added contentcontrolsrv/.cproject
added contentcontrolsrv/.project
added contentcontrolsrv/group/ABLD.BAT
added contentpublishingsrv/.cproject
added contentpublishingsrv/.project
added contentpublishingsrv/contentharvester/.cproject
added contentpublishingsrv/contentharvester/.project
added contentpublishingsrv/contentharvester/contentharvesterclient/group/ABLD.BAT
added contentpublishingsrv/contentharvester/contentharvesterserver/group/ABLD.BAT
added contentpublishingsrv/contentharvester/contentharvesterswiplugin/group/ABLD.BAT
added contentpublishingsrv/contentharvester/factorysettingsplugin/group/ABLD.BAT
added contentpublishingsrv/contentharvester/group/ABLD.BAT
added contentpublishingsrv/group/ABLD.BAT
added dependencies/S3libs/cpswrapper.lib
added dependencies/S3libs/hscontentcontrol.lib
added dependencies/S3libs/hspswrapper.lib
added group/ABLD.BAT
added homescreenpluginsrv/group/ABLD.BAT
added homescreensrv_plat/group/ABLD.BAT
added idlefw/group/ABLD.BAT
added inc/ccontentmap.h
added inc/cpdebug.h
added inc/cpglobals.h
added inc/cpliwmap.h
added inc/cpluginvalidator.h
added inc/cpserverdef.h
added inc/cpublisherregistrymap.h
added inc/mcssathandler.h
added menucontentsrv/group/ABLD.BAT
added xcfw/group/ABLD.BAT
changed dependencies/S3libs/bld.inf
/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Utils methods.
*
*/
#ifndef FACTSETCHUTILS_H
#define FACTSETCHUTILS_H
// INCLUDES
#include <e32base.h>
// CLASS DECLARATION
class CGECODefaultObject;
class MXCFWNode;
/**
* Common utils methods.
*
* @lib aspafactorysettings.lib
* @since Series 60 3.1
*/
class FactSetCHUtils
{
public:
// New functions
/**
* Extracts a TUint from the given string.
* @since Series 60 3.1
* @param aStr A string defining the uint.
* @return TUint Object.
*/
static TUint Str2Uint( const TDesC& aStr );
/**
* Extracts a TInt from the given string.
* @since Series 60 3.1
* @param aStr A string defining the int.
* @return TInt Object.
*/
static TInt Str2Int( const TDesC& aStr );
/**
* Extracts a TBool from the given string.
* @since Series 60 3.1
* @param aStr A string defining the bool.
* @return TBool Object.
*/
static TBool Str2Bool( const TDesC& aStr );
/**
* Extracts a TUid from the given string.
* @since Series 60 3.1
* @param aStr A string defining the uid.
* @return Uid Object.
*/
static TUid Str2Uid( const TDesC& aStr );
/**
* Creates HBufC8* from the given string.
* @since Series 60 3.1
* @param aStr A string to convert to HBufC8*.
* @return HBufC8* Pointer.
*/
static HBufC8* Str2Str8LC( const TDesC& aStr );
/**
* Extracts a TReal from the given string.
* @since Series 60 3.1
* @param aStr A string defining the real value.
* @return Real Object.
*/
static TReal Str2Real( const TDesC& aStr );
/**
* Extracts a TInt from the given string.
* @since Series 60 3.1
* @param aStr A string defining the real value.
* @return Real Object.
*/
static TInt32 Str2Int32( const TDesC& aStr );
private:
/**
* Extracts an integer from the given hex string.
* @since Series 60 3.1
* @param aStr A hex string containg an integer number.
* @return Integer value of the number.
*/
static TUint StrHex2Uint( const TDesC& aStr );
/**
* Extracts an integer from the given string.
* @since Series 60 3.1
* @param aStr A string containg an integer number.
* @return Integer value of the number.
*/
static TUint StrDec2Uint( const TDesC& aStr );
/**
* Handles bad argument passed into utility function
* @since Series 60 3.1
* @param aCategory describes bad argument
* @param aArgument bad argument
* @param aReason bad argument code
*/
static void BadArgument( const TDesC& aCategory, const TDesC& aArgument,
TInt aReason );
static void BadArgumentL( const TDesC& aCategory, const TDesC& aArgument,
TInt aReason );
/**
* Handles bad argument passed into utility function
* @since Series 60 3.1
* @param aCategory describes bad argument
* @param aArgument bad argument
* @param aReason bad argument code
*/
static void BadArgument( const TDesC& aCategory, TInt aArgument,
TInt aReason );
/**
* Handles bad argument passed into utility function
* @since Series 60 3.1
* @param aCategory describes bad argument
* @param aReason bad argument code
*/
static void BadArgument( const TDesC& aCategory, TInt aReason );
};
#endif // FACTSETCHUTILS_H
// End of File