1 // Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2002-2009 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" |
33 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
34 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
34 #include <comms-infras/nifprvar_internal.h> |
35 #include <comms-infras/nifprvar_internal.h> |
35 #endif |
36 #endif |
36 |
37 |
|
38 class CBttLogger; |
37 class CPacketLogger; |
39 class CPacketLogger; |
38 |
40 |
39 class CRawIPNifMain : public CNifIfLink, public MControllerObserver |
41 class CRawIPNifMain : public CNifIfLink, public MControllerObserver |
40 { |
42 { |
41 public: |
43 public: |
42 CRawIPNifMain(CNifIfFactory& aFactory, MNifIfNotify* aNotify); |
44 CRawIPNifMain(CNifIfFactory& aFactory, MNifIfNotify* aNotify, CBttLogger* aTheLogger); |
43 ~CRawIPNifMain(); |
45 ~CRawIPNifMain(); |
44 void ConstructL(const TDesC& aName); |
46 void ConstructL(const TDesC& aName); |
45 // Used to be :Pure virtuals inherited from MContextSmObserver |
47 // Used to be :Pure virtuals inherited from MContextSmObserver |
46 CBcaIoController* GetBcaController(); |
48 CBcaIoController* GetBcaController(); |
47 void UpdateContextState(RPacketContext::TContextStatus aState, |
49 void UpdateContextState(RPacketContext::TContextStatus aState, |
91 TInt SendPacket(RMBufChain& aPdu, TAny* /*aSource=0*/, |
93 TInt SendPacket(RMBufChain& aPdu, TAny* /*aSource=0*/, |
92 TUint16 /*aType=KIp4FrameType*/); |
94 TUint16 /*aType=KIp4FrameType*/); |
93 |
95 |
94 public: // Context status retrieval. |
96 public: // Context status retrieval. |
95 inline RPacketContext::TContextStatus GetContextStatus(); |
97 inline RPacketContext::TContextStatus GetContextStatus(); |
|
98 |
|
99 private:// Unowned |
|
100 /** networking packet logger for debugging packets */ |
|
101 __PACKETLOG_DECLARATION_MEMBER; |
|
102 CBttLogger* iTheLogger; |
96 |
103 |
97 private:// Unowned |
|
98 // Upstack bound protocol reference |
104 // Upstack bound protocol reference |
99 CProtocolBase* iProtocol; |
105 CProtocolBase* iProtocol; |
100 |
106 |
101 // The protocol to use (IPv4).Note: This is not owned by this class. |
107 // The protocol to use (IPv4).Note: This is not owned by this class. |
102 CProtocolIfBase* iProtocolIf; |
108 CProtocolIfBase* iProtocolIf; |