akregator/src
plugin.cpp00001
00002
00003
00004 #include "plugin.h"
00005
00006
00007 namespace Akregator {
00008
00009
00010 Plugin::Plugin()
00011 {}
00012
00013
00014 Plugin::~Plugin()
00015 {}
00016
00017
00018 void
00019 Plugin::addPluginProperty( const QString& key, const QString& value )
00020 {
00021 m_properties[key.lower()] = value;
00022 }
00023
00024
00025 QString
00026 Plugin::pluginProperty( const QString& key )
00027 {
00028 if ( m_properties.find( key.lower() ) == m_properties.end() )
00029 return "false";
00030
00031 return m_properties[key.lower()];
00032 }
00033
00034
00035 bool
00036 Plugin::hasPluginProperty( const QString& key )
00037 {
00038 return m_properties.find( key.lower() ) != m_properties.end();
00039 }
00040
00041 }
|