diff options
author | Simon Rettberg | 2022-08-18 20:27:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-08-18 20:27:25 +0200 |
commit | c48cebd620d3f5330c104d85ac32f0aaffadaa14 (patch) | |
tree | 8fc74d8aa05fcdc75bfcdf93fdc89c0f071692eb /src/PulseAudioQt/indexedpulseobject_p.h | |
parent | When changing default output of card, also set default sink (diff) | |
download | pavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.tar.gz pavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.tar.xz pavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.zip |
Replace everything with new "slxmix" (work in progress)
Diffstat (limited to 'src/PulseAudioQt/indexedpulseobject_p.h')
-rw-r--r-- | src/PulseAudioQt/indexedpulseobject_p.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/PulseAudioQt/indexedpulseobject_p.h b/src/PulseAudioQt/indexedpulseobject_p.h new file mode 100644 index 0000000..d37fae9 --- /dev/null +++ b/src/PulseAudioQt/indexedpulseobject_p.h @@ -0,0 +1,35 @@ +/* + SPDX-FileCopyrightText: 2021 Nicolas Fella <nicolas.fella@gmx.de> + + SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL +*/ +#ifndef INDEXEDPULSEOBJECT_P_H +#define INDEXEDPULSEOBJECT_P_H + +#include "debug.h" + +#include "pulseobject_p.h" + +#include <pulse/introspect.h> + +namespace PulseAudioQt +{ +class IndexedPulseObjectPrivate +{ +public: + explicit IndexedPulseObjectPrivate(IndexedPulseObject *q); + virtual ~IndexedPulseObjectPrivate(); + + PulseObject *q; + quint32 m_index = 0; + + template<typename PAInfo> + void updatePulseObject(PAInfo *info) + { + m_index = info->index; + + q->PulseObject::d->updatePulseObject(info); + } +}; +} +#endif |