File indexing completed on 2024-05-12 16:21:15

0001 // SPDX-FileCopyrightText: 2021 Jonah BrĂ¼chert <jbb@kaidan.im>
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 
0005 #include "abstractytmusicmodel.h"
0006 
0007 #include "asyncytmusic.h"
0008 
0009 
0010 AbstractYTMusicModel::AbstractYTMusicModel(QObject *parent)
0011     : QAbstractListModel(parent)
0012 {
0013 }
0014 
0015 bool AbstractYTMusicModel::loading() const
0016 {
0017     return m_loading;
0018 }
0019 
0020 void AbstractYTMusicModel::setLoading(bool loading)
0021 {
0022     if (m_loading == loading)
0023         return;
0024 
0025     m_loading = loading;
0026     Q_EMIT loadingChanged();
0027 }