|
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 // IP Default SubConnection Provider class definition. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_IPDEFTSCPR_H |
|
24 #define SYMBIAN_IPDEFTSCPR_H |
|
25 |
|
26 #include <comms-infras/ss_subconnprov.h> |
|
27 #include <comms-infras/corescpr.h> |
|
28 #include <comms-infras/corescprstates.h> |
|
29 #include <comms-infras/ss_nodeinterfaces.h> |
|
30 #include <comms-infras/ss_corepractivities.h> |
|
31 #include "ipdeftbasescpr.h" |
|
32 |
|
33 NONSHARABLE_CLASS(CIpDefaultSubConnectionProvider) : public CIpDefaultBaseSubConnectionProvider |
|
34 /** Default QoS IP subconnection provider |
|
35 |
|
36 @internalTechnology |
|
37 @released Since 9.4 */ |
|
38 { |
|
39 friend class CIpSubConnectionProviderFactory; |
|
40 public: |
|
41 typedef CIpDefaultSubConnectionProviderFactory FactoryType; |
|
42 //TBool ImsFlag(); |
|
43 |
|
44 protected: |
|
45 CIpDefaultSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
46 static CIpDefaultSubConnectionProvider* NewL(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
47 |
|
48 virtual ~CIpDefaultSubConnectionProvider(); |
|
49 virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage); |
|
50 }; |
|
51 |
|
52 NONSHARABLE_CLASS(CCommsIPBinderActivity) : public PRActivities::CCommsBinderActivity |
|
53 /** Specialisation of CCommsBinderActivity to inlcude an extra param |
|
54 |
|
55 @internalTechnology |
|
56 @released Since 9.5 */ |
|
57 |
|
58 { |
|
59 public: |
|
60 typedef PRStates::TContext TContext; |
|
61 |
|
62 DECLARE_SMELEMENT_HEADER( TFetchClientUids, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
63 virtual void DoL(); |
|
64 DECLARE_SMELEMENT_FOOTER( TFetchClientUids) |
|
65 |
|
66 DECLARE_SMELEMENT_HEADER( TUpdateClientUids, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
67 virtual void DoL(); |
|
68 DECLARE_SMELEMENT_FOOTER( TUpdateClientUids) |
|
69 |
|
70 DECLARE_AGGREGATED_TRANSITION2( |
|
71 TProcessDataClientCreationAndUpdateClientUids, |
|
72 CCommsBinderActivity::TProcessDataClientCreation, |
|
73 CCommsIPBinderActivity::TUpdateClientUids |
|
74 ) |
|
75 |
|
76 static MeshMachine::CNodeActivityBase* NewL( const MeshMachine::TNodeActivity& aActivitySig, MeshMachine::AMMNodeBase& aNode ); |
|
77 |
|
78 protected: |
|
79 CCommsIPBinderActivity(const MeshMachine::TNodeActivity& aActivitySig, MeshMachine::AMMNodeBase& aNode, TUint aNextActivityCount); |
|
80 |
|
81 inline TUid GetUid(){ return iAppSid; } |
|
82 inline void SetUid(TUid aValue) { iAppSid = aValue; } |
|
83 |
|
84 private: |
|
85 TUid iAppSid; |
|
86 }; |
|
87 |
|
88 //-========================================================= |
|
89 // |
|
90 // States |
|
91 // |
|
92 //-========================================================= |
|
93 namespace IPDeftSCprStates |
|
94 { |
|
95 typedef MeshMachine::TNodeContext<CIpDefaultSubConnectionProvider, SCprStates::TContext> TContext; |
|
96 |
|
97 DECLARE_SMELEMENT_HEADER( TPolicyChecking, MeshMachine::TStateTransition<IPBaseSCprStates::TContext>, NetStateMachine::MStateTransition, IPBaseSCprStates::TContext ) |
|
98 virtual void DoL(); |
|
99 DECLARE_SMELEMENT_FOOTER( TPolicyChecking ) |
|
100 } |
|
101 |
|
102 #endif //SYMBIAN_IPDEFTSCPR_H |