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 // Contributors: |
|
9 // |
|
10 // Description: |
|
11 // Tier Manager |
|
12 // (management plane) |
|
13 // |
|
14 // |
|
15 // This is a 3-plane comms layer implementation example, which has been customised to be a test layer which gobbles and releases ESOCK MBUFs. |
|
16 // The MBuf gobbling functionality can be disabled by undefining the macro SYMBIAN_COMMSFW_MBUF_GOBBLER which is specified in mbufgobblerproviders.mmp. |
|
17 // When SYMBIAN_COMMSFW_MBUF_GOBBLER is undefined, the source code specified by mbufgobblerproviders.mmp becomes a pass through layer i.e. it passes the data |
|
18 // through to the layer above or below without altering it. This makes it useful as a starting point for implementing your own layers / providers; |
|
19 // useful documentation on how to customise your own passthrough layer can be found in ..\docs\MbufGobblerLayer.doc |
|
20 // |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalComponent |
|
25 */ |
|
26 |
|
27 #ifndef MBUFGOBBLERTIERMANAGER_H |
|
28 #define MBUFGOBBLERTIERMANAGER_H |
|
29 |
|
30 // INCLUDES |
|
31 #include <e32std.h> |
|
32 #include <e32base.h> |
|
33 #include <comms-infras/coretiermanager.h> |
|
34 #include "mbufgobblertestflags.h" |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * CMbufGobblerTierManager |
|
40 * |
|
41 */ |
|
42 class CMbufGobblerTierManager : public CCoreTierManager |
|
43 { |
|
44 public: |
|
45 static CMbufGobblerTierManager* NewL(ESock::CTierManagerFactoryBase& aFactory); |
|
46 ~CMbufGobblerTierManager(); |
|
47 virtual ESock::MProviderSelector* DoCreateProviderSelectorL(const Meta::SMetaData& aSelectionPreferences); |
|
48 |
|
49 protected: //from Messages::ANode |
|
50 virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage); |
|
51 private: |
|
52 CMbufGobblerTierManager(ESock::CTierManagerFactoryBase& aFactory); |
|
53 void ConstructL(); |
|
54 private: |
|
55 TInt iClientCount; //holds count of clients that node is joined with |
|
56 MBUFGOBBLER_TEST_DATA |
|
57 }; |
|
58 |
|
59 #endif // MBUFGOBBLERTIERMANAGER_H |
|