telephonyprotocols/rawipnif/inc/IPTagHeader.h
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-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".
    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"
       
    28 #include "Constants.h"
    27 #include "Constants.h"
    29 #include <nifmbuf.h>
    28 #include <nifmbuf.h>
    30 
    29 
    31 class CBttLogger;
       
    32 
    30 
    33 class CIPTagHeader : public CBase
    31 class CIPTagHeader : public CBase
    34 	{
    32 	{
    35 public:
    33 public:
    36 	CIPTagHeader(CBttLogger* aTheLogger);
    34 	CIPTagHeader();
    37 	~CIPTagHeader();
    35 	~CIPTagHeader();
    38 	void SetType(TUint16 aType);	
    36 	void SetType(TUint16 aType);	
    39 	void AddHeader(TDes8& aDes);
    37 	void AddHeader(TDes8& aDes);
    40 	TUint16 RemoveHeader(RMBufChain& aPdu);
    38 	TUint16 RemoveHeader(RMBufChain& aPdu);
    41 
    39 
    42 private: // Unowned data.
    40 private: // Unowned data.
    43 	CBttLogger* iTheLogger;
       
    44 
    41 
    45 	//CLASSNAMEDECL(CIPTagHeader);
    42 	//CLASSNAMEDECL(CIPTagHeader);
    46 
    43 
    47 	TBuf8<KIPTagHeaderLength> iHeaderByte; // Owned
    44 	TBuf8<KIPTagHeaderLength> iHeaderByte; // Owned
    48 	};
    45 	};