1
0
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:
Dominik Schmidt
2014-12-08 23:53:28 +01:00
parent 7adac470da
commit 6a239e24d1
3 changed files with 84 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ set( libGuiSources
resolvers/ScriptObject.cpp
resolvers/ScriptLinkGeneratorPlugin.cpp
resolvers/ScriptAccount.cpp
resolvers/ScriptPlugin.cpp
utils/DpiScaler.cpp
utils/ImageRegistry.cpp

View 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;
}

View 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