os/graphics/printingservices/printerdriversupport/inc/PDRPORT.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1997-2009 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 #ifndef PDRPORT_H
    17 #define PDRPORT_H
    18 
    19 #include <e32std.h>
    20 #include <c32comm.h>
    21 #include <gdi.h>
    22 #include <s32file.h>
    23 
    24 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    25 #include <printerdriversupport/printerport.h>
    26 #endif
    27 
    28 /**
    29  @publishedAll
    30  @released 
    31  */
    32 class CFilePrinterPort : public CPrinterPort
    33 	{
    34 public:
    35 	IMPORT_C static CFilePrinterPort* NewL(const TDesC& aFileName);
    36 	IMPORT_C ~CFilePrinterPort();
    37 	void WriteRequest(const TDesC8& aBuf,TRequestStatus& aRequestStatus);
    38 	void Cancel();
    39 	inline const TDesC& FileName() { return iFileName; }
    40 private:
    41 	void ConstructL();
    42 	CFilePrinterPort(const TDesC& aFileName);
    43 private:
    44 	RFs iFs;
    45 	TFileName iFileName;
    46 	RFile iFile;
    47 	TBool iCancelled;
    48 	};
    49 
    50 #endif