summaryrefslogtreecommitdiffstats
path: root/akregator/src/plugin.cpp
blob: 599d3972ccd1620ce2445dcf879f862f063ba8a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Author: Mark Kretschmann (C) Copyright 2004
// Copyright: See COPYING file that comes with this distribution

#include "plugin.h"


namespace Akregator {


Plugin::Plugin()
{}


Plugin::~Plugin()
{}


void
Plugin::addPluginProperty( const TQString& key, const TQString& value )
{
    m_properties[key.lower()] = value;
}


TQString
Plugin::pluginProperty( const TQString& key )
{
    if ( m_properties.tqfind( key.lower() ) == m_properties.end() )
        return "false";

    return m_properties[key.lower()];
}


bool
Plugin::hasPluginProperty( const TQString& key )
{
    return m_properties.tqfind( key.lower() ) != m_properties.end();
}

}