• 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
filteractionsetidentity.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_FILTERACTIONSETIDENTITY_H
21 #define MAILCOMMON_FILTERACTIONSETIDENTITY_H
22 
23 #include "filteractionwithuoid.h"
24 
25 namespace MailCommon {
26 
27 //=============================================================================
28 // FilterActionSetIdentity - set identity to
29 // Specify Identity to be used when replying to a message
30 //=============================================================================
31 class FilterActionSetIdentity: public FilterActionWithUOID
32 {
33  Q_OBJECT
34 public:
35  explicit FilterActionSetIdentity( QObject *parent = 0 );
36  ReturnCode process( ItemContext &context, bool applyOnOutbound ) const;
37  SearchRule::RequiredPart requiredPart() const;
38  bool argsFromStringInteractive( const QString &argsStr, const QString &filterName );
39  static FilterAction* newAction();
40 
41  QWidget * createParamWidget( QWidget *parent ) const;
42  void applyParamWidgetValue( QWidget *parent );
43  void setParamWidgetValue( QWidget *parent ) const;
44  void clearParamWidget( QWidget *param ) const;
45 };
46 
47 }
48 
49 #endif
MailCommon::FilterActionSetIdentity::applyParamWidgetValue
void applyParamWidgetValue(QWidget *parent)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionsetidentity.cpp:109
MailCommon::FilterActionSetIdentity::requiredPart
SearchRule::RequiredPart requiredPart() const
Returns the required part from the item that is needed for the action to operate. ...
Definition: filteractionsetidentity.cpp:93
filteractionwithuoid.h
MailCommon::FilterActionWithUOID
Abstract base class for filter actions with a free-form string as parameter.
Definition: filteractionwithuoid.h:41
QWidget
QObject
MailCommon::FilterActionSetIdentity::setParamWidgetValue
void setParamWidgetValue(QWidget *parent) const
The filter action shall set it's widget's contents from it's parameter.
Definition: filteractionsetidentity.cpp:125
MailCommon::FilterAction
Abstract base class for mail filter actions.
Definition: filteraction.h:52
MailCommon::FilterActionSetIdentity::newAction
static FilterAction * newAction()
Definition: filteractionsetidentity.cpp:35
MailCommon::FilterActionSetIdentity::argsFromStringInteractive
bool argsFromStringInteractive(const QString &argsStr, const QString &filterName)
Read extra arguments from given string.
Definition: filteractionsetidentity.cpp:46
MailCommon::FilterActionSetIdentity::process
ReturnCode process(ItemContext &context, bool applyOnOutbound) const
Execute action on given message (inside the item context).
Definition: filteractionsetidentity.cpp:64
MailCommon::FilterActionSetIdentity::createParamWidget
QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionsetidentity.cpp:99
MailCommon::FilterActionSetIdentity
Definition: filteractionsetidentity.h:31
MailCommon::FilterActionSetIdentity::clearParamWidget
void clearParamWidget(QWidget *param) const
The filter action shall clear it's parameter widget's contents.
Definition: filteractionsetidentity.cpp:117
MailCommon::SearchRule::RequiredPart
RequiredPart
Definition: searchpattern.h:104
MailCommon::FilterAction::ReturnCode
ReturnCode
Describes the possible return codes of filter processing:
Definition: filteraction.h:60
context
const char * context
Definition: searchpatternedit.cpp:54
MailCommon::ItemContext
A helper class for the filtering process.
Definition: itemcontext.h:39
MailCommon::FilterActionSetIdentity::FilterActionSetIdentity
FilterActionSetIdentity(QObject *parent=0)
Definition: filteractionsetidentity.cpp:40
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