1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
28 #include <networking/packetlogger.h> |
28 #include <networking/packetlogger.h> |
29 #include <in_sock.h> |
29 #include <in_sock.h> |
30 #include "ProtocolIfBase.h" |
30 #include "ProtocolIfBase.h" |
31 #include "BcaIoController.h" |
31 #include "BcaIoController.h" |
32 #include "MControllerObserver.h" |
32 #include "MControllerObserver.h" |
33 #include "bttlog.h" |
|
34 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
33 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
35 #include <comms-infras/nifprvar_internal.h> |
34 #include <comms-infras/nifprvar_internal.h> |
36 #endif |
35 #endif |
37 |
36 |
38 class CBttLogger; |
|
39 class CPacketLogger; |
37 class CPacketLogger; |
40 |
38 |
41 class CRawIPNifMain : public CNifIfLink, public MControllerObserver |
39 class CRawIPNifMain : public CNifIfLink, public MControllerObserver |
42 { |
40 { |
43 public: |
41 public: |
44 CRawIPNifMain(CNifIfFactory& aFactory, MNifIfNotify* aNotify, CBttLogger* aTheLogger); |
42 CRawIPNifMain(CNifIfFactory& aFactory, MNifIfNotify* aNotify); |
45 ~CRawIPNifMain(); |
43 ~CRawIPNifMain(); |
46 void ConstructL(const TDesC& aName); |
44 void ConstructL(const TDesC& aName); |
47 // Used to be :Pure virtuals inherited from MContextSmObserver |
45 // Used to be :Pure virtuals inherited from MContextSmObserver |
48 CBcaIoController* GetBcaController(); |
46 CBcaIoController* GetBcaController(); |
49 void UpdateContextState(RPacketContext::TContextStatus aState, |
47 void UpdateContextState(RPacketContext::TContextStatus aState, |
93 TInt SendPacket(RMBufChain& aPdu, TAny* /*aSource=0*/, |
91 TInt SendPacket(RMBufChain& aPdu, TAny* /*aSource=0*/, |
94 TUint16 /*aType=KIp4FrameType*/); |
92 TUint16 /*aType=KIp4FrameType*/); |
95 |
93 |
96 public: // Context status retrieval. |
94 public: // Context status retrieval. |
97 inline RPacketContext::TContextStatus GetContextStatus(); |
95 inline RPacketContext::TContextStatus GetContextStatus(); |
98 |
96 |
99 private:// Unowned |
97 private:// Unowned |
100 /** networking packet logger for debugging packets */ |
|
101 __PACKETLOG_DECLARATION_MEMBER; |
|
102 CBttLogger* iTheLogger; |
|
103 |
|
104 // Upstack bound protocol reference |
98 // Upstack bound protocol reference |
105 CProtocolBase* iProtocol; |
99 CProtocolBase* iProtocol; |
106 |
100 |
107 // The protocol to use (IPv4).Note: This is not owned by this class. |
101 // The protocol to use (IPv4).Note: This is not owned by this class. |
108 CProtocolIfBase* iProtocolIf; |
102 CProtocolIfBase* iProtocolIf; |