1.1 --- a/epoc32/include/eikdebug.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,100 +0,0 @@
1.4 -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -
1.20 -
1.21 -/**
1.22 - @file
1.23 - @publishedAll
1.24 - @deprecated
1.25 -*/
1.26 -
1.27 -#ifndef __EIKDEBUG_H__
1.28 -#define __EIKDEBUG_H__
1.29 -
1.30 -//#define UIKON_OOM_TESTING // enabling the testing requires also adding the FBSRV.LIB to eiksrvs and console mmp file.
1.31 -
1.32 -#if defined(UIKON_OOM_TESTING)
1.33 -#define __SHOW_FAIL_RATE(aFormatString, aFailRate) RDebug::Print(aFormatString,aFailRate)
1.34 -#else
1.35 -#define __SHOW_FAIL_RATE(aFormatString, aFailRate)
1.36 -#endif
1.37 -
1.38 -//#define _LOGGING // enabling RDebug::Print
1.39 -#ifdef _LOGGING
1.40 -#include <e32debug.h>
1.41 -
1.42 -#define DEBUGPRINT1(_p1) RDebug::Print(_p1)
1.43 -#define DEBUGPRINT2(_p1,_p2) RDebug::Print(_p1,_p2)
1.44 -#define DEBUGPRINT3(_p1,_p2,_p3) RDebug::Print(_p1,_p2,_p3)
1.45 -#define DEBUGPRINT4(_p1,_p2,_p3,_p4) RDebug::Print(_p1,_p2,_p3,_p4)
1.46 -#else
1.47 -#define DEBUGPRINT1(_p1)
1.48 -#define DEBUGPRINT2(_p1,_p2)
1.49 -#define DEBUGPRINT3(_p1,_p2,_p3)
1.50 -#define DEBUGPRINT4(_p1,_p2,_p3,_p4)
1.51 -#endif
1.52 -
1.53 -
1.54 -
1.55 -//
1.56 -// class CEikDebugPreferences
1.57 -//
1.58 -
1.59 -/**
1.60 -@internalComponent
1.61 -*/
1.62 -NONSHARABLE_CLASS(CEikDebugPreferences) : public CBase
1.63 - {
1.64 -public:
1.65 - enum TFlag
1.66 - {
1.67 - EFlagDebugKeysOn =0x00000001,
1.68 - EFlagOOMTestingOnAppStartUp =0x00000002,
1.69 - EFlagOOMTestingOnEiksrvStartUp =0x00000004,
1.70 - EFlagOOMTestingOnConsoleStartUp =0x00000008
1.71 - };
1.72 -public:
1.73 - IMPORT_C static CEikDebugPreferences* New();
1.74 - IMPORT_C static CEikDebugPreferences* NewL();
1.75 - IMPORT_C static CEikDebugPreferences* NewLC();
1.76 - IMPORT_C ~CEikDebugPreferences();
1.77 - IMPORT_C void StoreL(RFs& aFileServerSession);
1.78 - IMPORT_C TInt Restore(RFs& aFileServerSession); // can be used with or without a CTrapHandler being currently installed
1.79 - IMPORT_C void RestoreL(RFs& aFileServerSession);
1.80 - IMPORT_C void SetKeysOn(const TBool& aDebugKeysOn);
1.81 - IMPORT_C TBool KeysOn() const;
1.82 - IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
1.83 - IMPORT_C void InternalizeL(RReadStream& aStream);
1.84 - inline void SetFlags(TUint aFlags);
1.85 - inline TUint Flags() const;
1.86 -private:
1.87 - CEikDebugPreferences();
1.88 -private:
1.89 - TUint iFlags;
1.90 - TUint iSpare;
1.91 - };
1.92 -
1.93 -inline void CEikDebugPreferences::SetFlags(TUint aFlags)
1.94 - {
1.95 - iFlags=aFlags;
1.96 - }
1.97 -
1.98 -inline TUint CEikDebugPreferences::Flags() const
1.99 - {
1.100 - return iFlags;
1.101 - }
1.102 -
1.103 -#endif // __EIKDEBUG_H__