kdeconnect-kde/plugins/pausemusic/pausemusicplugin-win.h

41 lines
908 B
C
Raw Normal View History

2019-08-21 03:38:35 +01:00
/**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
* SPDX-FileCopyrightText: 2019 Piyush Aggarwal <piyushaggarwal002@gmail.com>
2019-08-21 03:38:35 +01:00
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
2019-08-21 03:38:35 +01:00
*/
#ifndef PAUSEMUSICPLUGINWIN_H
#define PAUSEMUSICPLUGINWIN_H
#include <QObject>
#include <QSet>
#include <QString>
#include <core/kdeconnectplugin.h>
#include <mmdeviceapi.h>
#include <endpointvolume.h>
class PauseMusicPlugin
: public KdeConnectPlugin
{
Q_OBJECT
public:
explicit PauseMusicPlugin(QObject* parent, const QVariantList& args);
~PauseMusicPlugin();
bool receivePacket(const NetworkPacket& np) override;
void connected() override { }
private:
IMMDeviceEnumerator *deviceEnumerator;
IMMDevice *defaultDevice;
GUID g_guidMyContext;
IAudioEndpointVolume *endpointVolume;
};
2019-12-22 07:49:55 +00:00
#endif // PAUSEMUSICPLUGINWIN_H