os/graphics/printingservices/printerdriversupport/tps/T_PDR.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2006-2010 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 //
    15 
    16 /**
    17  @file
    18  @test
    19  @internalComponent Internal Symbian test code
    20 */
    21 
    22 
    23 #if !defined(__T_PDR_H__)
    24 #define __T_PDR_H__
    25 
    26 #include <e32test.h>
    27 #include <pdrport.h>
    28 #include <c32comm.h>
    29 #include <metafile.h>
    30 #include <banddev.h>
    31 
    32 #include <test/testexecutestepbase.h>
    33 #include "TGraphicsHarness.h"
    34 #include "prnsetupfacade.h"
    35 
    36 class CPdrTestPrint : public CActive
    37 	{
    38 public:
    39 	CPdrTestPrint(): CActive(EPriorityLow) {}
    40 	TRequestStatus& Status();	
    41 	void DoCancel() {}
    42 	TRequestStatus&  Queue(); 
    43 	void RunL(); 
    44 	};
    45 
    46 	
    47 class CTPdr : public CTGraphicsBase
    48 	{
    49 public:
    50 	CTPdr(CTestStep* aStep);
    51 	~CTPdr();
    52 protected:
    53 //from 	CTGraphicsStep
    54 	virtual void RunTestCaseL(TInt aCurTestCase);
    55 	virtual void ConstructL();
    56 private:
    57 	void testPrint(CPrinterDevice* aDevice);
    58 	void testPdrStore();
    59 	void bandTest(TBandingDirection aBandingDirection, TPtrC aName);
    60 	void testPdrBandRect();
    61 private:
    62 	CPdrTestPrint* iStopper;
    63 	TInt iModelIndex;
    64 	TInt iNumModels;
    65 	};
    66 
    67 
    68 
    69 class CTPdrStep : public CTGraphicsStep
    70 	{
    71 public:
    72 	CTPdrStep();
    73 protected:	
    74 	//from CTGraphicsStep
    75 	virtual CTGraphicsBase* CreateTestL();
    76 	virtual void TestSetupL();
    77 	virtual void TestClose();
    78 	};
    79 	
    80 
    81 _LIT(KTPdrStep,"TPdr");
    82 
    83 #endif