Diff to HTML by rtfpessoa

Files changed (6) hide show
  1. {baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/CMakeLists.txt +2 -0
  2. {baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/Module.h +1 -0
  3. {baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/OutOfProcessConfigPreconditions.cpp +20 -32
  4. {baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/OutOfProcessConfigPreconditions.h +16 -20
  5. {baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/OutOfProcessConfigPreconditionsImplementation.cpp +63 -58
  6. {baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/OutOfProcessConfigPreconditionsPlugin.json +1 -1
{baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/CMakeLists.txt RENAMED
@@ -34,10 +34,11 @@ set(PLUGIN_OUTOFPROCESSCONFIGPRECONDITIONS_EXAMPLE "Example Text" CACHE STRING "
34
34
  if(BUILD_REFERENCE)
35
35
  add_definitions(-DBUILD_REFERENCE=${BUILD_REFERENCE})
36
36
  endif()
37
37
 
38
38
  find_package(${NAMESPACE}Plugins REQUIRED)
39
+ find_package(${NAMESPACE}Definitions REQUIRED)
39
40
  find_package(${NAMESPACE}Messaging REQUIRED)
40
41
  find_package(CompileSettingsDebug CONFIG REQUIRED)
41
42
 
42
43
  add_library(${MODULE_NAME} SHARED
43
44
  OutOfProcessConfigPreconditions.cpp
@@ -51,10 +52,11 @@ set_target_properties(${MODULE_NAME} PROPERTIES
51
52
 
52
53
  target_link_libraries(${MODULE_NAME}
53
54
  PRIVATE
54
55
  CompileSettingsDebug::CompileSettingsDebug
55
56
  ${NAMESPACE}Plugins::${NAMESPACE}Plugins
57
+ ${NAMESPACE}Definitions::${NAMESPACE}Definitions
56
58
  ${NAMESPACE}Messaging::${NAMESPACE}Messaging)
57
59
 
58
60
  target_include_directories(${MODULE_NAME}
59
61
  PRIVATE
60
62
  $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>)
{baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/Module.h RENAMED
@@ -24,8 +24,9 @@
24
24
  #endif
25
25
 
26
26
  #include <core/core.h>
27
27
  #include <plugins/plugins.h>
28
28
  #include <messaging/messaging.h>
29
+ #include <definitions/definitions.h>
29
30
 
30
31
  #undef EXTERNAL
31
32
  #define EXTERNAL
{baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/OutOfProcessConfigPreconditions.cpp RENAMED
@@ -17,46 +17,49 @@
17
17
  * limitations under the License.
18
18
  */
19
19
 
20
20
  #include "OutOfProcessConfigPreconditions.h"
21
21
  #include <interfaces/IConfiguration.h>
22
+ #include <interfaces/json/JWifiControl.h>
22
23
 
23
24
  namespace Thunder {
24
25
  namespace Plugin {
25
26
 
26
27
  namespace {
27
28
 
28
- static Metadata<OutOfProcessConfigPreconditions>metadata(
29
+ static Metadata<OutOfProcessConfigPreconditions> metadata(
29
30
  // Version
30
31
  1, 0, 0,
31
32
  // Preconditions
32
- {},
33
+ { subsystem::GRAPHICS},
33
34
  // Terminations
34
- {},
35
+ { subsystem::NOT_GRAPHICS},
35
36
  // Controls
36
- {}
37
+ { subsystem::TIME}
37
38
  );
38
39
  }
39
40
 
40
41
  const string OutOfProcessConfigPreconditions::Initialize(PluginHost::IShell* service) {
41
42
  string message;
42
43
 
43
44
  ASSERT(_service == nullptr);
44
45
  ASSERT(service != nullptr);
45
- ASSERT(_implBluetooth == nullptr);
46
+ ASSERT(_implWifiControl == nullptr);
46
47
  ASSERT(_connectionId == 0);
47
48
 
48
49
  _service = service;
49
50
  _service->AddRef();
50
51
  _service->Register(static_cast<RPC::IRemoteConnection::INotification*>(&_notification));
51
52
  _service->Register(static_cast<PluginHost::IShell::ICOMLink::INotification*>(&_notification));
52
53
 
53
- _implBluetooth = service->Root<Exchange::IBluetooth>(_connectionId, timeout, _T("OutOfProcessConfigPreconditionsImplementation"));
54
- if (_implBluetooth == nullptr) {
55
- message = _T("Couldn't create instance of _implBluetooth");
54
+ _implWifiControl = service->Root<Exchange::IWifiControl>(_connectionId, timeout, _T("OutOfProcessConfigPreconditionsImplementation"));
55
+ if (_implWifiControl == nullptr) {
56
+ message = _T("Couldn't create instance of _implWifiControl");
56
57
  } else {
57
- Exchange::IConfiguration* configuration = _implBluetooth->QueryInterface<Exchange::IConfiguration>();
58
+ _implWifiControl->Register(&_notification);
59
+ Exchange::JWifiControl::Register(*this, _implWifiControl);
60
+ Exchange::IConfiguration* configuration = _implWifiControl->QueryInterface<Exchange::IConfiguration>();
58
61
  ASSERT(configuration != nullptr);
59
62
  if (configuration != nullptr) {
60
63
  if (configuration->Configure(service) != Core::ERROR_NONE) {
61
64
  message = _T("OutOfProcessConfigPreconditions could not be configured.");
62
65
  }
@@ -72,15 +75,17 @@ namespace Plugin {
72
75
  ASSERT(_service == service);
73
76
 
74
77
  _service->Unregister(static_cast<RPC::IRemoteConnection::INotification*>(&_notification));
75
78
  _service->Unregister(static_cast<PluginHost::IShell::ICOMLink::INotification*>(&_notification));
76
79
 
77
- if (_implBluetooth != nullptr) {
80
+ if (_implWifiControl != nullptr) {
81
+ Exchange::JWifiControl::Unregister(*this);
82
+ _implWifiControl->Unregister(&_notification);
78
83
 
79
84
  RPC::IRemoteConnection* connection(service->RemoteConnection(_connectionId));
80
- VARIABLE_IS_NOT_USED uint32_t result = _implBluetooth->Release();
81
- _implBluetooth = nullptr;
85
+ VARIABLE_IS_NOT_USED uint32_t result = _implWifiControl->Release();
86
+ _implWifiControl = nullptr;
82
87
 
83
88
  ASSERT((result == Core::ERROR_DESTRUCTION_SUCCEEDED) || (result == Core::ERROR_CONNECTION_CLOSED));
84
89
 
85
90
  // The process can disappear in the meantime...
86
91
  if (connection != nullptr) {
@@ -109,34 +114,17 @@ namespace Plugin {
109
114
  }
110
115
  }
111
116
  void OutOfProcessConfigPreconditions::Dangling(const Core::IUnknown* remote, const uint32_t interfaceId) {
112
117
  ASSERT(remote != nullptr);
113
118
 
114
- if (interfaceId == Exchange::IBluetooth::INotification::ID) {
115
- auto* revokedInterface = remote->QueryInterface<Exchange::IBluetooth::INotification>();
119
+ if (interfaceId == Exchange::IWifiControl::INotification::ID) {
120
+ auto* revokedInterface = remote->QueryInterface<Exchange::IWifiControl::INotification>();
116
121
  if (revokedInterface) {
117
- _implBluetooth->Unregister(revokedInterface);
122
+ _implWifiControl->Unregister(const_cast<Exchange::IWifiControl::INotification*>(revokedInterface));
118
123
  revokedInterface->Release();
119
124
  }
120
125
  }
121
- }
122
-
123
- if (interfaceId == Exchange::IBluetooth::INotification::ID) {
124
- auto* revokedInterface = remote->QueryInterface<Exchange::IBluetooth::INotification>();
125
- if (revokedInterface) {
126
- _implBluetooth->Unregister(revokedInterface);
127
- revokedInterface->Release();
128
- }
129
- }
130
- }
131
126
 
132
- if (interfaceId == Exchange::IBluetooth::INotification::ID) {
133
- auto* revokedInterface = remote->QueryInterface<Exchange::IBluetooth::INotification>();
134
- if (revokedInterface) {
135
- _implBluetooth->Unregister(revokedInterface);
136
- revokedInterface->Release();
137
127
  }
138
- }
139
- }
140
128
 
141
129
  } // Plugin
142
130
  } // Thunder
{baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/OutOfProcessConfigPreconditions.h RENAMED
@@ -18,46 +18,47 @@
18
18
  */
19
19
 
20
20
  #pragma once
21
21
 
22
22
  #include "Module.h"
23
- #include <Y/IBluetooth.h>
23
+ #include <interfaces/IWifiControl.h>
24
+ #include <interfaces/json/JWifiControl.h>
24
25
 
25
26
  namespace Thunder {
26
27
  namespace Plugin {
27
28
 
28
- class OutOfProcessConfigPreconditions : public PluginHost::IPlugin {
29
+ class OutOfProcessConfigPreconditions : public PluginHost::IPlugin, public PluginHost::JSONRPC {
29
30
  public:
30
31
  OutOfProcessConfigPreconditions(const OutOfProcessConfigPreconditions&) = delete;
31
32
  OutOfProcessConfigPreconditions& operator=(const OutOfProcessConfigPreconditions&) = delete;
32
33
  OutOfProcessConfigPreconditions(OutOfProcessConfigPreconditions&&) = delete;
33
34
  OutOfProcessConfigPreconditions& operator=(OutOfProcessConfigPreconditions&&) = delete;
34
35
 
35
36
  OutOfProcessConfigPreconditions()
36
37
  : PluginHost::IPlugin()
38
+ , PluginHost::JSONRPC()
37
39
  , _service(nullptr)
38
40
  , _connectionId(0)
39
- , _implBluetooth(nullptr)
41
+ , _implWifiControl(nullptr)
40
42
  , _notification(*this)
41
43
  {
42
44
  }
43
45
 
44
46
  ~OutOfProcessConfigPreconditions() override = default;
45
- class Notification : public RPC::IRemoteConnection::INotification, public PluginHost::IShell::ICOMLink::INotification, public Exchange::IBluetooth::INotification, public Exchange::IBluetooth::INotification, public Exchange::IBluetooth::INotification {
47
+ private:
48
+ class Notification : public RPC::IRemoteConnection::INotification, public PluginHost::IShell::ICOMLink::INotification, public Exchange::IWifiControl::INotification {
46
49
  public:
47
50
  Notification(const Notification&) = delete;
48
51
  Notification& operator=(const Notification&) = delete;
49
52
  Notification(Notification&&) = delete;
50
53
  Notification& operator=(Notification&&) = delete;
51
54
  Notification() = delete;
52
55
 
53
56
  explicit Notification(OutOfProcessConfigPreconditions& parent)
54
57
  : RPC::IRemoteConnection::INotification()
55
58
  , PluginHost::IShell::ICOMLink::INotification()
56
- , Exchange::IBluetooth::INotification()
57
- , Exchange::IBluetooth::INotification()
58
- , Exchange::IBluetooth::INotification()
59
+ , Exchange::IWifiControl::INotification()
59
60
  , _parent(parent)
60
61
  {
61
62
  }
62
63
 
63
64
  ~Notification() override = default;
@@ -71,26 +72,20 @@ namespace Plugin {
71
72
  }
72
73
 
73
74
  void Dangling(const Core::IUnknown* remote, const uint32_t interfaceId) override {
74
75
  _parent.Dangling(remote, interfaceId);
75
76
  }
76
- void Update(IDevice* device) override {
77
- }
78
- void ScanningStateChanged() override {
79
- }
80
- void AdvertisingStateChanged() override {
81
- }
82
- void ScanningStateChanged() override {
77
+ void NetworkChange() override {
78
+ Exchange::JWifiControl::Event::NetworkChange(_parent);
83
79
  }
84
- void InquiryScanningStateChanged() override {
80
+ void ConnectionChange(const string& ssid) override {
81
+ Exchange::JWifiControl::Event::ConnectionChange(_parent, ssid);
85
82
  }
86
83
  BEGIN_INTERFACE_MAP(Notification)
87
84
  INTERFACE_ENTRY(RPC::IRemoteConnection::INotification)
88
85
  INTERFACE_ENTRY(PluginHost::IShell::ICOMLink::INotification)
89
- INTERFACE_ENTRY(Exchange::IBluetooth::INotification)
90
- INTERFACE_ENTRY(Exchange::IBluetooth::INotification)
91
- INTERFACE_ENTRY(Exchange::IBluetooth::INotification)
86
+ INTERFACE_ENTRY(Exchange::IWifiControl::INotification)
92
87
  END_INTERFACE_MAP
93
88
  private:
94
89
  OutOfProcessConfigPreconditions& _parent;
95
90
  };
96
91
  public:
@@ -101,19 +96,20 @@ namespace Plugin {
101
96
  void Deactivated(RPC::IRemoteConnection* connection);
102
97
  void Dangling(const Core::IUnknown* remote, const uint32_t interfaceId);
103
98
 
104
99
  BEGIN_INTERFACE_MAP(OutOfProcessConfigPreconditions)
105
100
  INTERFACE_ENTRY(PluginHost::IPlugin)
106
- INTERFACE_AGGREGATE(Exchange::IBluetooth, _implBluetooth)
101
+ INTERFACE_ENTRY(PluginHost::IDispatcher)
102
+ INTERFACE_AGGREGATE(Exchange::IWifiControl, _implWifiControl)
107
103
  END_INTERFACE_MAP
108
104
 
109
105
  private:
110
106
  // Timeout (2000ms) may be changed if necessary, however, it must not exceed RPC::CommunicationTimeOut
111
107
  static constexpr uint32_t timeout = 2000;
112
108
 
113
109
  PluginHost::IShell* _service;
114
110
  uint32_t _connectionId;
115
- Exchange::IBluetooth* _implBluetooth;
111
+ Exchange::IWifiControl* _implWifiControl;
116
112
  Core::SinkType<Notification> _notification;
117
113
  };
118
114
  } // Plugin
119
115
  } // Thunder
{baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/OutOfProcessConfigPreconditionsImplementation.cpp RENAMED
@@ -16,158 +16,163 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
19
 
20
20
  #include "Module.h"
21
- #include <Y/IBluetooth.h>
21
+ #include <interfaces/IWifiControl.h>
22
+ #include <interfaces/IConfiguration.h>
22
23
 
23
24
  namespace Thunder {
24
25
  namespace Plugin {
25
26
 
26
- class OutOfProcessConfigPreconditionsImplementation : public Exchange::IBluetooth {
27
+ class OutOfProcessConfigPreconditionsImplementation : public Exchange::IConfiguration, public Exchange::IWifiControl {
27
28
  public:
28
29
  OutOfProcessConfigPreconditionsImplementation(const OutOfProcessConfigPreconditionsImplementation&) = delete;
29
30
  OutOfProcessConfigPreconditionsImplementation& operator=(const OutOfProcessConfigPreconditionsImplementation&) = delete;
30
31
  OutOfProcessConfigPreconditionsImplementation(OutOfProcessConfigPreconditionsImplementation&&) = delete;
31
32
  OutOfProcessConfigPreconditionsImplementation& operator=(OutOfProcessConfigPreconditionsImplementation&&) = delete;
32
33
 
33
34
  OutOfProcessConfigPreconditionsImplementation()
34
- : Exchange::IBluetooth()
35
+ : Exchange::IWifiControl()
35
36
  , _adminLock()
36
- , _bluetoothNotification()
37
+ , _wificontrolNotification()
37
38
  {
38
39
  }
39
40
  ~OutOfProcessConfigPreconditionsImplementation() override = default;
40
41
 
41
42
  private:
42
43
 
43
- class Config : public Core::JSON::Container {
44
+ class PluginConfig : public Core::JSON::Container {
44
45
  public:
45
- Config(const Config&) = delete;
46
- Config& operator=(const Config&) = delete;
47
- Config(Config&&) = delete;
48
- Config& operator=(Config&&) = delete;
46
+ PluginConfig(const PluginConfig&) = delete;
47
+ PluginConfig& operator=(const PluginConfig&) = delete;
48
+ PluginConfig(PluginConfig&&) = delete;
49
+ PluginConfig& operator=(PluginConfig&&) = delete;
49
50
 
50
- Config()
51
+ PluginConfig()
51
52
  : Core::JSON::Container()
52
53
  , Example()
53
54
  {
54
55
  Add(_T("example"), &Example);
55
56
  }
56
- ~Config() override = default;
57
+ ~PluginConfig() override = default;
57
58
  public:
58
59
  Core::JSON::String Example;
59
60
  };
60
61
  public:
61
62
 
62
63
  BEGIN_INTERFACE_MAP(OutOfProcessConfigPreconditionsImplementation)
63
- INTERFACE_ENTRY(Exchange::IBluetooth)
64
+ INTERFACE_ENTRY(Exchange::IConfiguration)
65
+ INTERFACE_ENTRY(Exchange::IWifiControl)
64
66
  END_INTERFACE_MAP
65
67
 
66
- // IBluetooth methods
68
+ // Type aliases copied from interface headers
69
+ using INetworkInfoIterator = RPC::IIteratorType<NetworkInfo, Exchange::ID_WIFICONTROL_NETWORK_INFO_ITERATOR>;
70
+ using ISecurityIterator = RPC::IIteratorType<SecurityInfo, Exchange::ID_WIFICONTROL_SECURITY_INFO_ITERATOR>;
71
+ using IStringIterator = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
67
72
 
68
- uint32_t Register(Exchange::IBluetooth::INotification* notification) override {
73
+ // IWifiControl methods
69
74
 
75
+ uint32_t Register(Exchange::IWifiControl::INotification* notification) override {
70
76
  ASSERT(notification != nullptr);
71
77
 
72
78
  _adminLock.Lock();
73
- auto item = std::find(_bluetoothNotification.begin(), _bluetoothNotification.end(), notification);
74
- ASSERT(item == _bluetoothNotification.end());
79
+ auto item = std::find(_wificontrolNotification.begin(), _wificontrolNotification.end(), notification);
80
+ ASSERT(item == _wificontrolNotification.end());
75
81
 
76
- if (item == _bluetoothNotification.end()) {
82
+ if (item == _wificontrolNotification.end()) {
77
83
  notification->AddRef();
78
- _bluetoothNotification.push_back(notification);
84
+ _wificontrolNotification.push_back(notification);
79
85
  }
80
86
 
81
87
  _adminLock.Unlock();
82
-
88
+ return Core::ERROR_NONE;
83
89
  }
84
90
 
85
- uint32_t Unregister(const Exchange::IBluetooth::INotification* notification) override {
86
-
91
+ uint32_t Unregister(Exchange::IWifiControl::INotification* notification) override {
87
92
  ASSERT(notification != nullptr);
88
93
 
89
94
  _adminLock.Lock();
90
- auto item = std::find(_bluetoothNotification.begin(), _bluetoothNotification.end(), notification);
91
- ASSERT(item != _bluetoothNotification.end());
95
+ auto item = std::find(_wificontrolNotification.begin(), _wificontrolNotification.end(), notification);
96
+ ASSERT(item != _wificontrolNotification.end());
92
97
 
93
- if (item != _bluetoothNotification.end()) {
94
- _bluetoothNotification.erase(item);
98
+ if (item != _wificontrolNotification.end()) {
99
+ _wificontrolNotification.erase(item);
95
100
  notification->Release();
96
101
  }
97
102
  _adminLock.Unlock();
103
+ return Core::ERROR_NONE;
104
+ }
98
105
 
106
+ uint32_t Networks(INetworkInfoIterator*& /* networkInfoList */ /* @out */) const override {
107
+ return Core::ERROR_NONE;
99
108
  }
100
109
 
101
- bool IsScanning() const override {
110
+ uint32_t Securities(const string& /* ssid */ /* @index */, ISecurityIterator*& /* securityMethods */ /* @out */) const override {
102
111
  return Core::ERROR_NONE;
103
112
  }
104
113
 
105
- uint32_t Scan(const bool /* lowEnergy */, const uint16_t /* duration */ /* sec */) override {
114
+ uint32_t Configs(IStringIterator*& /* configs */ /* @out */) const override {
106
115
  return Core::ERROR_NONE;
107
116
  }
108
117
 
109
- uint32_t StopScanning() override {
118
+ uint32_t Config(const string& /* ssid */ /* @index */, ConfigInfo& /* configInfo */ /* @out */) const override {
110
119
  return Core::ERROR_NONE;
111
120
  }
112
121
 
113
- IDevice* Device(const string& /* address */, const IDevice::type /* type */) override {
122
+ uint32_t Config(const string& /* ssid */ /* @index */, const ConfigInfo& /* configInfo */) override {
114
123
  return Core::ERROR_NONE;
115
124
  }
116
125
 
117
- IDevice::IIterator* Devices() override {
126
+ uint32_t Scan() override {
118
127
  return Core::ERROR_NONE;
119
128
  }
120
129
 
121
- uint32_t ForgetDevice(const string& /* address */, const IDevice::type /* type */) override {
130
+ uint32_t AbortScan() override {
122
131
  return Core::ERROR_NONE;
123
132
  }
124
- private:
125
- using BluetoothNotificationContainer = std::vector<Exchange::IBluetooth::INotification*>;
126
133
 
127
- void NotifyUpdate(IDevice* device) const {
128
- _adminLock.Lock();
129
- for (auto* notification : _bluetoothNotification) {
130
- notification->Update(device);
131
- }
132
- _adminLock.Unlock();
134
+ uint32_t Connect(const string& /* configSSID */) override {
135
+ return Core::ERROR_NONE;
133
136
  }
134
137
 
135
- void NotifyScanningStateChanged() const {
136
- _adminLock.Lock();
137
- for (auto* notification : _bluetoothNotification) {
138
- notification->ScanningStateChanged();
139
- }
140
- _adminLock.Unlock();
138
+ uint32_t Disconnect(const string& /* configSSID */) override {
139
+ return Core::ERROR_NONE;
141
140
  }
142
141
 
143
- void NotifyAdvertisingStateChanged() const {
144
- _adminLock.Lock();
145
- for (auto* notification : _bluetoothNotification) {
146
- notification->AdvertisingStateChanged();
147
- }
148
- _adminLock.Unlock();
142
+ uint32_t Status(string& /* connectedSsid */ /* @out */, bool& /* isScanning */ /* @out */) const override {
143
+ return Core::ERROR_NONE;
149
144
  }
150
145
 
151
- void NotifyScanningStateChanged() const {
146
+ uint32_t Configure(PluginHost::IShell* service) override {
147
+ ASSERT(service != nullptr);
148
+ PluginConfig config;
149
+ config.FromString(service->ConfigLine());
150
+ TRACE(Trace::Information, (_T("This is just an example: [%s]"), config.Example.Value().c_str()));
151
+ return Core::ERROR_NONE;
152
+ }
153
+ private:
154
+ using WifiControlNotificationContainer = std::vector<Exchange::IWifiControl::INotification*>;
155
+
156
+ void NotifyNetworkChange() const {
152
157
  _adminLock.Lock();
153
- for (auto* notification : _bluetoothNotification) {
154
- notification->ScanningStateChanged();
158
+ for (auto* notification : _wificontrolNotification) {
159
+ notification->NetworkChange();
155
160
  }
156
161
  _adminLock.Unlock();
157
162
  }
158
163
 
159
- void NotifyInquiryScanningStateChanged() const {
164
+ void NotifyConnectionChange(const string& ssid) const {
160
165
  _adminLock.Lock();
161
- for (auto* notification : _bluetoothNotification) {
162
- notification->InquiryScanningStateChanged();
166
+ for (auto* notification : _wificontrolNotification) {
167
+ notification->ConnectionChange(ssid);
163
168
  }
164
169
  _adminLock.Unlock();
165
170
  }
166
171
 
167
172
  mutable Core::CriticalSection _adminLock;
168
- BluetoothNotificationContainer _bluetoothNotification;
173
+ WifiControlNotificationContainer _wificontrolNotification;
169
174
  };
170
175
 
171
176
  SERVICE_REGISTRATION(OutOfProcessConfigPreconditionsImplementation, 1, 0)
172
177
  } // Plugin
173
178
  } // Thunder
{baseline/home/runner/work/ThunderTools/ThunderTools/ghpages_baseline/PluginSkeletonGenerator/master/latest_raw/OutOfProcessConfigPreconditions → generated/artifacts/PluginSkeleton-OutOfProcessConfigPreconditions}/OutOfProcessConfigPreconditionsPlugin.json RENAMED
@@ -24,8 +24,8 @@
24
24
  }
25
25
  }
26
26
  }
27
27
  },
28
28
  "interface": {
29
- "$cppref": "{cppinterfacedir}/IBluetooth.h"
29
+ "$cppref": "{cppinterfacedir}/IWifiControl.h"
30
30
  }
31
31
  }