|
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 // PAN Ethernet MCPR & Flow |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_PANETHMCPR_H |
|
24 #define SYMBIAN_PANETHMCPR_H |
|
25 |
|
26 #include <comms-infras/agentmessages.h> |
|
27 #include <networking/ethmcpr.h> |
|
28 #include <networking/ethproto.h> |
|
29 #include "pancommon.h" |
|
30 #include "panprovisioninfo.h" |
|
31 |
|
32 class CPanEthMetaConnectionProviderFactory; |
|
33 class CPanAgtNotificationHandler; |
|
34 |
|
35 |
|
36 /** |
|
37 PAN override of the ethernet meta connection provider |
|
38 @internalTechnology |
|
39 */ |
|
40 NONSHARABLE_CLASS(CPanEthMetaConnectionProvider) : public CEthMetaConnectionProvider |
|
41 { |
|
42 friend class EthMCprStates::TSendProvision; |
|
43 |
|
44 public: |
|
45 typedef CPanEthMetaConnectionProviderFactory FactoryType; |
|
46 |
|
47 static CPanEthMetaConnectionProvider* NewL(ESock::CMetaConnectionProviderFactoryBase& aFactory, const ESock::TProviderInfo& aProviderInfo); |
|
48 |
|
49 ~CPanEthMetaConnectionProvider(); |
|
50 |
|
51 protected: |
|
52 CPanEthMetaConnectionProvider(ESock::CMetaConnectionProviderFactoryBase& aFactory, |
|
53 const ESock::TProviderInfo& aProviderInfo, |
|
54 const MeshMachine::TNodeActivityMap& aActivityMap); |
|
55 void ConstructL(); |
|
56 CPanAgtNotificationHandler* iAgentHandler; |
|
57 }; |
|
58 |
|
59 |
|
60 NONSHARABLE_CLASS(CPanAgtNotificationHandler) : public CAgentNotificationHandler |
|
61 { |
|
62 public: |
|
63 virtual TInt NotificationFromAgent(TAgentToFlowEventType aEvent, TAny* aInfo); |
|
64 }; |
|
65 |
|
66 |
|
67 NONSHARABLE_CLASS(CPanEtherFlow) : public CLANLinkCommon |
|
68 { |
|
69 public: |
|
70 static CPanEtherFlow* NewL(ESock::CSubConnectionFlowFactoryBase& aFactory, const Messages::TNodeId& aSubConnId, ESock::CProtocolIntfBase* aProtocolIntf); |
|
71 CPanEtherFlow(ESock::CSubConnectionFlowFactoryBase& aFactory, const Messages::TNodeId& aSubConnId, ESock::CProtocolIntfBase* aProtocolIntf); |
|
72 virtual ~CPanEtherFlow(); |
|
73 virtual ESock::MLowerDataSender* BindL(const TDesC8& aProtocol, ESock::MUpperDataReceiver* aReceiver, ESock::MUpperControl* aControl); |
|
74 |
|
75 |
|
76 inline const CPanProvisionInfo* GetPanProvisionInfo() |
|
77 { |
|
78 return static_cast<const CPanProvisionInfo*>(AccessPointConfig().FindExtension(CPanProvisionInfo::TypeId())); |
|
79 } |
|
80 }; |
|
81 |
|
82 |
|
83 NONSHARABLE_CLASS(CPanEthMCPRFactory) : public ESock::CMetaConnectionProviderFactoryBase |
|
84 { |
|
85 public: |
|
86 enum { iUid = 0x102835A2 }; |
|
87 static CPanEthMCPRFactory* NewL(TAny* aParentContainer); |
|
88 |
|
89 protected: |
|
90 CPanEthMCPRFactory(TUid aFactoryId, ESock::CMetaConnectionFactoryContainer& aParentContainer); |
|
91 virtual ESock::ACommsFactoryNodeId* DoCreateObjectL(ESock::TFactoryQueryBase& aQuery); |
|
92 }; |
|
93 |
|
94 |
|
95 NONSHARABLE_CLASS(CPanEthFlowFactory) : public ESock::CSubConnectionFlowFactoryBase |
|
96 { |
|
97 public: |
|
98 enum { iUid = 0x102835A3 }; |
|
99 static CPanEthFlowFactory* NewL(TAny* aConstructionParameters); |
|
100 virtual ESock::CSubConnectionFlowBase* DoCreateFlowL(ESock::CProtocolIntfBase* aProtocolIntf, ESock::TFactoryQueryBase& aQuery); |
|
101 |
|
102 protected: |
|
103 CPanEthFlowFactory(TUid aFactoryId, ESock::CSubConnectionFlowFactoryContainer& aParentContainer); |
|
104 }; |
|
105 |
|
106 |
|
107 #endif |
|
108 //SYMBIAN_PANETHMCPR_H |