mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 02:54:33 +02:00
Add ScriptPlugin class
This commit is contained in:
@@ -95,6 +95,7 @@ set( libGuiSources
|
||||
resolvers/ScriptObject.cpp
|
||||
resolvers/ScriptLinkGeneratorPlugin.cpp
|
||||
resolvers/ScriptAccount.cpp
|
||||
resolvers/ScriptPlugin.cpp
|
||||
|
||||
utils/DpiScaler.cpp
|
||||
utils/ImageRegistry.cpp
|
||||
|
39
src/libtomahawk/resolvers/ScriptPlugin.cpp
Normal file
39
src/libtomahawk/resolvers/ScriptPlugin.cpp
Normal file
@@ -0,0 +1,39 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright (C) 2014 Dominik Schmidt <domme@tomahawk-player.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 2 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 "ScriptPlugin.h"
|
||||
|
||||
|
||||
using namespace Tomahawk;
|
||||
|
||||
ScriptPlugin::ScriptPlugin( ScriptObject* object )
|
||||
: m_object( object )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ScriptPlugin::~ScriptPlugin()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
ScriptObject*
|
||||
ScriptPlugin::scriptObject() const
|
||||
{
|
||||
return m_object;
|
||||
}
|
44
src/libtomahawk/resolvers/ScriptPlugin.h
Normal file
44
src/libtomahawk/resolvers/ScriptPlugin.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright (C) 2014 Dominik Schmidt <domme@tomahawk-player.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 2 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/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef TOMAHAWK_SCRIPTPLUGIN_H
|
||||
#define TOMAHAWK_SCRIPTPLUGIN_H
|
||||
|
||||
#include "../DllMacro.h"
|
||||
|
||||
namespace Tomahawk {
|
||||
|
||||
class ScriptObject;
|
||||
|
||||
class DLLEXPORT ScriptPlugin
|
||||
{
|
||||
public:
|
||||
ScriptPlugin( ScriptObject* object );
|
||||
virtual ~ScriptPlugin();
|
||||
|
||||
ScriptObject* scriptObject() const;
|
||||
|
||||
private: // TODO: pimple
|
||||
ScriptObject* m_object;
|
||||
|
||||
};
|
||||
|
||||
} // ns: Tomahawk
|
||||
|
||||
#endif // TOMAHAWK_SCRIPTPLUGIN_H
|
Reference in New Issue
Block a user