From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- akregator/src/plugin.cpp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 akregator/src/plugin.cpp (limited to 'akregator/src/plugin.cpp') diff --git a/akregator/src/plugin.cpp b/akregator/src/plugin.cpp new file mode 100644 index 00000000..ad3825ba --- /dev/null +++ b/akregator/src/plugin.cpp @@ -0,0 +1,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 QString& key, const QString& value ) +{ + m_properties[key.lower()] = value; +} + + +QString +Plugin::pluginProperty( const QString& key ) +{ + if ( m_properties.find( key.lower() ) == m_properties.end() ) + return "false"; + + return m_properties[key.lower()]; +} + + +bool +Plugin::hasPluginProperty( const QString& key ) +{ + return m_properties.find( key.lower() ) != m_properties.end(); +} + +} -- cgit v1.2.3