telephonyprotocols/rawipnif/version1/inc/IPTagHeader.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/telephonyprotocols/rawipnif/version1/inc/IPTagHeader.h	Tue Feb 02 01:41:59 2010 +0200
@@ -0,0 +1,52 @@
+// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Defines the Class that adds and extracts specific header tags.
+// 
+//
+
+/**
+ @file
+*/
+
+#ifdef RAWIP_HEADER_APPENDED_TO_PACKETS
+
+#ifndef IPTAGHEADER_H__
+#define IPTAGHEADER_H__
+
+#include "bttlog.h"
+#include "Constants.h"
+#include <nifmbuf.h>
+
+class CBttLogger;
+
+class CIPTagHeader : public CBase
+	{
+public:
+	CIPTagHeader(CBttLogger* aTheLogger);
+	~CIPTagHeader();
+	void SetType(TUint16 aType);
+	void AddHeader(TDes8& aDes);
+	TUint16 RemoveHeader(RMBufChain& aPdu);
+
+private: // Unowned data.
+	CBttLogger* iTheLogger;
+
+	//CLASSNAMEDECL(CIPTagHeader);
+
+	TBuf8<KIPTagHeaderLength> iHeaderByte; // Owned
+	};
+
+#endif // IPTAGHEADER_H__
+
+#endif // RAWIP_HEADER_APPENDED_TO_PACKETS