summaryrefslogtreecommitdiffstats
path: root/akregator/src/plugin.cpp
blob: a90136b8bf74dd1230ffeabdd041b0afd57ae4d7 (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
42
43
// 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.find( key.lower() ) == m_properties.end() )
        return "false";

    return m_properties[key.lower()];
}


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

}