|
1 /* |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Class for parsing Neighbor Report IEs. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CORE_FRAME_NR_IE_H |
|
20 #define CORE_FRAME_NR_IE_H |
|
21 |
|
22 #include "core_frame_dot11_ie.h" |
|
23 #include "core_types.h" |
|
24 |
|
25 /** |
|
26 * Class for parsing NR Parameter Element IE. |
|
27 * |
|
28 * @since S60 v5.2 |
|
29 */ |
|
30 NONSHARABLE_CLASS( core_frame_nr_ie_c ) : public core_frame_dot11_ie_c |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Factory for creating a parser instance. |
|
37 * |
|
38 * @since S60 v5.2 |
|
39 * @param ie Pointer to the IE data. |
|
40 * @return A pointer to the created IE instance. |
|
41 */ |
|
42 static core_frame_nr_ie_c* instance( |
|
43 const core_frame_dot11_ie_c& ie ); |
|
44 |
|
45 /** |
|
46 * Factory for creating a Measurement Report IE |
|
47 * instance with given parameters. |
|
48 * |
|
49 * @since S60 v5.2 |
|
50 * @param |
|
51 */ |
|
52 static core_frame_nr_ie_c* instance( |
|
53 const core_ssid_s& ssid ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~core_frame_nr_ie_c(); |
|
59 |
|
60 /** |
|
61 * Return the BSS Id field. |
|
62 * |
|
63 * @since S60 v5.2 |
|
64 * @return The BSS Id field. |
|
65 */ |
|
66 core_mac_address_s bssid() const; |
|
67 |
|
68 /** |
|
69 * Return the BSS Id info field. |
|
70 * |
|
71 * @since S60 v5.2 |
|
72 * @return The BSS Id info field. |
|
73 */ |
|
74 u32_t bssid_info() const; |
|
75 |
|
76 /** |
|
77 * Return the regulatory class field. |
|
78 * |
|
79 * @since S60 v5.2 |
|
80 * @return The regulatory class field. |
|
81 */ |
|
82 u8_t regulatory_class() const; |
|
83 |
|
84 /** |
|
85 * Return the Channel Number field. |
|
86 * |
|
87 * @since S60 v5.2 |
|
88 * @return The Channel Number field. |
|
89 */ |
|
90 u8_t channel_number() const; |
|
91 |
|
92 /** |
|
93 * Return the phy type field. |
|
94 * |
|
95 * @since S60 v5.2 |
|
96 * @return The phy type field. |
|
97 */ |
|
98 u8_t phy_type() const; |
|
99 |
|
100 protected: |
|
101 |
|
102 /** |
|
103 * Constructor |
|
104 * |
|
105 * @param data_length Length of the IE data. |
|
106 * @param data Pointer to the IE data. |
|
107 * @param max_data_length Maximum length of the IE data. |
|
108 */ |
|
109 core_frame_nr_ie_c( |
|
110 u16_t data_length, |
|
111 const u8_t* data, |
|
112 u16_t max_data_length ); |
|
113 |
|
114 /** |
|
115 * Generate an IE header. |
|
116 * |
|
117 * @since S60 v5.2 |
|
118 * @param ssid Reference to ssid. |
|
119 */ |
|
120 void generate( |
|
121 const core_ssid_s& ssid ); |
|
122 |
|
123 }; |
|
124 |
|
125 #endif // CORE_FRAME_NR_IE_H |