20
20
#define IMPL_BLE_INSTANCE_BASE_H_
21
21
22
22
#include " ble/BLE.h"
23
- #include " ble/common/blecommon.h"
24
- #include " source/BLEInstanceBase.h"
25
23
26
- #include " ble/driver/CordioHCIDriver.h"
27
24
#include " ble/GattServer.h"
25
+ #include " ble/GattClient.h"
26
+ #include " ble/Gap.h"
27
+ #include " ble/SecurityManager.h"
28
+
29
+ #include " ble/common/blecommon.h"
30
+ #include " ble/driver/CordioHCIDriver.h"
31
+
32
+ #include " source/BLEInstanceBase.h"
28
33
#include " source/pal/PalAttClient.h"
29
34
#include " source/pal/PalGattClient.h"
30
- #include " ble/GattClient.h"
31
35
#include " source/pal/PalGap.h"
32
- #include " ble/Gap.h"
33
36
#include " source/pal/PalGenericAccessService.h"
34
- #include " ble/SecurityManager.h"
35
37
#include " source/pal/PalEventQueue.h"
36
- #include " drivers/LowPowerTimer.h"
37
38
#include " source/pal/PalSecurityManager.h"
38
39
39
40
#include " source/generic/GapImpl.h"
40
41
#include " source/generic/GattClientImpl.h"
41
- #include " source/GattServerImpl.h"
42
42
#include " source/generic/SecurityManagerImpl.h"
43
- #include " internal/PalEventQueueImpl.h"
43
+ #include " source/GattServerImpl.h"
44
+ #include " source/PalEventQueueImpl.h"
45
+
46
+ #include " drivers/LowPowerTimer.h"
44
47
45
48
namespace ble {
46
49
@@ -51,7 +54,7 @@ namespace impl {
51
54
/* *
52
55
* @see BLEInstanceBase
53
56
*/
54
- class BLEInstanceBase : public ble ::BLEInstanceBase {
57
+ class BLEInstanceBase final : public ble::BLEInstanceBase {
55
58
friend PalSigningMonitor;
56
59
57
60
/* *
@@ -75,36 +78,36 @@ class BLEInstanceBase : public ble::BLEInstanceBase {
75
78
/* *
76
79
* @see BLEInstanceBase::init
77
80
*/
78
- virtual ble_error_t init (
81
+ ble_error_t init (
79
82
FunctionPointerWithContext<::BLE::InitializationCompleteCallbackContext *> initCallback
80
- );
83
+ ) final ;
81
84
82
85
/* *
83
86
* @see BLEInstanceBase::hasInitialized
84
87
*/
85
- virtual bool hasInitialized () const ;
88
+ bool hasInitialized () const final ;
86
89
87
90
/* *
88
91
* @see BLEInstanceBase::shutdown
89
92
*/
90
- virtual ble_error_t shutdown ();
93
+ ble_error_t shutdown () final ;
91
94
92
95
/* *
93
96
* @see BLEInstanceBase::getVersion
94
97
*/
95
- virtual const char *getVersion ();
98
+ const char *getVersion () final ;
96
99
97
100
ble::impl::Gap &getGapImpl ();
98
101
99
102
/* *
100
103
* @see BLEInstanceBase::getGap
101
104
*/
102
- virtual ble::Gap &getGap ();
105
+ ble::Gap &getGap () final ;
103
106
104
107
/* *
105
108
* @see BLEInstanceBase::getGap
106
109
*/
107
- virtual const ble::Gap &getGap () const ;
110
+ const ble::Gap &getGap () const final ;
108
111
109
112
#if BLE_FEATURE_GATT_SERVER
110
113
@@ -113,12 +116,12 @@ class BLEInstanceBase : public ble::BLEInstanceBase {
113
116
/* *
114
117
* @see BLEInstanceBase::getGattServer
115
118
*/
116
- virtual ble::GattServer &getGattServer ();
119
+ ble::GattServer &getGattServer () final ;
117
120
118
121
/* *
119
122
* @see BLEInstanceBase::getGattServer
120
123
*/
121
- virtual const ble::GattServer &getGattServer () const ;
124
+ const ble::GattServer &getGattServer () const final ;
122
125
123
126
#endif // BLE_FEATURE_GATT_SERVER
124
127
@@ -129,7 +132,7 @@ class BLEInstanceBase : public ble::BLEInstanceBase {
129
132
/* *
130
133
* @see BLEInstanceBase::getGattClient
131
134
*/
132
- virtual ble::GattClient &getGattClient ();
135
+ ble::GattClient &getGattClient () final ;
133
136
134
137
/* *
135
138
* Get the PAL Gatt Client.
@@ -147,24 +150,24 @@ class BLEInstanceBase : public ble::BLEInstanceBase {
147
150
/* *
148
151
* @see BLEInstanceBase::getSecurityManager
149
152
*/
150
- virtual ble::SecurityManager &getSecurityManager ();
153
+ ble::SecurityManager &getSecurityManager () final ;
151
154
152
155
/* *
153
156
* @see BLEInstanceBase::getSecurityManager
154
157
*/
155
- virtual const ble::SecurityManager &getSecurityManager () const ;
158
+ const ble::SecurityManager &getSecurityManager () const final ;
156
159
157
160
#endif // BLE_FEATURE_SECURITY
158
161
159
162
/* *
160
163
* @see BLEInstanceBase::waitForEvent
161
164
*/
162
- virtual void waitForEvent ();
165
+ void waitForEvent ();
163
166
164
167
/* *
165
168
* @see BLEInstanceBase::processEvents
166
169
*/
167
- virtual void processEvents ();
170
+ void processEvents () final ;
168
171
169
172
private:
170
173
static void stack_handler (wsfEventMask_t event, wsfMsgHdr_t *msg);
0 commit comments