• 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
filtercontroller.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net,
3  Author Tobias Koenig <tokoe@kdab.com>
4 
5  This library is free software; you can redistribute it and/or modify it
6  under the terms of the GNU Library General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or (at your
8  option) any later version.
9 
10  This library is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13  License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to the
17  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301, USA.
19 */
20 
21 #ifndef MAILCOMMON_FILTERCONTROLLER_H
22 #define MAILCOMMON_FILTERCONTROLLER_H
23 
24 #include "../mailcommon_export.h"
25 
26 #include <QObject>
27 
28 class QAbstractItemModel;
29 class QAction;
30 class QItemSelectionModel;
31 
32 namespace MailCommon {
33 
34 class MAILCOMMON_EXPORT FilterController : public QObject
35 {
36  Q_OBJECT
37 
38  Q_PROPERTY( QAction *addAction READ addAction )
39  Q_PROPERTY( QAction *editAction READ editAction )
40  Q_PROPERTY( QAction *removeAction READ removeAction )
41  Q_PROPERTY( QAction *moveUpAction READ moveUpAction )
42  Q_PROPERTY( QAction *moveDownAction READ moveDownAction )
43 
44 public:
50  explicit FilterController( QObject *parent = 0 );
51 
55  ~FilterController();
56 
60  QAbstractItemModel *model() const;
61 
66  QItemSelectionModel *selectionModel() const;
67 
71  QAction *addAction() const;
72 
76  QAction *editAction() const;
77 
81  QAction *removeAction() const;
82 
86  QAction *moveUpAction() const;
87 
91  QAction *moveDownAction() const;
92 
93 private:
94  //@cond PRIVATE
95  class Private;
96  Private *const d;
97 
98  Q_PRIVATE_SLOT( d, void selectionChanged() )
99  Q_PRIVATE_SLOT( d, void addFilter() )
100  Q_PRIVATE_SLOT( d, void editFilter() )
101  Q_PRIVATE_SLOT( d, void removeFilter() )
102  Q_PRIVATE_SLOT( d, void moveUpFilter() )
103  Q_PRIVATE_SLOT( d, void moveDownFilter() )
104  //@endcond
105 };
106 
107 }
108 
109 #endif
MailCommon::FilterController
Definition: filtercontroller.h:34
QObject
QAbstractItemModel
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
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