equal
deleted
inserted
replaced
|
1 // wsp_subsession.h |
|
2 // |
|
3 // Copyright (c) 2002 - 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 __WSP_SUBSESSION_H__ |
|
14 #define __WSP_SUBSESSION_H__ |
|
15 |
|
16 #include <e32std.h> |
|
17 #include <e32base.h> |
|
18 #include "wsp_active.h" |
|
19 #include "wsp_session.h" |
|
20 |
|
21 |
|
22 class TWin32Request; |
|
23 class CWin32Scheduler; |
|
24 |
|
25 |
|
26 class RWin32SubSession |
|
27 { |
|
28 protected: |
|
29 void Close(); |
|
30 TInt CreateSubSession(RWin32Session& aSession, TInt aOppCode); |
|
31 TInt CreateSubSession(RWin32Session& aSession, TInt aOppCode, const TDesC8& aReadBuf); |
|
32 TInt MakeRequest(TWin32Message& aMessage) const; |
|
33 protected: |
|
34 mutable TWin32Message iWin32Message; |
|
35 mutable RWin32Session* iSession; |
|
36 TInt iHandle; |
|
37 }; |
|
38 |
|
39 |
|
40 class CWin32SubSession : public CWin32ActiveObject |
|
41 { |
|
42 public: |
|
43 virtual void ServiceL(TWin32Message& aMessage) = 0; |
|
44 protected: |
|
45 CWin32SubSession(CWin32Scheduler& aScheduler); |
|
46 void Complete(TWin32Message*& aMessage, TInt aReason) const; |
|
47 }; |
|
48 |
|
49 |
|
50 #endif // __WSP_SUBSESSION_H__ |