telephonyprotocols/rawipnif/rawipnif2/inc/IPTagHeader.h
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-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".
    22 #ifdef RAWIP_HEADER_APPENDED_TO_PACKETS
    22 #ifdef RAWIP_HEADER_APPENDED_TO_PACKETS
    23 
    23 
    24 #ifndef IPTAGHEADER_H__
    24 #ifndef IPTAGHEADER_H__
    25 #define IPTAGHEADER_H__
    25 #define IPTAGHEADER_H__
    26 
    26 
       
    27 #include "bttlog.h"
    27 #include "Constants.h"
    28 #include "Constants.h"
    28 #include <comms-infras/commsbufchain.h>
    29 #include <comms-infras/commsbufchain.h>
    29 
    30 
       
    31 class CBttLogger;
    30 
    32 
    31 class CIPTagHeader : public CBase
    33 class CIPTagHeader : public CBase
    32 	{
    34 	{
    33 public:
    35 public:
    34 	CIPTagHeader();
    36 	CIPTagHeader(CBttLogger* aTheLogger);
    35 	~CIPTagHeader();
    37 	~CIPTagHeader();
    36 	void SetType(TUint16 aType);	
    38 	void SetType(TUint16 aType);	
    37 	void AddHeader(RCommsBufChain& aPdu);
    39 	void AddHeader(RCommsBufChain& aPdu);
    38 	TUint16 RemoveHeader(RCommsBufChain& aPdu);
    40 	TUint16 RemoveHeader(RCommsBufChain& aPdu);
    39 
    41 
    40 private: //Unowned data
    42 private: // Unowned data.
       
    43 	CBttLogger* iTheLogger;
       
    44 
    41 
    45 
    42 	TBuf8<KIPTagHeaderLength> iHeaderByte; // Owned
    46 	TBuf8<KIPTagHeaderLength> iHeaderByte; // Owned
    43 	};
    47 	};
    44 
    48 
    45 #endif // IPTAGHEADER_H__
    49 #endif // IPTAGHEADER_H__