equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef __RBNEPCONTROL_H |
|
22 #define __RBNEPCONTROL_H |
|
23 |
|
24 #include <es_mbuf.h> |
|
25 #include "BnepTypes.h" |
|
26 |
|
27 class TSglQueLink; |
|
28 |
|
29 /** |
|
30 A BNEP Command. |
|
31 Used to encapsulate a BNEP control message of any type. |
|
32 */ |
|
33 NONSHARABLE_CLASS(RBnepControl) : public RMBufChain |
|
34 { |
|
35 public: |
|
36 typedef enum |
|
37 { |
|
38 KControlTypeOffset = 0, |
|
39 KControlResponseOffset = 1 |
|
40 } Constants; |
|
41 |
|
42 TBnepControlType ControlType (); |
|
43 |
|
44 public: |
|
45 TSglQueLink iLink; |
|
46 }; |
|
47 |
|
48 inline TBnepControlType RBnepControl::ControlType () |
|
49 { |
|
50 return static_cast<TBnepControlType>(First()->Get(0)); |
|
51 } |
|
52 |
|
53 |
|
54 #endif |