equal
deleted
inserted
replaced
|
1 // pipe.h |
|
2 // |
|
3 // Copyright (c) 2006 - 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 #ifndef __PIPE_H__ |
|
14 #define __PIPE_H__ |
|
15 |
|
16 #include <e32base.h> |
|
17 #include "endpoint.h" |
|
18 #include "readwrite.h" |
|
19 |
|
20 |
|
21 class CIoPipe : public CIoEndPoint |
|
22 { |
|
23 public: |
|
24 static CIoPipe* NewLC(); |
|
25 ~CIoPipe(); |
|
26 public: // From CIoObject. |
|
27 virtual TBool IsType(RIoHandle::TType aType) const; |
|
28 public: // From MIoReadEndPoint. |
|
29 virtual void IorepReadL(MIoReader& aReader); |
|
30 public: // From MIoWriteEndPoint. |
|
31 virtual void IowepWriteL(MIoWriter& aWriter); |
|
32 virtual void IowepWriteCancel(MIoWriter& aWriter); |
|
33 private: // From CIoEndPoint. |
|
34 virtual void HandleReaderDetached(MIoReader& aReader); |
|
35 virtual void ForegroundReaderChanged(); |
|
36 virtual void HandleWriterDetached(MIoWriter& aWriter); |
|
37 private: |
|
38 CIoPipe(); |
|
39 void DoCopy(); |
|
40 void CheckReady(); |
|
41 private: |
|
42 RPointerArray<MIoWriter> iPendingWriters; |
|
43 }; |
|
44 |
|
45 #endif // __PIPE_H__ |
|
46 |