File indexing completed on 2024-03-24 16:14:38

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 #include "profile.h"
0008 #include "profile_p.h"
0009 
0010 namespace PulseAudioQt
0011 {
0012 Profile::Profile(QObject *parent)
0013     : PulseObject(parent)
0014     , d(new ProfilePrivate(this))
0015 {
0016 }
0017 
0018 Profile::~Profile()
0019 {
0020     delete d;
0021 }
0022 
0023 ProfilePrivate::ProfilePrivate(Profile *q)
0024     : q(q)
0025 {
0026 }
0027 
0028 ProfilePrivate::~ProfilePrivate()
0029 {
0030 }
0031 
0032 QString Profile::description() const
0033 {
0034     return d->m_description;
0035 }
0036 
0037 quint32 Profile::priority() const
0038 {
0039     return d->m_priority;
0040 }
0041 
0042 Profile::Availability Profile::availability() const
0043 {
0044     return d->m_availability;
0045 }
0046 
0047 quint32 Profile::sinkCount() const
0048 {
0049     return d->m_sinkCount;
0050 }
0051 
0052 quint32 Profile::sourceCount() const
0053 {
0054     return d->m_sourceCount;
0055 }
0056 
0057 } // PulseAudioQt