1 /* This file is part of the KDE project
3 Copyright (C) 2005 by Enrico Ros <eros.kde@email.it>
4 based on amarok code Copyright (C) 2004 by Mark Kretschmann <markey@web.de>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
16 KGetPlugin::KGetPlugin(QObject
*parent
, const QVariantList
&args
)
23 KGetPlugin::~KGetPlugin()
29 void Plugin::addPluginProperty( const QString& key, const QString& value )
31 m_properties[key.toLower()] = value;
34 QString Plugin::pluginProperty( const QString& key )
36 if ( m_properties.find( key.toLower() ) == m_properties.end() )
39 return m_properties[key.toLower()];
42 bool Plugin::hasPluginProperty( const QString& key )
44 return m_properties.find( key.toLower() ) != m_properties.end();