2
* Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef MAILCOMMON_FILTERACTIONADDHEADER_H
21
#define MAILCOMMON_FILTERACTIONADDHEADER_H
23
#include "filteractionwithstringlist.h"
25
namespace MailCommon {
27
//=============================================================================
28
// FilterActionAddHeader - add header
29
// Add a header with the given value.
30
//=============================================================================
31
class FilterActionAddHeader: public FilterActionWithStringList
34
FilterActionAddHeader( QObject *parent = 0 );
35
virtual ReturnCode process( ItemContext &context ) const;
36
virtual QWidget* createParamWidget( QWidget *parent ) const;
37
virtual void setParamWidgetValue( QWidget *paramWidget ) const;
38
virtual void applyParamWidgetValue( QWidget *paramWidget );
39
virtual void clearParamWidget( QWidget *paramWidget ) const;
41
virtual QString argsAsString() const;
42
virtual void argsFromString( const QString &argsStr );
44
virtual QString displayString() const;
46
static FilterAction* newAction();