1.1 --- a/epoc32/include/pdrport.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/pdrport.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,9 +1,9 @@
1.4 // Copyright (c) 1997-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 // which accompanies this distribution, and is available
1.10 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.12 //
1.13 // Initial Contributors:
1.14 // Nokia Corporation - initial contribution.
1.15 @@ -21,6 +21,9 @@
1.16 #include <gdi.h>
1.17 #include <s32file.h>
1.18
1.19 +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
1.20 +#include <printerdriversupport/printerport.h>
1.21 +#endif
1.22
1.23 /**
1.24 @publishedAll
1.25 @@ -44,118 +47,4 @@
1.26 TBool iCancelled;
1.27 };
1.28
1.29 -/**
1.30 - * @internalTechnology
1.31 - * Internal to Symbian
1.32 - */
1.33 -class TOutputHandshake
1.34 - {
1.35 -public:
1.36 - IMPORT_C TOutputHandshake();
1.37 - IMPORT_C void InternalizeL(RReadStream& aStream);
1.38 - IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
1.39 -public:
1.40 - TBool iXonXoff;
1.41 - TBool iCts;
1.42 - TBool iDsr;
1.43 - TBool iDcd;
1.44 - };
1.45 -
1.46 -/**
1.47 - * @internalTechnology
1.48 - * Internal to Symbian
1.49 - */
1.50 -class TSerialPrinterPortConfig
1.51 - {
1.52 -public:
1.53 - IMPORT_C TSerialPrinterPortConfig();
1.54 - IMPORT_C void InternalizeL(RReadStream& aStream);
1.55 - IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
1.56 -public:
1.57 - TBps iRate;
1.58 - TDataBits iDataBits;
1.59 - TStopBits iStopBits;
1.60 - TParity iParity;
1.61 - TBool iIgnoreParity;
1.62 - TOutputHandshake iHandshake;
1.63 - };
1.64 -
1.65 -/**
1.66 - * @internalTechnology
1.67 - * Internal to Symbian
1.68 - */
1.69 -class CCommPrinterPort : public CPrinterPort
1.70 - {
1.71 -public:
1.72 - IMPORT_C static CCommPrinterPort* NewL(const TDesC& aCsyName, const TDesC& aPortName, const TSerialPrinterPortConfig& aConfig, const TFifo aFifo = EFifoEnable);
1.73 - IMPORT_C ~CCommPrinterPort();
1.74 - IMPORT_C void WriteRequest(const TDesC8& aBuf, TRequestStatus& aRequestStatus);
1.75 - IMPORT_C void Cancel();
1.76 -protected:
1.77 - IMPORT_C void ConstructL(const TDesC& aCsyName, const TDesC& aPortName, const TSerialPrinterPortConfig& aConfig, const TFifo aFifo = EFifoEnable);
1.78 - IMPORT_C CCommPrinterPort();
1.79 -protected:
1.80 - RCommServ iCommServ;
1.81 - RComm iComm;
1.82 - };
1.83 -
1.84 -/**
1.85 - * @internalTechnology
1.86 - * Internal to Symbian
1.87 - */
1.88 -class CSerialPrinterPort : public CCommPrinterPort
1.89 - {
1.90 -public:
1.91 - IMPORT_C static CSerialPrinterPort* NewL(const TDesC& aPortName, const TSerialPrinterPortConfig& aConfig);
1.92 - IMPORT_C ~CSerialPrinterPort();
1.93 - IMPORT_C TSerialPrinterPortConfig Config(); // returns the current port config
1.94 -private:
1.95 - void ConstructL(const TDesC& aPortName);
1.96 - CSerialPrinterPort(const TSerialPrinterPortConfig& aConfig);
1.97 -private:
1.98 - TSerialPrinterPortConfig iConfig;
1.99 - };
1.100 -
1.101 -/**
1.102 - * @internalTechnology
1.103 - * Internal to Symbian
1.104 - */
1.105 -class CParallelPrinterPort : public CCommPrinterPort
1.106 - {
1.107 -public:
1.108 - IMPORT_C static CParallelPrinterPort* NewL(const TDesC& aPortName);
1.109 - IMPORT_C ~CParallelPrinterPort();
1.110 -private:
1.111 - void ConstructL(const TDesC& aPortName);
1.112 - CParallelPrinterPort();
1.113 - };
1.114 -
1.115 -/**
1.116 - * @internalTechnology
1.117 - * Internal to Symbian
1.118 - */
1.119 -class CIrdaPrinterPort : public CCommPrinterPort
1.120 - {
1.121 -public:
1.122 - IMPORT_C static CIrdaPrinterPort* NewL();
1.123 - IMPORT_C ~CIrdaPrinterPort();
1.124 -private:
1.125 - void ConstructL();
1.126 - CIrdaPrinterPort();
1.127 - };
1.128 -
1.129 -/**
1.130 - * @internalTechnology
1.131 - * Internal to Symbian
1.132 - */
1.133 -class CEpocConnectPort : public CCommPrinterPort
1.134 - {
1.135 -public:
1.136 - IMPORT_C static CEpocConnectPort* NewL();
1.137 - IMPORT_C ~CEpocConnectPort();
1.138 -private:
1.139 - void ConstructL();
1.140 - CEpocConnectPort();
1.141 - };
1.142 -
1.143 #endif