PulseAudio Qt Bindings

module.cpp
1/*
2 SPDX-FileCopyrightText: 2017 David Rosca <nowrep@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "module.h"
8#include "debug.h"
9#include "module_p.h"
10
11#include "context.h"
12#include "indexedpulseobject_p.h"
13
14namespace PulseAudioQt
15{
16Module::Module(QObject *parent)
17 : IndexedPulseObject(parent)
18 , d(new ModulePrivate(this))
19{
20}
21
22ModulePrivate::ModulePrivate(Module *q)
23 : q(q)
24{
25}
26
27ModulePrivate::~ModulePrivate()
28{
29}
30
31void ModulePrivate::update(const pa_module_info *info)
32{
33 q->IndexedPulseObject::d->updatePulseObject(info);
34 q->PulseObject::d->updateProperties(info);
35
36 const QString infoArgument = QString::fromUtf8(info->argument);
37 if (m_argument != infoArgument) {
38 m_argument = infoArgument;
39 Q_EMIT q->argumentChanged();
40 }
41}
42
43Module::~Module()
44{
45}
46
47QString Module::argument() const
48{
49 return d->m_argument;
50}
51
52} // PulseAudioQt
The primary namespace of PulseAudioQt.
Definition card.cpp:17
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.