• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • filter
filteractionwithcommand.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org>
3  *
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.
8  *
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.
13  *
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.
17  *
18  */
19 
20 #ifndef MAILCOMMON_FILTERACTIONWITHCOMMAND_H
21 #define MAILCOMMON_FILTERACTIONWITHCOMMAND_H
22 
23 #include "filteractionwithurl.h"
24 
25 class KTemporaryFile;
26 
27 namespace MailCommon {
28 
29 class FilterActionWithCommand : public FilterActionWithUrl
30 {
31  Q_OBJECT
32 
33 public:
37  FilterActionWithCommand(const QString &name, const QString &label, QObject *parent = 0 );
38 
42  virtual QWidget *createParamWidget( QWidget *parent ) const;
43 
47  virtual void applyParamWidgetValue( QWidget *paramWidget );
48 
52  virtual void setParamWidgetValue( QWidget *paramWidget ) const;
53 
57  virtual void clearParamWidget( QWidget *paramWidget ) const;
58 
66  virtual QString substituteCommandLineArgsFor( const KMime::Message::Ptr &aMsg,
67  QList<KTemporaryFile*> &aTempFileList ) const;
68 
69  virtual ReturnCode genericProcess( ItemContext &context, bool filtering ) const;
70 };
71 
72 }
73 
74 #endif
QWidget
filteractionwithurl.h
MailCommon::FilterActionWithCommand::createParamWidget
virtual QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionwithcommand.cpp:35
MailCommon::FilterActionWithCommand
Definition: filteractionwithcommand.h:29
QObject
MailCommon::FilterActionWithUrl
Abstract base class for filter actions with a command line as parameter.
Definition: filteractionwithurl.h:47
MailCommon::FilterActionWithCommand::setParamWidgetValue
virtual void setParamWidgetValue(QWidget *paramWidget) const
The filter action shall set it's widget's contents from it's parameter.
Definition: filteractionwithcommand.cpp:45
MailCommon::FilterActionWithCommand::substituteCommandLineArgsFor
virtual QString substituteCommandLineArgsFor(const KMime::Message::Ptr &aMsg, QList< KTemporaryFile * > &aTempFileList) const
Substitutes various placeholders for data from the message resp.
Definition: filteractionwithcommand.cpp:69
MailCommon::FilterAction::label
QString label() const
Returns i18n'd label, ie.
Definition: filteraction.cpp:45
MailCommon::FilterAction::name
QString name() const
Returns identifier name, ie.
Definition: filteraction.cpp:50
MailCommon::FilterAction::ReturnCode
ReturnCode
Describes the possible return codes of filter processing:
Definition: filteraction.h:60
MailCommon::FilterActionWithCommand::FilterActionWithCommand
FilterActionWithCommand(const QString &name, const QString &label, QObject *parent=0)
Creates a new filter action.
Definition: filteractionwithcommand.cpp:30
MailCommon::FilterActionWithCommand::clearParamWidget
virtual void clearParamWidget(QWidget *paramWidget) const
The filter action shall clear it's parameter widget's contents.
Definition: filteractionwithcommand.cpp:50
context
const char * context
Definition: searchpatternedit.cpp:54
MailCommon::FilterActionWithCommand::applyParamWidgetValue
virtual void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionwithcommand.cpp:40
MailCommon::ItemContext
A helper class for the filtering process.
Definition: itemcontext.h:39
MailCommon::FilterActionWithCommand::genericProcess
virtual ReturnCode genericProcess(ItemContext &context, bool filtering) const
Definition: filteractionwithcommand.cpp:173
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal