File indexing completed on 2024-05-19 04:49:50

0001 /****************************************************************************************
0002  * Copyright (c) 2008 Nikolaj Hald Nielsen <nhn@kde.org>                                *
0003  * Copyright (c) 2008 Soren Harward <stharward@gmail.com>                               *
0004  * Copyright (c) 2010 Nanno Langstraat <langstr@gmail.com>                              *
0005  *                                                                                      *
0006  * This program is free software; you can redistribute it and/or modify it under        *
0007  * the terms of the GNU General Public License as published by the Free Software        *
0008  * Foundation; either version 2 of the License, or (at your option) version 3 or        *
0009  * any later version accepted by the membership of KDE e.V. (or its successor approved  *
0010  * by the membership of KDE e.V.), which shall act as a proxy defined in Section 14 of  *
0011  * version 3 of the license.                                                            *
0012  *                                                                                      *
0013  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0014  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0015  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0016  *                                                                                      *
0017  * You should have received a copy of the GNU General Public License along with         *
0018  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0019  ****************************************************************************************/
0020 
0021 #ifndef REPEATALBUMNAVIGATOR_H
0022 #define REPEATALBUMNAVIGATOR_H
0023 
0024 #include "AlbumNavigator.h"
0025 
0026 #include "core/meta/forward_declarations.h"
0027 
0028 namespace Playlist
0029 {
0030     /**
0031         Navigator which repeats one album over and over
0032 
0033         @author Nikolaj Hald Nielsen <nhn@kde.org>
0034         @author Soren Harward <stharward@gmail.com>
0035      */
0036     class RepeatAlbumNavigator : public AlbumNavigator
0037     {
0038         Q_OBJECT
0039 
0040         public:
0041             RepeatAlbumNavigator();
0042 
0043         private:
0044             //! Override from 'AlbumNavigator'
0045             void notifyAlbumsInserted( const QList<AlbumId> &insertedAlbums ) override { Q_UNUSED( insertedAlbums ); }
0046 
0047             //! Override from 'NonlinearTrackNavigator'
0048             void planOne() override;
0049     };
0050 }
0051 #endif