File indexing completed on 2024-04-21 15:32:38

0001 /*
0002     SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "client.h"
0008 #include "client_p.h"
0009 
0010 #include "debug.h"
0011 #include "indexedpulseobject_p.h"
0012 
0013 namespace PulseAudioQt
0014 {
0015 Client::Client(QObject *parent)
0016     : IndexedPulseObject(parent)
0017     , d(new ClientPrivate(this))
0018 {
0019 }
0020 
0021 ClientPrivate::ClientPrivate(Client *q)
0022     : q(q)
0023 {
0024 }
0025 
0026 Client::~Client()
0027 {
0028     delete d;
0029 }
0030 
0031 void ClientPrivate::update(const pa_client_info *info)
0032 {
0033     q->IndexedPulseObject::d->updatePulseObject(info);
0034     q->PulseObject::d->updateProperties(info);
0035 }
0036 
0037 } // PulseAudioQt