DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dmprismonitor.h
1// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DMPRISMONITOR_H
6#define DMPRISMONITOR_H
7
8#include "dbusinterface.h"
9
10#include <QObject>
11
12class DMPRISMonitor : public QObject
13{
14 Q_OBJECT
15
16public:
17 explicit DMPRISMonitor(QObject *parent = 0);
18
19 void init();
20
21Q_SIGNALS:
22 void mprisAcquired(const QString &path) const;
23 void mprisLost(const QString &path) const;
24
25private Q_SLOTS:
26 void onNameOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner);
27
28private:
29 DBusInterface *m_dbusInter;
30};
31
32#endif // DMPRISMONITOR_H
Definition dbusinterface.h:21
Definition dmprismonitor.h:13