MCPcopy Create free account
hub / github.com/KDE/kdeconnect-kde / SystemvolumePlugin

Method SystemvolumePlugin

plugins/systemvolume/systemvolumeplugin-win.cpp:217–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215};
216
217SystemvolumePlugin::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
231SystemvolumePlugin::~SystemvolumePlugin()
232{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected