Debian Codegraph @

src/playlist/navigators/RandomAlbumNavigator.h

raw
1 /****************************************************************************************
2 * Copyright (c) 2008 Nikolaj Hald Nielsen <[email protected]> *
3 * Copyright (c) 2008 Soren Harward <[email protected]> *
4 * Copyright (c) 2010 Nanno Langstraat <[email protected]> *
5 * *
6 * This program is free software; you can redistribute it and/or modify it under *
7 * the terms of the GNU General Public License as published by the Free Software *
8 * Foundation; either version 2 of the License, or (at your option) version 3 or *
9 * any later version accepted by the membership of KDE e.V. (or its successor approved *
10 * by the membership of KDE e.V.), which shall act as a proxy defined in Section 14 of *
11 * version 3 of the license. *
12 * *
13 * This program is distributed in the hope that it will be useful, but WITHOUT ANY *
14 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
15 * PARTICULAR PURPOSE. See the GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License along with *
18 * this program. If not, see <http://www.gnu.org/licenses/>. *
19 ****************************************************************************************/
20
21 #ifndef RANDOMALBUMNAVIGATOR_H
22 #define RANDOMALBUMNAVIGATOR_H
23
24 #include "AlbumNavigator.h"
25
26 namespace Playlist
27 {
28 /**
29 Navigator for playing back albums in random order
30
31 @author Nikolaj Hald Nielsen <[email protected]>
32 @author Soren Harward <[email protected]>
33 */
34
35 class RandomAlbumNavigator : public AlbumNavigator
36 {
37 Q_OBJECT
38
39 public:
40 RandomAlbumNavigator();
41
42 private:
43 //! Override from 'AlbumNavigator'
44 void notifyAlbumsInserted( const QList<AlbumId> &insertedAlbums ) override;
45
46 //! Override from 'NonlinearTrackNavigator'
47 void planOne() override;
48 };
49 }
50
51 #endif