• 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
  • interfaces
rulewidgethandler.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2 
3  Copyright (c) 2004 Ingo Kloecker <kloecker@kde.org>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 
19  In addition, as a special exception, the copyright holders give
20  permission to link the code of this program with any edition of
21  the Qt library by Trolltech AS, Norway (or with modified versions
22  of Qt that use the same license as Qt), and distribute linked
23  combinations including the two. You must obey the GNU General
24  Public License in all respects for all of the code used other than
25  Qt. If you modify this file, you may extend this exception to
26  your version of the file, but you are not obligated to do so. If
27  you do not wish to do so, delete this exception statement from
28  your version.
29 */
30 
31 #ifndef MAILCOMMON_INTERFACES_RULEWIDGETHANDLER_H
32 #define MAILCOMMON_INTERFACES_RULEWIDGETHANDLER_H
33 
34 #include "searchpattern.h"
35 
36 #include <QByteArray>
37 
38 class QWidget;
39 class QStackedWidget;
40 class QByteArray;
41 class QString;
42 class QObject;
43 
44 namespace MailCommon {
45 
49 class RuleWidgetHandler
50 {
51  public:
52  virtual ~RuleWidgetHandler() {}
53 
54  virtual QWidget * createFunctionWidget( int number,
55  QStackedWidget *functionStack,
56  const QObject *receiver, bool isNepomukSearch ) const = 0;
57  virtual QWidget * createValueWidget( int number,
58  QStackedWidget *valueStack,
59  const QObject *receiver ) const = 0;
60  virtual MailCommon::SearchRule::Function function( const QByteArray & field,
61  const QStackedWidget *functionStack ) const = 0;
62  virtual QString value( const QByteArray & field,
63  const QStackedWidget *functionStack,
64  const QStackedWidget *valueStack ) const = 0;
65  virtual QString prettyValue( const QByteArray & field,
66  const QStackedWidget *functionStack,
67  const QStackedWidget *valueStack ) const = 0;
68  virtual bool handlesField( const QByteArray & field ) const = 0;
69  virtual void reset( QStackedWidget *functionStack,
70  QStackedWidget *valueStack ) const = 0;
71  virtual bool setRule( QStackedWidget *functionStack,
72  QStackedWidget *valueStack,
73  const MailCommon::SearchRule::Ptr rule, bool isNepomukSearch ) const = 0;
74  virtual bool update( const QByteArray & field,
75  QStackedWidget *functionStack,
76  QStackedWidget *valueStack ) const = 0;
77 
78 };
79 
80 }
81 
82 #endif
83 
MailCommon::RuleWidgetHandler::reset
virtual void reset(QStackedWidget *functionStack, QStackedWidget *valueStack) const =0
MailCommon::RuleWidgetHandler::setRule
virtual bool setRule(QStackedWidget *functionStack, QStackedWidget *valueStack, const MailCommon::SearchRule::Ptr rule, bool isNepomukSearch) const =0
QWidget
MailCommon::RuleWidgetHandler::createFunctionWidget
virtual QWidget * createFunctionWidget(int number, QStackedWidget *functionStack, const QObject *receiver, bool isNepomukSearch) const =0
MailCommon::SearchRule::Ptr
boost::shared_ptr< SearchRule > Ptr
Defines a pointer to a search rule.
Definition: searchpattern.h:69
QObject
MailCommon::RuleWidgetHandler::handlesField
virtual bool handlesField(const QByteArray &field) const =0
MailCommon::SearchRule::Function
Function
Describes operators for comparison of field and contents.
Definition: searchpattern.h:80
MailCommon::RuleWidgetHandler::update
virtual bool update(const QByteArray &field, QStackedWidget *functionStack, QStackedWidget *valueStack) const =0
MailCommon::RuleWidgetHandler::prettyValue
virtual QString prettyValue(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const =0
searchpattern.h
MailCommon::RuleWidgetHandler::createValueWidget
virtual QWidget * createValueWidget(int number, QStackedWidget *valueStack, const QObject *receiver) const =0
MailCommon::RuleWidgetHandler
An interface to filter/search rule widget handlers.
Definition: rulewidgethandler.h:49
MailCommon::RuleWidgetHandler::~RuleWidgetHandler
virtual ~RuleWidgetHandler()
Definition: rulewidgethandler.h:52
MailCommon::RuleWidgetHandler::value
virtual QString value(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 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