|
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 SubConnection Provider class definition. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_IPPROTODEFTSCPR_H |
|
24 #define SYMBIAN_IPPROTODEFTSCPR_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/corecprstates.h> |
|
30 #include <comms-infras/netcfgextnotify.h> |
|
31 #include <comms-infras/nifconfigurationcontrol.h> |
|
32 #include <networking/pdpdef.h> |
|
33 #include "IPProtoSCPRFactory.h" |
|
34 #include <comms-infras/ss_datamonitoringprovider.h> |
|
35 #include <comms-infras/ss_log.h> |
|
36 #include <comms-infras/ss_nodemessages_legacy.h> |
|
37 |
|
38 #define KIPProtoDeftScprTag KESockSubConnectionTag |
|
39 |
|
40 namespace IPProtoDeftSCpr |
|
41 { |
|
42 class TStoreProvision; |
|
43 //class TAwaitingFlowUp; |
|
44 //class TAwaitingFlowDown; |
|
45 class TStartNetCfgExt; |
|
46 class TStopNetCfgExtOrNoTag; |
|
47 class TStopNetCfgExt; |
|
48 class TProcessIoctl; |
|
49 class TCancelOutstandingIoctls; |
|
50 class THandoffToNetCfgExt; |
|
51 class TNoTagOrTryNetCfgExtOrCancelIoctl; |
|
52 class TTryPdpOrTryNetCfgExtOrCancelIoctl; |
|
53 class TNoTagOrCancelIoctl; |
|
54 class TProcessAgentEvent; |
|
55 class TAwaitingIoctlProcessed; |
|
56 class TStopNetCfgExtDelete; |
|
57 class TNoTagOrProviderStoppedOrDaemonReleased; |
|
58 } |
|
59 |
|
60 class CIPProtoDeftSubConnectionProvider : public CCoreSubConnectionProvider, public ESock::ADataMonitoringProvider, public ESock::ALegacySubConnectionActiveApiExt, |
|
61 public ITFHIERARCHY_LINK_2(CIPProtoDeftSubConnectionProvider, CCoreSubConnectionProvider, ESock::ADataMonitoringProtocolReq, ESock::ALegacySubConnectionActiveApiExt) |
|
62 /** IPProto subconnection provider base class |
|
63 |
|
64 @internalTechnology |
|
65 @released Since 9.4 */ |
|
66 { |
|
67 friend class CIPProtoSubConnectionProviderFactory; |
|
68 friend class IPProtoDeftSCpr::TStoreProvision; |
|
69 //friend class IPProtoDeftSCpr::TAwaitingFlowUp; |
|
70 //friend class IPProtoDeftSCpr::TAwaitingFlowDown; |
|
71 friend class IPProtoDeftSCpr::TStartNetCfgExt; |
|
72 friend class IPProtoDeftSCpr::TStopNetCfgExtOrNoTag; |
|
73 friend class IPProtoDeftSCpr::TStopNetCfgExt; |
|
74 friend class IPProtoDeftSCpr::TProcessIoctl; |
|
75 friend class IPProtoDeftSCpr::TCancelOutstandingIoctls; |
|
76 friend class IPProtoDeftSCpr::THandoffToNetCfgExt; |
|
77 friend class IPProtoDeftSCpr::TNoTagOrTryNetCfgExtOrCancelIoctl; |
|
78 friend class IPProtoDeftSCpr::TNoTagOrCancelIoctl; |
|
79 friend class IPProtoDeftSCpr::TTryPdpOrTryNetCfgExtOrCancelIoctl; |
|
80 friend class IPProtoDeftSCpr::TProcessAgentEvent; // for iControl |
|
81 friend class IPProtoDeftSCpr::TAwaitingIoctlProcessed; |
|
82 friend class IPProtoDeftSCpr::TStopNetCfgExtDelete; |
|
83 friend class IPProtoDeftSCpr::TNoTagOrProviderStoppedOrDaemonReleased; |
|
84 |
|
85 |
|
86 public: |
|
87 typedef ITFHIERARCHY_LINK_2(CIPProtoDeftSubConnectionProvider, CCoreSubConnectionProvider, ADataMonitoringProtocolReq, ALegacySubConnectionActiveApiExt) TIfStaticFetcherNearestInHierarchy; |
|
88 |
|
89 typedef CIPProtoSubConnectionProviderFactory FactoryType; |
|
90 virtual ~CIPProtoDeftSubConnectionProvider(); |
|
91 |
|
92 void ReturnInterfacePtrL(ADataMonitoringProtocolReq*& aInterface); |
|
93 void ReturnInterfacePtrL(ALegacySubConnectionActiveApiExt*& aInterface); |
|
94 |
|
95 protected: |
|
96 CIPProtoDeftSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
97 void ConstructL(); |
|
98 static CIPProtoDeftSubConnectionProvider* NewL(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
99 void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage); |
|
100 |
|
101 protected: |
|
102 CNetCfgExtNotify* iNotify; |
|
103 CNifConfigurationControl* iControl; |
|
104 Messages::RNodeInterface iFlow; |
|
105 TBool iIoctlCancelled; |
|
106 }; |
|
107 |
|
108 #endif //SYMBIAN_IPPROTODEFTSCPR_H |