akregator/src

plugin.cpp
1 // Author: Mark Kretschmann (C) Copyright 2004
2 // Copyright: See COPYING file that comes with this distribution
3 
4 #include "plugin.h"
5 
6 
7 namespace Akregator {
8 
9 
10 Plugin::Plugin()
11 {}
12 
13 
14 Plugin::~Plugin()
15 {}
16 
17 
18 void
19 Plugin::addPluginProperty( const TQString& key, const TQString& value )
20 {
21  m_properties[key.lower()] = value;
22 }
23 
24 
25 TQString
26 Plugin::pluginProperty( const TQString& key )
27 {
28  if ( m_properties.find( key.lower() ) == m_properties.end() )
29  return "false";
30 
31  return m_properties[key.lower()];
32 }
33 
34 
35 bool
36 Plugin::hasPluginProperty( const TQString& key )
37 {
38  return m_properties.find( key.lower() ) != m_properties.end();
39 }
40 
41 }