PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 36ms app.codeStats 0ms

/src/libtomahawk/database/DatabaseCommand_LoadDynamicPlaylistEntries.h

http://github.com/tomahawk-player/tomahawk
C Header | 70 lines | 39 code | 11 blank | 20 comment | 0 complexity | 7eeb1c10fc058df9bb3ab97fe795e584 MD5 | raw file
 1/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
 2 *
 3 *   Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
 4 *
 5 *   Tomahawk is free software: you can redistribute it and/or modify
 6 *   it under the terms of the GNU General Public License as published by
 7 *   the Free Software Foundation, either version 3 of the License, or
 8 *   (at your option) any later version.
 9 *
10 *   Tomahawk is distributed in the hope that it will be useful,
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *   GNU General Public License for more details.
14 *
15 *   You should have received a copy of the GNU General Public License
16 *   along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef DATABASECOMMAND_LOADDYNAMICPLAYLISTENTRIES_H
20#define DATABASECOMMAND_LOADDYNAMICPLAYLISTENTRIES_H
21
22#include <QObject>
23#include <QVariantMap>
24
25#include "Typedefs.h"
26#include "DatabaseCommand.h"
27#include "DatabaseCommand_LoadPlaylistEntries.h"
28#include "Playlist.h"
29
30namespace Tomahawk
31{
32
33class DatabaseCommand_LoadDynamicPlaylistEntries : public DatabaseCommand_LoadPlaylistEntries
34{
35    Q_OBJECT
36
37public:
38    explicit DatabaseCommand_LoadDynamicPlaylistEntries( QString revision_guid, QObject* parent = 0 )
39    : DatabaseCommand_LoadPlaylistEntries( revision_guid, parent )
40    {
41//        qDebug() << "loaded with:" << revision_guid << guid();
42    }
43
44    virtual void exec( DatabaseImpl* );
45    virtual bool doesMutates() const { return false; }
46    virtual QString commandname() const { return "loaddynamicplaylist"; }
47
48signals:
49    // used if loading an ondemand playlist
50    void done( QString,
51               bool,
52               QString,
53               QList< QVariantMap >,
54               bool );
55    // used when loading a static playlist
56    void done( QString,
57               QList< QString >,
58               QList< QString >,
59               QString,
60               QList< QVariantMap >,
61               bool,
62               QMap< QString, Tomahawk::plentry_ptr >,
63               bool );
64
65private:
66};
67
68}
69
70#endif // DATABASECOMMAND_LOADDYNAMICPLAYLIST_H