mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +02:00
Only define done signal once
This commit is contained in:
@@ -336,6 +336,7 @@ list(APPEND libSources
|
||||
resolvers/ExternalResolver.cpp
|
||||
resolvers/Resolver.cpp
|
||||
resolvers/ScriptCollection.cpp
|
||||
resolvers/ScriptCommand.cpp
|
||||
resolvers/ScriptCommand_AllArtists.cpp
|
||||
resolvers/ScriptCommand_AllAlbums.cpp
|
||||
resolvers/ScriptCommand_AllTracks.cpp
|
||||
|
26
src/libtomahawk/resolvers/ScriptCommand.cpp
Normal file
26
src/libtomahawk/resolvers/ScriptCommand.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2013, Teo Mrnjavac <teo@kde.org>
|
||||
* Copyright 2014, Uwe L. Korn <uwelk@xhochy.com>
|
||||
*
|
||||
* Tomahawk is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Tomahawk 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "ScriptCommand.h"
|
||||
|
||||
|
||||
ScriptCommand::ScriptCommand( QObject* parent )
|
||||
: QObject( parent )
|
||||
{
|
||||
}
|
@@ -1,6 +1,7 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2013, Teo Mrnjavac <teo@kde.org>
|
||||
* Copyright 2014, Uwe L. Korn <uwelk@xhochy.com>
|
||||
*
|
||||
* Tomahawk is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -26,12 +27,13 @@ namespace Tomahawk
|
||||
|
||||
class ScriptCommand : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ScriptCommand( QObject* parent = 0 ) : QObject( parent ) {}
|
||||
explicit ScriptCommand( QObject* parent = nullptr );
|
||||
virtual ~ScriptCommand() {}
|
||||
|
||||
signals:
|
||||
virtual void done() = 0;
|
||||
void done();
|
||||
|
||||
protected:
|
||||
friend class ScriptCommandQueue;
|
||||
|
@@ -42,7 +42,6 @@ public:
|
||||
|
||||
signals:
|
||||
void albums( const QList< Tomahawk::album_ptr >& );
|
||||
void done();
|
||||
|
||||
protected:
|
||||
virtual void exec();
|
||||
|
@@ -41,7 +41,6 @@ public:
|
||||
|
||||
signals:
|
||||
void artists( const QList< Tomahawk::artist_ptr >& );
|
||||
void done();
|
||||
|
||||
protected:
|
||||
void exec() override;
|
||||
|
@@ -40,7 +40,6 @@ public:
|
||||
|
||||
signals:
|
||||
void tracks( const QList< Tomahawk::query_ptr >& );
|
||||
void done();
|
||||
|
||||
protected:
|
||||
void exec() override;
|
||||
|
@@ -45,7 +45,6 @@ public:
|
||||
|
||||
signals:
|
||||
void information( const QString& url, const QSharedPointer<QObject>& variant );
|
||||
void done();
|
||||
|
||||
protected:
|
||||
void exec() override;
|
||||
|
Reference in New Issue
Block a user