QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
829 B

/*
SPDX-FileCopyrightText: 2012 Alex Merry <alex.merry@kdemail.net>
SPDX-License-Identifier: LGPL-2.1-or-later
*/
#pragma once
#include <Plasma/Service>
#include "playercontrol.h"
#include <QWeakPointer>
class Multiplexer;
class PlayerControl;
class KActionCollection;
class MultiplexedService : public Plasma::Service
{
Q_OBJECT
public:
explicit MultiplexedService(Multiplexer *multiplexer, QObject *parent = nullptr);
protected:
Plasma::ServiceJob *createJob(const QString &operation, QMap<QString, QVariant> &parameters) override;
public Q_SLOTS:
void enableGlobalShortcuts();
private Q_SLOTS:
void updateEnabledOperations();
void activePlayerChanged(PlayerContainer *container);
private:
QPointer<PlayerControl> m_control;
KActionCollection *m_actionCollection = nullptr;
};