1
0
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:
Uwe L. Korn
2014-10-27 21:11:48 +01:00
parent 8e60f16821
commit 7022b2ad1e
7 changed files with 31 additions and 6 deletions

View File

@@ -336,6 +336,7 @@ list(APPEND libSources
resolvers/ExternalResolver.cpp resolvers/ExternalResolver.cpp
resolvers/Resolver.cpp resolvers/Resolver.cpp
resolvers/ScriptCollection.cpp resolvers/ScriptCollection.cpp
resolvers/ScriptCommand.cpp
resolvers/ScriptCommand_AllArtists.cpp resolvers/ScriptCommand_AllArtists.cpp
resolvers/ScriptCommand_AllAlbums.cpp resolvers/ScriptCommand_AllAlbums.cpp
resolvers/ScriptCommand_AllTracks.cpp resolvers/ScriptCommand_AllTracks.cpp

View 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 )
{
}

View File

@@ -1,6 +1,7 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> === /* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
* *
* Copyright 2013, Teo Mrnjavac <teo@kde.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 * Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@@ -26,12 +27,13 @@ namespace Tomahawk
class ScriptCommand : public QObject class ScriptCommand : public QObject
{ {
Q_OBJECT
public: public:
explicit ScriptCommand( QObject* parent = 0 ) : QObject( parent ) {} explicit ScriptCommand( QObject* parent = nullptr );
virtual ~ScriptCommand() {} virtual ~ScriptCommand() {}
signals: signals:
virtual void done() = 0; void done();
protected: protected:
friend class ScriptCommandQueue; friend class ScriptCommandQueue;

View File

@@ -42,7 +42,6 @@ public:
signals: signals:
void albums( const QList< Tomahawk::album_ptr >& ); void albums( const QList< Tomahawk::album_ptr >& );
void done();
protected: protected:
virtual void exec(); virtual void exec();

View File

@@ -41,7 +41,6 @@ public:
signals: signals:
void artists( const QList< Tomahawk::artist_ptr >& ); void artists( const QList< Tomahawk::artist_ptr >& );
void done();
protected: protected:
void exec() override; void exec() override;

View File

@@ -40,7 +40,6 @@ public:
signals: signals:
void tracks( const QList< Tomahawk::query_ptr >& ); void tracks( const QList< Tomahawk::query_ptr >& );
void done();
protected: protected:
void exec() override; void exec() override;

View File

@@ -45,7 +45,6 @@ public:
signals: signals:
void information( const QString& url, const QSharedPointer<QObject>& variant ); void information( const QString& url, const QSharedPointer<QObject>& variant );
void done();
protected: protected:
void exec() override; void exec() override;