File indexing completed on 2024-07-07 05:16:46

0001 /*
0002     SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef CLIENT_H
0008 #define CLIENT_H
0009 
0010 #include <pulse/introspect.h>
0011 
0012 #include <QMap>
0013 
0014 #include "pulseobject.h"
0015 
0016 namespace QPulseAudio
0017 {
0018 class Client : public PulseObject
0019 {
0020     Q_OBJECT
0021     Q_PROPERTY(QString name READ name NOTIFY nameChanged)
0022 public:
0023     explicit Client(QObject *parent);
0024     ~Client() override;
0025 
0026     void update(const pa_client_info *info);
0027 
0028     QString name() const;
0029 
0030 Q_SIGNALS:
0031     void nameChanged();
0032 
0033 private:
0034     QString m_name;
0035 };
0036 
0037 } // QPulseAudio
0038 
0039 #endif // CLIENT_H