Music Hub
..
A session-wide music playback service
client_death_observer_p.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2021-2022 UBports Foundation.
3
*
4
* Contact: Alberto Mardegan <mardy@users.sourceforge.net>
5
*
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU Lesser General Public License version 3,
8
* as published by the Free Software Foundation.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef LOMIRI_MEDIAHUBSERVICE_CLIENT_DEATH_OBSERVER_PRIVATE_H
20
#define LOMIRI_MEDIAHUBSERVICE_CLIENT_DEATH_OBSERVER_PRIVATE_H
21
22
#include "
client_death_observer.h
"
23
24
namespace
lomiri
{
25
namespace
MediaHubService {
26
27
class
ClientDeathObserverPrivate
28
{
29
Q_DECLARE_PUBLIC(
ClientDeathObserver
)
30
31
public
:
32
ClientDeathObserverPrivate
(
ClientDeathObserver
*q):
33
q_ptr(q)
34
{
35
}
36
virtual
~ClientDeathObserverPrivate
() =
default
;
37
38
virtual
void
registerForDeathNotifications
(
const
Player::Client
&client) = 0;
39
40
protected
:
41
void
notifyClientDeath
(
const
Player::Client
&client) {
42
Q_Q(
ClientDeathObserver
);
43
Q_EMIT q->clientDied(client);
44
}
45
46
private
:
47
ClientDeathObserver
*q_ptr;
48
};
49
50
}}
// namespace
51
52
#endif
lomiri::MediaHubService::ClientDeathObserverPrivate::ClientDeathObserverPrivate
ClientDeathObserverPrivate(ClientDeathObserver *q)
Definition:
client_death_observer_p.h:32
lomiri::MediaHubService::ClientDeathObserver
Definition:
client_death_observer.h:39
lomiri::MediaHubService::Player::Client
Definition:
player.h:61
client_death_observer.h
lomiri::MediaHubService::ClientDeathObserverPrivate
Definition:
client_death_observer_p.h:27
lomiri::MediaHubService::ClientDeathObserverPrivate::~ClientDeathObserverPrivate
virtual ~ClientDeathObserverPrivate()=default
lomiri::MediaHubService::ClientDeathObserverPrivate::registerForDeathNotifications
virtual void registerForDeathNotifications(const Player::Client &client)=0
lomiri::MediaHubService::ClientDeathObserverPrivate::notifyClientDeath
void notifyClientDeath(const Player::Client &client)
Definition:
client_death_observer_p.h:41
lomiri
Definition:
dbus_utils.h:24
src
service
client_death_observer_p.h
Generated on Fri Dec 16 2022 11:18:10 for Music Hub by
1.8.17