File indexing completed on 2025-04-20 04:33:20
0001 /** 0002 * SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 #include <QSet> 0011 #include <QString> 0012 0013 #include <core/kdeconnectplugin.h> 0014 0015 class PauseMusicPlugin : public KdeConnectPlugin 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 explicit PauseMusicPlugin(QObject *parent, const QVariantList &args); 0021 0022 void receivePacket(const NetworkPacket &np) override; 0023 0024 private: 0025 QSet<QString> pausedSources; 0026 QSet<QString> mutedSinks; 0027 };