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
7namespace Akregator {
8
9
10Plugin::Plugin()
11{
12}
13
14
15Plugin::~Plugin()
16{
17}
18
19
20void
21Plugin::addPluginProperty( const TQString& key, const TQString& value )
22{
23 m_properties[key.lower()] = value;
24}
25
26
27TQString
28Plugin::pluginProperty( const TQString& key )
29{
30 if ( m_properties.find( key.lower() ) == m_properties.end() )
31 return "false";
32
33 return m_properties[key.lower()];
34}
35
36
37bool
38Plugin::hasPluginProperty( const TQString& key )
39{
40 return m_properties.find( key.lower() ) != m_properties.end();
41}
42
43}