~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to mailcommon/filter/filterimporterexporter_p.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 2007 Till Adam <adam@kde.org>
 
3
 
 
4
  This program is free software; you can redistribute it and/or modify it
 
5
  under the terms of the GNU General Public License, version 2, as
 
6
  published by the Free Software Foundation.
 
7
 
 
8
  This program is distributed in the hope that it will be useful, but
 
9
  WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
  General Public License for more details.
 
12
 
 
13
  You should have received a copy of the GNU General Public License
 
14
  along with this program; if not, write to the Free Software
 
15
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
16
 
 
17
  In addition, as a special exception, the copyright holders give
 
18
  permission to link the code of this program with any edition of
 
19
  the Qt library by Trolltech AS, Norway (or with modified versions
 
20
  of Qt that use the same license as Qt), and distribute linked
 
21
  combinations including the two.  You must obey the GNU General
 
22
  Public License in all respects for all of the code used other than
 
23
  Qt.  If you modify this file, you may extend this exception to
 
24
  your version of the file, but you are not obligated to do so.  If
 
25
  you do not wish to do so, delete this exception statement from
 
26
  your version.
 
27
*/
 
28
 
 
29
#ifndef MAILCOMMON_FILTERIMPORTEREXPORTER_P_H
 
30
#define MAILCOMMON_FILTERIMPORTEREXPORTER_P_H
 
31
 
 
32
#include <KDialog>
 
33
 
 
34
#include <QList>
 
35
 
 
36
class KPushButton;
 
37
 
 
38
class QListWidget;
 
39
class QWidget;
 
40
 
 
41
namespace MailCommon {
 
42
 
 
43
class MailFilter;
 
44
 
 
45
class FilterSelectionDialog : public KDialog
 
46
{
 
47
  Q_OBJECT
 
48
 
 
49
  public:
 
50
    FilterSelectionDialog( QWidget * parent = 0 );
 
51
    virtual ~FilterSelectionDialog();
 
52
    void setFilters( const QList<MailFilter*> &filters );
 
53
    QList<MailFilter*> selectedFilters() const;
 
54
 
 
55
  public Q_SLOTS:
 
56
    void slotUnselectAllButton();
 
57
    void slotSelectAllButton();
 
58
    void reject();
 
59
  private:
 
60
    QListWidget *filtersListWidget;
 
61
    QList<MailFilter*> originalFilters;
 
62
    KPushButton *selectAllButton;
 
63
    KPushButton *unselectAllButton;
 
64
};
 
65
 
 
66
}
 
67
 
 
68
#endif