|
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 // PPP SCpr |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_PPPSCPR_H |
|
24 #define SYMBIAN_PPPSCPR_H |
|
25 |
|
26 #include <comms-infras/agentscpr.h> |
|
27 #include <comms-infras/agentscprstates.h> |
|
28 #include <comms-infras/agentscpractivities.h> |
|
29 |
|
30 |
|
31 enum TPppSCprActivities |
|
32 { |
|
33 ECFPppLinkStatusChangeActivity = ECFAgentSCprCustomActivityBase |
|
34 }; |
|
35 |
|
36 |
|
37 namespace PppSCprStates |
|
38 { |
|
39 class TProcessPppLinkStatusChange; |
|
40 } |
|
41 |
|
42 |
|
43 /** |
|
44 @internalTechnology |
|
45 @released Since 9.4 |
|
46 |
|
47 PPP subconnection provider |
|
48 */ |
|
49 class CPppSubConnectionProvider : public CAgentSubConnectionProvider |
|
50 { |
|
51 friend class PppSCprStates::TProcessPppLinkStatusChange; |
|
52 |
|
53 public: |
|
54 static CPppSubConnectionProvider* NewL(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
55 |
|
56 private: |
|
57 CPppSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory, |
|
58 const MeshMachine::TNodeActivityMap& aActivityMap); |
|
59 }; |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 //-========================================================= |
|
66 // |
|
67 // States & Transitions |
|
68 // |
|
69 //-========================================================= |
|
70 |
|
71 namespace PppSCprStates |
|
72 { |
|
73 typedef MeshMachine::TNodeContext<CPppSubConnectionProvider, AgentSCprStates::TContext> TContext; |
|
74 |
|
75 DECLARE_SMELEMENT_HEADER( TAwaitingPppLinkStatusChange, MeshMachine::TState<TContext>, NetStateMachine::MState, PppSCprStates::TContext) |
|
76 virtual TBool Accept(); |
|
77 DECLARE_SMELEMENT_FOOTER( TAwaitingPppLinkStatusChange) |
|
78 |
|
79 |
|
80 DECLARE_SMELEMENT_HEADER( TProcessPppLinkStatusChange, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PppSCprStates::TContext) |
|
81 virtual void DoL(); |
|
82 DECLARE_SMELEMENT_FOOTER( TProcessPppLinkStatusChange) |
|
83 } |
|
84 |
|
85 #endif |
|
86 // SYMBIAN_PPPSCPR_H |