bluetoothcommsprofiles/btpan/pannapiphook/inc/pannapiphook.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2007-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 //
       
    15 
       
    16 #ifndef PANNAPIPHOOK_H
       
    17 #define PANNAPIPHOOK_H
       
    18 
       
    19 #include <posthook.h>
       
    20 
       
    21 static const TUint KProtocolPanNapIpHook = 1001;
       
    22 
       
    23 //
       
    24 // CPanNapIpHook
       
    25 //
       
    26 NONSHARABLE_CLASS(CPanNapIpHook) : public CProtocolPosthook 
       
    27 	{
       
    28 public:
       
    29 	static CPanNapIpHook* NewL();
       
    30 	~CPanNapIpHook();
       
    31 
       
    32 	TInt ApplyL(RMBufHookPacket &aPacket, RMBufRecvInfo &aInfo);
       
    33     void NetworkAttachedL();
       
    34 
       
    35 	void Identify(TServerProtocolDesc* aProtocolDesc) const;
       
    36 	static void Describe(TServerProtocolDesc& aEntry);
       
    37 
       
    38 private:
       
    39 	CPanNapIpHook() {}
       
    40 
       
    41 private:
       
    42 	MInterfaceManager* iManager;
       
    43 	};
       
    44 
       
    45 //
       
    46 // CPanNapIpHookFamily
       
    47 //
       
    48 NONSHARABLE_CLASS(CPanNapIpHookFamily) : public CProtocolFamilyBase
       
    49 	{
       
    50 public:
       
    51 	CPanNapIpHookFamily();
       
    52 	~CPanNapIpHookFamily();
       
    53 	TInt Install();
       
    54 	TInt Remove();
       
    55 	TUint ProtocolList(TServerProtocolDesc *& aProtocolList);
       
    56 	CProtocolBase* NewProtocolL(TUint /*aSockType*/, TUint aProtocol);
       
    57 	};
       
    58 
       
    59 #endif // PANNAPIPHOOK_H