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.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.h')
-rw-r--r-- | src/PulseAudioQt/indexedpulseobject.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/PulseAudioQt/indexedpulseobject.h b/src/PulseAudioQt/indexedpulseobject.h new file mode 100644 index 0000000..135afb9 --- /dev/null +++ b/src/PulseAudioQt/indexedpulseobject.h @@ -0,0 +1,48 @@ +/* + 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_H +#define INDEXEDPULSEOBJECT_H + +#include <QObject> + +#include "pulseaudioqt_export.h" +#include "pulseobject.h" + +namespace PulseAudioQt +{ +class PULSEAUDIOQT_EXPORT IndexedPulseObject : public PulseObject +{ + Q_OBJECT + Q_PROPERTY(quint32 index READ index CONSTANT) + +public: + ~IndexedPulseObject(); + + /** + * Index of this object. + */ + quint32 index() const; + +protected: + /** @private */ + explicit IndexedPulseObject(QObject *parent); + /** @private */ + class IndexedPulseObjectPrivate *const d; + +private: + // Ensure that we get properly parented. + IndexedPulseObject(); + friend class ClientPrivate; + friend class CardPrivate; + friend class ModulePrivate; + friend class VolumeObjectPrivate; + friend class ProfilePrivate; +}; + +} // PulseAudioQt + +#endif // INDEXEDPULSEOBJECT_H |