| 215 | }; |
| 216 | |
| 217 | SystemvolumePlugin::SystemvolumePlugin(QObject *parent, const QVariantList &args) |
| 218 | : KdeConnectPlugin(parent, args) |
| 219 | , sinkList() |
| 220 | { |
| 221 | CoInitialize(nullptr); |
| 222 | deviceEnumerator = nullptr; |
| 223 | HRESULT hr = CoCreateInstance(__uuidof(MMDeviceEnumerator), nullptr, CLSCTX_INPROC_SERVER, __uuidof(IMMDeviceEnumerator), (LPVOID *)&(deviceEnumerator)); |
| 224 | valid = (hr == S_OK); |
| 225 | if (!valid) { |
| 226 | qWarning("Initialization failed: Failed to create MMDeviceEnumerator"); |
| 227 | qWarning("Error Code: %lx", hr); |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | SystemvolumePlugin::~SystemvolumePlugin() |
| 232 | { |
nothing calls this directly
no outgoing calls
no test coverage detected