diff --git a/src/models/allalbumsproxymodel.h b/src/models/allalbumsproxymodel.h index a38335cb..f5d4d430 100644 --- a/src/models/allalbumsproxymodel.h +++ b/src/models/allalbumsproxymodel.h @@ -1,56 +1,56 @@ /* * Copyright 2016-2018 Matthieu Gallien * Copyright 2017 Alexander Stippich * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef ALLALBUMSPROXYMODEL_H #define ALLALBUMSPROXYMODEL_H #include "abstractmediaproxymodel.h" #include "elisautils.h" class AllAlbumsProxyModel : public AbstractMediaProxyModel { Q_OBJECT public: - AllAlbumsProxyModel(QObject *parent = nullptr); + explicit AllAlbumsProxyModel(QObject *parent = nullptr); ~AllAlbumsProxyModel() override; Q_SIGNALS: void albumToEnqueue(QList newAlbums, ElisaUtils::PlayListEnqueueMode enqueueMode, ElisaUtils::PlayListEnqueueTriggerPlay triggerPlay); public Q_SLOTS: void enqueueToPlayList(); void replaceAndPlayOfPlayList(); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override; }; #endif // ALLALBUMSPROXYMODEL_H diff --git a/src/models/allartistsproxymodel.h b/src/models/allartistsproxymodel.h index 777ded4f..a9541d3d 100644 --- a/src/models/allartistsproxymodel.h +++ b/src/models/allartistsproxymodel.h @@ -1,56 +1,56 @@ /* * Copyright 2017 Alexander Stippich * Copyright 2018 Matthieu Gallien * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef ALLARTISTSPROXYMODEL_H #define ALLARTISTSPROXYMODEL_H #include "abstractmediaproxymodel.h" #include "elisautils.h" class AllArtistsProxyModel : public AbstractMediaProxyModel { Q_OBJECT public: - AllArtistsProxyModel(QObject *parent = nullptr); + explicit AllArtistsProxyModel(QObject *parent = nullptr); ~AllArtistsProxyModel() override; Q_SIGNALS: void artistToEnqueue(QList artistNames, ElisaUtils::PlayListEnqueueMode enqueueMode, ElisaUtils::PlayListEnqueueTriggerPlay triggerPlay); public Q_SLOTS: void enqueueToPlayList(); void replaceAndPlayOfPlayList(); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override; }; #endif // ALLARTISTSPROXYMODEL_H diff --git a/src/models/alltracksproxymodel.h b/src/models/alltracksproxymodel.h index 3df22877..f8d9bf53 100644 --- a/src/models/alltracksproxymodel.h +++ b/src/models/alltracksproxymodel.h @@ -1,56 +1,56 @@ /* * Copyright 2017 Alexander Stippich * Copyright 2018 Matthieu Gallien * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef ALLTRACKSPROXYMODEL_H #define ALLTRACKSPROXYMODEL_H #include "abstractmediaproxymodel.h" #include "musicaudiotrack.h" #include "elisautils.h" class AllTracksProxyModel : public AbstractMediaProxyModel { Q_OBJECT public: - AllTracksProxyModel(QObject *parent = nullptr); + explicit AllTracksProxyModel(QObject *parent = nullptr); ~AllTracksProxyModel() override; Q_SIGNALS: void trackToEnqueue(QList newTracks, ElisaUtils::PlayListEnqueueMode enqueueMode, ElisaUtils::PlayListEnqueueTriggerPlay triggerPlay); public Q_SLOTS: void enqueueToPlayList(); void replaceAndPlayOfPlayList(); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override; }; #endif // ALLTRACKSPROXYMODEL_H diff --git a/src/models/singlealbumproxymodel.h b/src/models/singlealbumproxymodel.h index 64c454c1..a5aae57f 100644 --- a/src/models/singlealbumproxymodel.h +++ b/src/models/singlealbumproxymodel.h @@ -1,56 +1,56 @@ /* * Copyright 2017 Alexander Stippich * Copyright 2018 Matthieu Gallien * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef SINGLEALBUMPROXYMODEL_H #define SINGLEALBUMPROXYMODEL_H #include "abstractmediaproxymodel.h" #include "musicaudiotrack.h" #include "elisautils.h" class SingleAlbumProxyModel : public AbstractMediaProxyModel { Q_OBJECT public: - SingleAlbumProxyModel(QObject *parent = nullptr); + explicit SingleAlbumProxyModel(QObject *parent = nullptr); ~SingleAlbumProxyModel() override; Q_SIGNALS: void trackToEnqueue(QList newTracks, ElisaUtils::PlayListEnqueueMode enqueueMode, ElisaUtils::PlayListEnqueueTriggerPlay triggerPlay); public Q_SLOTS: void enqueueToPlayList(); void replaceAndPlayOfPlayList(); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override; }; #endif // SINGLEALBUMPROXYMODEL_H diff --git a/src/models/singleartistproxymodel.h b/src/models/singleartistproxymodel.h index 8e556dab..913b8d69 100644 --- a/src/models/singleartistproxymodel.h +++ b/src/models/singleartistproxymodel.h @@ -1,72 +1,72 @@ /* * Copyright 2016-2018 Matthieu Gallien * Copyright 2017 Alexander Stippich * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef SINGLEARTISTPROXYMODEL_H #define SINGLEARTISTPROXYMODEL_H #include "abstractmediaproxymodel.h" #include "elisautils.h" class SingleArtistProxyModel : public AbstractMediaProxyModel { Q_OBJECT Q_PROPERTY(QString artistFilter READ artistFilter WRITE setArtistFilterText NOTIFY artistFilterTextChanged) public: - SingleArtistProxyModel(QObject *parent = nullptr); + explicit SingleArtistProxyModel(QObject *parent = nullptr); ~SingleArtistProxyModel() override; QString artistFilter() const; Q_SIGNALS: void albumToEnqueue(QList newAlbums, ElisaUtils::PlayListEnqueueMode enqueueMode, ElisaUtils::PlayListEnqueueTriggerPlay triggerPlay); public Q_SLOTS: void enqueueToPlayList(); void replaceAndPlayOfPlayList(); void setArtistFilterText(const QString &filterText); Q_SIGNALS: void artistFilterTextChanged(const QString &filterText); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override; QString mArtistFilter; QRegularExpression mArtistExpression; }; #endif // SINGLEARTISTPROXYMODEL_H