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.
sl@0
     1
// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
/**
sl@0
    17
 @file
sl@0
    18
 @test
sl@0
    19
 @internalComponent Internal Symbian test code
sl@0
    20
*/
sl@0
    21
sl@0
    22
sl@0
    23
#if !defined(__T_PDR_H__)
sl@0
    24
#define __T_PDR_H__
sl@0
    25
sl@0
    26
#include <e32test.h>
sl@0
    27
#include <pdrport.h>
sl@0
    28
#include <c32comm.h>
sl@0
    29
#include <metafile.h>
sl@0
    30
#include <banddev.h>
sl@0
    31
sl@0
    32
#include <test/testexecutestepbase.h>
sl@0
    33
#include "TGraphicsHarness.h"
sl@0
    34
#include "prnsetupfacade.h"
sl@0
    35
sl@0
    36
class CPdrTestPrint : public CActive
sl@0
    37
	{
sl@0
    38
public:
sl@0
    39
	CPdrTestPrint(): CActive(EPriorityLow) {}
sl@0
    40
	TRequestStatus& Status();	
sl@0
    41
	void DoCancel() {}
sl@0
    42
	TRequestStatus&  Queue(); 
sl@0
    43
	void RunL(); 
sl@0
    44
	};
sl@0
    45
sl@0
    46
	
sl@0
    47
class CTPdr : public CTGraphicsBase
sl@0
    48
	{
sl@0
    49
public:
sl@0
    50
	CTPdr(CTestStep* aStep);
sl@0
    51
	~CTPdr();
sl@0
    52
protected:
sl@0
    53
//from 	CTGraphicsStep
sl@0
    54
	virtual void RunTestCaseL(TInt aCurTestCase);
sl@0
    55
	virtual void ConstructL();
sl@0
    56
private:
sl@0
    57
	void testPrint(CPrinterDevice* aDevice);
sl@0
    58
	void testPdrStore();
sl@0
    59
	void bandTest(TBandingDirection aBandingDirection, TPtrC aName);
sl@0
    60
	void testPdrBandRect();
sl@0
    61
private:
sl@0
    62
	CPdrTestPrint* iStopper;
sl@0
    63
	TInt iModelIndex;
sl@0
    64
	TInt iNumModels;
sl@0
    65
	};
sl@0
    66
sl@0
    67
sl@0
    68
sl@0
    69
class CTPdrStep : public CTGraphicsStep
sl@0
    70
	{
sl@0
    71
public:
sl@0
    72
	CTPdrStep();
sl@0
    73
protected:	
sl@0
    74
	//from CTGraphicsStep
sl@0
    75
	virtual CTGraphicsBase* CreateTestL();
sl@0
    76
	virtual void TestSetupL();
sl@0
    77
	virtual void TestClose();
sl@0
    78
	};
sl@0
    79
	
sl@0
    80
sl@0
    81
_LIT(KTPdrStep,"TPdr");
sl@0
    82
sl@0
    83
#endif