DtkWidget
5.6.0.2
DTK Widget module
src
widgets
private
mpris
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
12
class
DMPRISMonitor
:
public
QObject
13
{
14
Q_OBJECT
15
16
public
:
17
explicit
DMPRISMonitor
(
QObject
*
parent
= 0);
18
19
void
init();
20
21
Q_SIGNALS
:
22
void
mprisAcquired(
const
QString
&path)
const
;
23
void
mprisLost(
const
QString
&path)
const
;
24
25
private
Q_SLOTS
:
26
void
onNameOwnerChanged(
const
QString
&name,
const
QString
&oldOwner,
const
QString
&newOwner);
27
28
private
:
29
DBusInterface
*m_dbusInter;
30
};
31
32
#endif
// DMPRISMONITOR_H
DBusInterface
Definition:
dbusinterface.h:21
DMPRISMonitor
Definition:
dmprismonitor.h:13
QObject
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::Q_SIGNALS
Q_SIGNALSQ_SIGNALS
QObject::Q_SLOTS
Q_SLOTSQ_SLOTS
QObject::parent
QObject * parent() const const
QString
制作者
1.9.3