equal
deleted
inserted
replaced
|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The LL-level frames that are suitable for Q-ing |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef LINKQITEM_H__ |
|
19 #define LINKQITEM_H__ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 #include <bttypes.h> |
|
24 |
|
25 #include <bluetooth/hci/hciframe.h> |
|
26 |
|
27 class TDataPlaneElementHandle; |
|
28 class TSockAddr; |
|
29 |
|
30 NONSHARABLE_CLASS(CACLDataItem) : public CBase |
|
31 { |
|
32 friend class CAclDataQ; |
|
33 public: |
|
34 CACLDataItem(); |
|
35 CHctlAclDataFrame*& Frame(); |
|
36 static CACLDataItem* NewL(); |
|
37 ~CACLDataItem(); |
|
38 |
|
39 inline void SetElementHandle(TSockAddr* aAddr); |
|
40 inline TDataPlaneElementHandle* ElementHandle() const; |
|
41 private: |
|
42 TSglQueLink iLink; |
|
43 CHctlAclDataFrame* iFrame; |
|
44 |
|
45 TDataPlaneElementHandle* iElementHandle; // Non-owned pointer. |
|
46 }; |
|
47 |
|
48 inline void CACLDataItem::SetElementHandle(TSockAddr* aAddr) |
|
49 { |
|
50 iElementHandle = reinterpret_cast<TDataPlaneElementHandle*>(aAddr); |
|
51 } |
|
52 |
|
53 inline TDataPlaneElementHandle* CACLDataItem::ElementHandle() const |
|
54 { |
|
55 return iElementHandle; |
|
56 } |
|
57 |
|
58 #endif |