Port the KGet plugin system to the KDE standard one.
[kdenetwork.git] / kget / core / plugin / plugin.cpp
blob28045fc51e84986b2ee28ad97670af6d10410265
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.
12 #include "plugin.h"
14 #include <kdebug.h>
16 KGetPlugin::KGetPlugin(QObject *parent, const QVariantList &args)
17 : QObject(parent)
19 kDebug(5001) ;
20 Q_UNUSED(args);
23 KGetPlugin::~KGetPlugin()
25 kDebug(5001) ;
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() )
37 return "false";
39 return m_properties[key.toLower()];
42 bool Plugin::hasPluginProperty( const QString& key )
44 return m_properties.find( key.toLower() ) != m_properties.end();