Update contrib.
1 // Copyright (c) 1996-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 the License "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.
14 // e32test\system\t_multin.h
25 virtual TPtrC Produce()=0;
31 virtual void Consume(const TDesC& aStr)=0;
32 virtual void Consume(const TDesC& aStr1,const TDesC& aStr2);
33 virtual void Consume(const TDesC& aStr1,const TDesC& aStr2,const TDesC& aStr3);
34 virtual void Consume(const TDesC& aStr1,const TDesC& aStr2,const TDesC& aStr3,const TDesC& aStr4);
37 class MPipe : public MProducer,public MConsumer
41 void Consume(const TDesC& aStr);
42 void Consume(const TDesC& aStr1,const TDesC& aStr2);
43 void Consume(const TDesC& aStr1,const TDesC& aStr2,const TDesC& aStr3);
44 void Consume(const TDesC& aStr1,const TDesC& aStr2,const TDesC& aStr3,const TDesC& aStr4);
50 enum TSpecies {EProducer,EConsumer,EPipe,EVirtual};
56 virtual TSpecies Species() const=0;
57 virtual MProducer* Producer();
58 virtual MConsumer* Consumer();
61 class TProducer : public TBase,public MProducer
64 TSpecies Species() const;
68 class TConsumer : public TBase,public MConsumer
71 TSpecies Species() const;
72 void Consume(const TDesC& aStr);
75 class TPipe : public TBase,public MPipe
78 TSpecies Species() const;
81 class TVirProducer : public virtual TBase,public MProducer
84 ~TVirProducer() {} // gcc workaround
85 TSpecies Species() const;
86 MProducer* Producer();
90 class TVirConsumer : public virtual TBase,public MConsumer
93 ~TVirConsumer() {} // gcc workaround
94 TSpecies Species() const;
95 MConsumer* Consumer();
96 void Consume(const TDesC& aStr);
99 class TVirPipe : public TVirProducer,public TVirConsumer
102 ~TVirPipe() {} // gcc workaround
103 TSpecies Species() const;
104 MProducer* Producer();
105 MConsumer* Consumer();
107 void Consume(const TDesC& aStr);
108 void Consume(const TDesC& aStr1,const TDesC& aStr2);
109 void Consume(const TDesC& aStr1,const TDesC& aStr2,const TDesC& aStr3);
110 void Consume(const TDesC& aStr1,const TDesC& aStr2,const TDesC& aStr3,const TDesC& aStr4);