1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/fbs/fontandbitmapserver/tfbs/TCLEAN.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,68 @@
1.4 +// Copyright (c) 1996-2010 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 "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.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 +#ifndef __TCLEAN_H__
1.20 +#define __TCLEAN_H__
1.21 +
1.22 +#include <fbs.h>
1.23 +#include "test/TGraphicsHarness.h"
1.24 +
1.25 +enum TTestType
1.26 + {
1.27 + EFont1,
1.28 + EFont2,
1.29 + EBitmap1,
1.30 + EPile1,
1.31 + ESession1,
1.32 + ESession2,
1.33 + ETypefaceStore1,
1.34 + EBadMessage
1.35 + };
1.36 +
1.37 +class CTClean : public CTGraphicsBase
1.38 + {
1.39 +public:
1.40 + CTClean(CTestStep* aStep);
1.41 + ~CTClean();
1.42 + void DeleteScanLineBuffer();
1.43 +protected:
1.44 +//from CTGraphicsStep
1.45 + virtual void RunTestCaseL(TInt aCurTestCase);
1.46 + void ConstructL();
1.47 +private:
1.48 + void LaunchThread(TTestType aType);
1.49 + void DeadThread();
1.50 +private:
1.51 + RFbsSession* iFbs;
1.52 + CFbsTypefaceStore* iStore;
1.53 + CFbsBitmap *iBitmap;
1.54 + CTrapCleanup* iTc;
1.55 + TBool iShutdownFbs;
1.56 + };
1.57 +
1.58 +class CTCleanStep : public CTGraphicsStep
1.59 + {
1.60 +public:
1.61 + CTCleanStep();
1.62 +protected:
1.63 + //from CTGraphicsStep
1.64 + virtual CTGraphicsBase* CreateTestL();
1.65 + };
1.66 +
1.67 +_LIT(KTCleanStep,"TClean");
1.68 +
1.69 +
1.70 +
1.71 +#endif