plugin.cpp
00001 // Author: Mark Kretschmann (C) Copyright 2004 00002 // Copyright: See COPYING file that comes with this distribution 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 TQString& key, const TQString& value ) 00020 { 00021 m_properties[key.lower()] = value; 00022 } 00023 00024 00025 TQString 00026 Plugin::pluginProperty( const TQString& 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 TQString& key ) 00037 { 00038 return m_properties.find( key.lower() ) != m_properties.end(); 00039 } 00040 00041 }