summaryrefslogtreecommitdiffstats
path: root/src/PulseAudioQt/indexedpulseobject_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PulseAudioQt/indexedpulseobject_p.h')
-rw-r--r--src/PulseAudioQt/indexedpulseobject_p.h35
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