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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
23 class TOutputHandshake
26 IMPORT_C TOutputHandshake();
27 IMPORT_C void InternalizeL(RReadStream& aStream);
28 IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
40 class TSerialPrinterPortConfig
43 IMPORT_C TSerialPrinterPortConfig();
44 IMPORT_C void InternalizeL(RReadStream& aStream);
45 IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
52 TOutputHandshake iHandshake;
59 class CCommPrinterPort : public CPrinterPort
62 IMPORT_C static CCommPrinterPort* NewL(const TDesC& aCsyName, const TDesC& aPortName, const TSerialPrinterPortConfig& aConfig, const TFifo aFifo = EFifoEnable);
63 IMPORT_C ~CCommPrinterPort();
64 IMPORT_C void WriteRequest(const TDesC8& aBuf, TRequestStatus& aRequestStatus);
65 IMPORT_C void Cancel();
67 IMPORT_C void ConstructL(const TDesC& aCsyName, const TDesC& aPortName, const TSerialPrinterPortConfig& aConfig, const TFifo aFifo = EFifoEnable);
68 IMPORT_C CCommPrinterPort();
78 class CSerialPrinterPort : public CCommPrinterPort
81 IMPORT_C static CSerialPrinterPort* NewL(const TDesC& aPortName, const TSerialPrinterPortConfig& aConfig);
82 IMPORT_C ~CSerialPrinterPort();
83 IMPORT_C TSerialPrinterPortConfig Config(); // returns the current port config
85 void ConstructL(const TDesC& aPortName);
86 CSerialPrinterPort(const TSerialPrinterPortConfig& aConfig);
88 TSerialPrinterPortConfig iConfig;
95 class CParallelPrinterPort : public CCommPrinterPort
98 IMPORT_C static CParallelPrinterPort* NewL(const TDesC& aPortName);
99 IMPORT_C ~CParallelPrinterPort();
101 void ConstructL(const TDesC& aPortName);
102 CParallelPrinterPort();
106 * @internalTechnology
107 * Internal to Symbian
109 class CIrdaPrinterPort : public CCommPrinterPort
112 IMPORT_C static CIrdaPrinterPort* NewL();
113 IMPORT_C ~CIrdaPrinterPort();
120 * @internalTechnology
121 * Internal to Symbian
123 class CEpocConnectPort : public CCommPrinterPort
126 IMPORT_C static CEpocConnectPort* NewL();
127 IMPORT_C ~CEpocConnectPort();
133 #endif // PRINTERPORT_H