|
1 // Copyright (c) 2006-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 "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 // IPProto Tier Manager |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_IPPROTO_TIER_MANAGER_H |
|
24 #define SYMBIAN_IPPROTO_TIER_MANAGER_H |
|
25 |
|
26 #include <comms-infras/coretiermanager.h> |
|
27 #include <comms-infras/coretiermanagerstates.h> |
|
28 |
|
29 class CIPProtoTierManager : public CCoreTierManager |
|
30 { |
|
31 public: |
|
32 static CIPProtoTierManager* NewL(ESock::CTierManagerFactoryBase& aFactory); |
|
33 ~CIPProtoTierManager(); |
|
34 virtual ESock::MProviderSelector* DoCreateProviderSelectorL(const Meta::SMetaData& aSelectionPreferences); |
|
35 |
|
36 protected: |
|
37 CIPProtoTierManager(ESock::CTierManagerFactoryBase& aFactory, const MeshMachine::TNodeActivityMap& aActivityMap); |
|
38 virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage); |
|
39 }; |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 namespace IpProtoTMStates |
|
46 { |
|
47 |
|
48 typedef MeshMachine::TNodeContext<CIPProtoTierManager,TMStates::TContext> TContext; |
|
49 |
|
50 //-========================================================= |
|
51 // |
|
52 //Transitions |
|
53 // |
|
54 //-========================================================= |
|
55 |
|
56 DECLARE_SMELEMENT_HEADER( TSelectProvider, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
57 virtual void DoL(); |
|
58 DECLARE_SMELEMENT_FOOTER( TSelectProvider ) |
|
59 |
|
60 DECLARE_SMELEMENT_HEADER( TSelectProviderConnPrefList, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
61 virtual void DoL(); |
|
62 DECLARE_SMELEMENT_FOOTER( TSelectProviderConnPrefList ) |
|
63 |
|
64 DECLARE_SMELEMENT_HEADER( TAbsorbQueryBundle, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
65 virtual void DoL(); |
|
66 DECLARE_SMELEMENT_FOOTER( TAbsorbQueryBundle ) |
|
67 |
|
68 |
|
69 DECLARE_AGGREGATED_TRANSITION2( |
|
70 TAbsorbQueryBundleAndReplyNotSupported, |
|
71 TAbsorbQueryBundle, |
|
72 MeshMachine::TRaiseError<KErrNotSupported> |
|
73 ) |
|
74 |
|
75 } //namespace IpProtoTMStates |
|
76 |
|
77 #endif //SYMBIAN_IPPROTO_TIER_MANAGER_H |
|
78 |