summaryrefslogtreecommitdiffstats
path: root/akregator/src/plugin.cpp
blob: 9b413f5cc8db16e3225f19b7e8e52892fc5de29f (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;
}


QString
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();
}

}