2013-06-06 04:57:06 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
|
2013-06-06 04:57:06 +01:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2013-06-06 04:57:06 +01:00
|
|
|
*/
|
|
|
|
|
2013-08-13 05:09:14 +01:00
|
|
|
#ifndef PAUSEMUSICPLUGIN_H
|
|
|
|
#define PAUSEMUSICPLUGIN_H
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2013-08-13 05:09:14 +01:00
|
|
|
#include <QObject>
|
2013-07-24 22:51:06 +01:00
|
|
|
#include <QSet>
|
|
|
|
#include <QString>
|
|
|
|
|
2014-06-14 15:34:00 +01:00
|
|
|
#include <core/kdeconnectplugin.h>
|
2013-08-13 05:09:14 +01:00
|
|
|
|
|
|
|
class PauseMusicPlugin
|
|
|
|
: public KdeConnectPlugin
|
2013-06-06 04:57:06 +01:00
|
|
|
{
|
2013-08-13 05:09:14 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
2013-06-06 04:57:06 +01:00
|
|
|
public:
|
2017-09-03 20:39:44 +01:00
|
|
|
explicit PauseMusicPlugin(QObject* parent, const QVariantList& args);
|
2013-08-13 05:09:14 +01:00
|
|
|
|
2018-03-04 19:48:51 +00:00
|
|
|
bool receivePacket(const NetworkPacket& np) override;
|
2016-06-20 08:05:02 +01:00
|
|
|
void connected() override { }
|
2013-08-22 02:21:08 +01:00
|
|
|
|
2013-06-06 04:57:06 +01:00
|
|
|
private:
|
2013-07-24 22:51:06 +01:00
|
|
|
QSet<QString> pausedSources;
|
2019-04-28 20:31:39 +01:00
|
|
|
QSet<QString> mutedSinks;
|
2013-06-06 04:57:06 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2013-07-29 17:43:13 +01:00
|
|
|
#endif
|