akregator/src

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 
00015 Plugin::~Plugin()
00016 {
00017 }
00018 
00019 
00020 void
00021 Plugin::addPluginProperty( const TQString& key, const TQString& value )
00022 {
00023     m_properties[key.lower()] = value;
00024 }
00025 
00026 
00027 TQString
00028 Plugin::pluginProperty( const TQString& key )
00029 {
00030     if ( m_properties.find( key.lower() ) == m_properties.end() )
00031         return "false";
00032 
00033     return m_properties[key.lower()];
00034 }
00035 
00036 
00037 bool
00038 Plugin::hasPluginProperty( const TQString& key )
00039 {
00040     return m_properties.find( key.lower() ) != m_properties.end();
00041 }
00042 
00043 }