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
|
|
|
*/
|
|
|
|
|
2023-07-21 19:22:59 +01:00
|
|
|
#pragma once
|
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
|
|
|
|
2022-09-10 22:23:52 +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:
|
2022-09-10 22:23:52 +01:00
|
|
|
explicit PauseMusicPlugin(QObject *parent, const QVariantList &args);
|
|
|
|
|
|
|
|
bool receivePacket(const NetworkPacket &np) override;
|
2013-08-13 05:09:14 +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
|
|
|
};
|