diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 87223dcb9..2f27ebb7b 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -95,6 +95,7 @@ set( libGuiSources resolvers/ScriptObject.cpp resolvers/ScriptLinkGeneratorPlugin.cpp resolvers/ScriptAccount.cpp + resolvers/ScriptPlugin.cpp utils/DpiScaler.cpp utils/ImageRegistry.cpp diff --git a/src/libtomahawk/resolvers/ScriptPlugin.cpp b/src/libtomahawk/resolvers/ScriptPlugin.cpp new file mode 100644 index 000000000..681349397 --- /dev/null +++ b/src/libtomahawk/resolvers/ScriptPlugin.cpp @@ -0,0 +1,39 @@ +/* === This file is part of Tomahawk Player - === + * + * Copyright (C) 2014 Dominik Schmidt + * + * 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 . + */ +#include "ScriptPlugin.h" + + +using namespace Tomahawk; + +ScriptPlugin::ScriptPlugin( ScriptObject* object ) + : m_object( object ) +{ +} + + +ScriptPlugin::~ScriptPlugin() +{ + +} + + +ScriptObject* +ScriptPlugin::scriptObject() const +{ + return m_object; +} diff --git a/src/libtomahawk/resolvers/ScriptPlugin.h b/src/libtomahawk/resolvers/ScriptPlugin.h new file mode 100644 index 000000000..45db44a5c --- /dev/null +++ b/src/libtomahawk/resolvers/ScriptPlugin.h @@ -0,0 +1,44 @@ +/* === This file is part of Tomahawk Player - === + * + * Copyright (C) 2014 Dominik Schmidt + * + * 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 . + */ + +#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