File indexing completed on 2024-11-10 08:03:57
0001 /* 0002 SPDX-FileCopyrightText: 2017 David Rosca <nowrep@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef MODULE_H 0008 #define MODULE_H 0009 0010 #include <pulse/introspect.h> 0011 0012 #include <QMap> 0013 #include <QVariant> 0014 0015 #include "pulseobject.h" 0016 0017 namespace QPulseAudio 0018 { 0019 class Module : public PulseObject 0020 { 0021 Q_OBJECT 0022 Q_PROPERTY(QString name READ name NOTIFY nameChanged) 0023 Q_PROPERTY(QString argument READ argument NOTIFY argumentChanged) 0024 0025 public: 0026 explicit Module(QObject *parent); 0027 0028 void update(const pa_module_info *info); 0029 0030 QString name() const; 0031 QString argument() const; 0032 0033 Q_SIGNALS: 0034 void nameChanged(); 0035 void argumentChanged(); 0036 0037 private: 0038 QString m_name; 0039 QString m_argument; 0040 }; 0041 0042 } // QPulseAudio 0043 0044 #endif // MODULE_H