diff -r 000000000000 -r 29b1cd4cb562 bluetooth/btstack/linkmgr/linkqitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetooth/btstack/linkmgr/linkqitem.h Fri Jan 15 08:13:17 2010 +0200 @@ -0,0 +1,58 @@ +// Copyright (c) 2001-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: +// The LL-level frames that are suitable for Q-ing +// +// + +#ifndef LINKQITEM_H__ +#define LINKQITEM_H__ + +#include +#include +#include + +#include + +class TDataPlaneElementHandle; +class TSockAddr; + +NONSHARABLE_CLASS(CACLDataItem) : public CBase + { +friend class CAclDataQ; +public: + CACLDataItem(); + CHctlAclDataFrame*& Frame(); + static CACLDataItem* NewL(); + ~CACLDataItem(); + + inline void SetElementHandle(TSockAddr* aAddr); + inline TDataPlaneElementHandle* ElementHandle() const; +private: + TSglQueLink iLink; + CHctlAclDataFrame* iFrame; + + TDataPlaneElementHandle* iElementHandle; // Non-owned pointer. + }; + +inline void CACLDataItem::SetElementHandle(TSockAddr* aAddr) + { + iElementHandle = reinterpret_cast(aAddr); + } + +inline TDataPlaneElementHandle* CACLDataItem::ElementHandle() const + { + return iElementHandle; + } + +#endif