PulseAudio Qt Bindings

indexedpulseobject.h
1 /*
2  SPDX-FileCopyrightText: 2021 Nicolas Fella <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef INDEXEDPULSEOBJECT_H
8 #define INDEXEDPULSEOBJECT_H
9 
10 #include <QObject>
11 
12 #include "pulseaudioqt_export.h"
13 #include "pulseobject.h"
14 
15 namespace PulseAudioQt
16 {
17 class PULSEAUDIOQT_EXPORT IndexedPulseObject : public PulseObject
18 {
19  Q_OBJECT
20  Q_PROPERTY(quint32 index READ index CONSTANT)
21 
22 public:
23  ~IndexedPulseObject();
24 
25  /**
26  * Index of this object.
27  */
28  quint32 index() const;
29 
30 protected:
31  /** @private */
32  explicit IndexedPulseObject(QObject *parent);
33  /** @private */
34  class IndexedPulseObjectPrivate *const d;
35 
36 private:
37  // Ensure that we get properly parented.
38  IndexedPulseObject();
39  friend class ClientPrivate;
40  friend class CardPrivate;
41  friend class ModulePrivate;
42  friend class VolumeObjectPrivate;
43  friend class ProfilePrivate;
44 };
45 
46 } // PulseAudioQt
47 
48 #endif // INDEXEDPULSEOBJECT_H
The primary namespace of PulseAudioQt.
Definition: card.cpp:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:12:40 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.