--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bluetoothcommsprofiles/btpan/bnep/RBnepControl.h Fri Jan 15 08:13:17 2010 +0200
@@ -0,0 +1,54 @@
+// 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:
+//
+
+/**
+ @file
+ @internalComponent
+*/
+
+#ifndef __RBNEPCONTROL_H
+#define __RBNEPCONTROL_H
+
+#include <es_mbuf.h>
+#include "BnepTypes.h"
+
+class TSglQueLink;
+
+/**
+ A BNEP Command.
+ Used to encapsulate a BNEP control message of any type.
+*/
+NONSHARABLE_CLASS(RBnepControl) : public RMBufChain
+ {
+public:
+ typedef enum
+ {
+ KControlTypeOffset = 0,
+ KControlResponseOffset = 1
+ } Constants;
+
+ TBnepControlType ControlType ();
+
+public:
+ TSglQueLink iLink;
+ };
+
+inline TBnepControlType RBnepControl::ControlType ()
+ {
+ return static_cast<TBnepControlType>(First()->Get(0));
+ }
+
+
+#endif