1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/windowing/windowserver/test/tauto/TDERIVED.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,139 @@
1.4 +// Copyright (c) 1996-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 "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 +/**
1.20 + @file
1.21 + @test
1.22 + @internalComponent - Internal Symbian test code
1.23 +*/
1.24 +
1.25 +#ifndef __TDERIVED_H__
1.26 +#define __TDERIVED_H__
1.27 +
1.28 +#include <e32std.h>
1.29 +#include <w32std.h>
1.30 +#include "../tlib/testbase.h"
1.31 +#include "AUTO.H"
1.32 +#include "TGraphicsHarness.h"
1.33 +
1.34 +class CDerivedWindowGc : public CWindowGc
1.35 + {
1.36 +public:
1.37 + CDerivedWindowGc(CWsScreenDevice *aDevice);
1.38 + ~CDerivedWindowGc();
1.39 + void DrawLine(const TPoint &aPoint1,const TPoint &aPoint2);
1.40 + };
1.41 +
1.42 +class RDerivedSession : public RWsSession
1.43 + {
1.44 +public:
1.45 + TInt ResourceCount();
1.46 + void EnableAutoFlush();
1.47 + };
1.48 +
1.49 +class RDerivedBlankWindow : public RBlankWindow
1.50 + {
1.51 +public:
1.52 + RDerivedBlankWindow();
1.53 + RDerivedBlankWindow(RWsSession &aWs);
1.54 + void SetColor(TRgb aColor);
1.55 + void SetColorGray();
1.56 + };
1.57 +
1.58 +class RDerivedWindow : public RWindow
1.59 + {
1.60 +public:
1.61 + RDerivedWindow();
1.62 + RDerivedWindow(RWsSession &aWs);
1.63 + void SetBackgroundColor(TRgb aColor);
1.64 + void SetBackgroundColorGray();
1.65 + };
1.66 +
1.67 +class RDerivedBackedUpWindow : public RBackedUpWindow
1.68 + {
1.69 +public:
1.70 + RDerivedBackedUpWindow();
1.71 + RDerivedBackedUpWindow(RWsSession &aWs);
1.72 + TInt BitmapHandle();
1.73 + };
1.74 +
1.75 +class RDerivedWindowGroup : public RWindowGroup
1.76 + {
1.77 +public:
1.78 + RDerivedWindowGroup();
1.79 + RDerivedWindowGroup(RWsSession &aWs);
1.80 + TName Name() const;
1.81 + };
1.82 +
1.83 +class CDerivedScreenDevice : public CWsScreenDevice
1.84 + {
1.85 +public:
1.86 + CDerivedScreenDevice(RWsSession &aWs);
1.87 + CDerivedScreenDevice();
1.88 + TSize SizeInPixels() const;
1.89 + };
1.90 +
1.91 +class RDerivedSprite : public RWsSprite
1.92 + {
1.93 +public:
1.94 + RDerivedSprite();
1.95 + RDerivedSprite(RWsSession &aWs);
1.96 + };
1.97 +
1.98 +class RDerivedPointerCursor : public RWsPointerCursor
1.99 + {
1.100 +public:
1.101 + RDerivedPointerCursor();
1.102 + RDerivedPointerCursor(RWsSession &aWs);
1.103 + };
1.104 +
1.105 +class CTDerived : public CTWsGraphicsBase
1.106 + {
1.107 +public:
1.108 + CTDerived(CTestStep* aStep);
1.109 + void ConstructL();
1.110 + void DerivedWindowGcL();
1.111 + void DerivedSession();
1.112 + void DerivedWindows();
1.113 + void DerivedScreenDeviceL();
1.114 + void DerivedSprite();
1.115 + ~CTDerived();
1.116 +protected:
1.117 +//from CTGraphicsStep
1.118 + virtual void RunTestCaseL(TInt aCurTestCase);
1.119 +private:
1.120 + TSize iWinSize;
1.121 + RDerivedSession iDSession;
1.122 + RDerivedWindow iDRedraw;
1.123 + RDerivedBlankWindow iDBlank;
1.124 + RDerivedBackedUpWindow iDBackedUp;
1.125 + RDerivedWindowGroup iDGroup;
1.126 + RDerivedSprite iDSprite;
1.127 + RDerivedPointerCursor iDPCursor;
1.128 + };
1.129 +
1.130 +class CTDerivedStep : public CTGraphicsStep
1.131 + {
1.132 +public:
1.133 + CTDerivedStep();
1.134 +protected:
1.135 + //from CTGraphicsStep
1.136 + virtual CTGraphicsBase* CreateTestL();
1.137 + };
1.138 +
1.139 +_LIT(KTDerivedStep,"TDerived");
1.140 +
1.141 +
1.142 +#endif