|
1 // Copyright (c) 2010 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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Sub Connection Provider |
|
15 // (control plane) |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef MBUFGOBBLERSUBCONNPROVIDER_H |
|
24 #define MBUFGOBBLERSUBCONNPROVIDER_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32std.h> |
|
28 #include <e32base.h> |
|
29 #include <comms-infras/corescpr.h> |
|
30 #include "mbufgobblertestflags.h" |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CMbufGobblerSubconnProvider |
|
36 * |
|
37 */ |
|
38 class ESock::CSubConnectionProviderFactoryBase; |
|
39 class CMbufGobblerSubconnProvider : public CCoreSubConnectionProvider |
|
40 { |
|
41 public: |
|
42 // Constructors and destructor |
|
43 static CMbufGobblerSubconnProvider* NewL(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CMbufGobblerSubconnProvider(); |
|
49 |
|
50 |
|
51 protected: //from CCoreSubConnectionProvider |
|
52 void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage); |
|
53 |
|
54 private: |
|
55 |
|
56 /** |
|
57 * Constructor for performing 1st stage construction |
|
58 */ |
|
59 CMbufGobblerSubconnProvider(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
60 |
|
61 /** |
|
62 * EPOC default constructor for performing 2nd stage construction |
|
63 */ |
|
64 void ConstructL(); |
|
65 private: |
|
66 TInt iClientCount; //holds count of clients that node is joined with |
|
67 MBUFGOBBLER_TEST_DATA |
|
68 }; |
|
69 |
|
70 #endif // MBUFGOBBLERSUBCONNPROVIDER_H |