mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Initial commit for scriptable collection. Just a stub.
This commit is contained in:
parent
1c5671d128
commit
9b4eef061f
@ -89,6 +89,7 @@ set( libGuiSources
|
||||
ExternalResolverGui.cpp
|
||||
resolvers/ScriptResolver.cpp
|
||||
resolvers/QtScriptResolver.cpp
|
||||
resolvers/ScriptCollection.cpp
|
||||
|
||||
utils/ImageRegistry.cpp
|
||||
utils/WidgetDragFilter.cpp
|
||||
|
@ -90,6 +90,9 @@ signals:
|
||||
void changed();
|
||||
|
||||
public slots:
|
||||
//TODO: should be made private and the dbcmd friended
|
||||
// and can probably be moved into database collection
|
||||
// it's a slot so the dynamic hookup will work
|
||||
virtual void addTracks( const QList<QVariant>& newitems ) = 0;
|
||||
virtual void removeTracks( const QDir& dir ) = 0;
|
||||
|
||||
|
38
src/libtomahawk/resolvers/ScriptCollection.cpp
Normal file
38
src/libtomahawk/resolvers/ScriptCollection.cpp
Normal file
@ -0,0 +1,38 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2013, Teo Mrnjavac <teo@kde.org>
|
||||
*
|
||||
* 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 "ScriptCollection.h"
|
||||
|
||||
using namespace Tomahawk;
|
||||
|
||||
|
||||
ScriptCollection::ScriptCollection( const source_ptr& source,
|
||||
const QString& name,
|
||||
QtScriptResolver* resolver,
|
||||
QObject* parent )
|
||||
: Collection( source, name, parent )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
ScriptCollection::~ScriptCollection()
|
||||
{
|
||||
|
||||
}
|
52
src/libtomahawk/resolvers/ScriptCollection.h
Normal file
52
src/libtomahawk/resolvers/ScriptCollection.h
Normal file
@ -0,0 +1,52 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2013, Teo Mrnjavac <teo@kde.org>
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef SCRIPTCOLLECTION_H
|
||||
#define SCRIPTCOLLECTION_H
|
||||
|
||||
#include "resolvers/QtScriptResolver.h"
|
||||
#include "Collection.h"
|
||||
|
||||
#include "Typedefs.h"
|
||||
#include "DllMacro.h"
|
||||
|
||||
|
||||
namespace Tomahawk
|
||||
{
|
||||
|
||||
class DLLEXPORT ScriptCollection : public Collection
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ScriptCollection( const source_ptr& source,
|
||||
const QString& name,
|
||||
QtScriptResolver* resolver,
|
||||
QObject* parent = 0 );
|
||||
virtual ~ScriptCollection();
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
};
|
||||
|
||||
} //ns
|
||||
|
||||
#endif // SCRIPTCOLLECTION_H
|
Loading…
x
Reference in New Issue
Block a user