SVN_SILENT made messages (.desktop file)
[kdepim.git] / agents / mailfilteragent / filterlogdialog.h
blob85b1418bed2f6d5bcf99e17d53c468f52917d3af
1 /*
2 Copyright (c) 2003 Andreas Gungl <a.gungl@gmx.de>
3 Copyright (c) 2012-2013 Laurent Montel <montel@kde.org>
5 KMail is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License, version 2, as
7 published by the Free Software Foundation.
9 KMail is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
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
18 In addition, as a special exception, the copyright holders give
19 permission to link the code of this program with any edition of
20 the Qt library by Trolltech AS, Norway (or with modified versions
21 of Qt that use the same license as Qt), and distribute linked
22 combinations including the two. You must obey the GNU General
23 Public License in all respects for all of the code used other than
24 Qt. If you modify this file, you may extend this exception to
25 your version of the file, but you are not obligated to do so. If
26 you do not wish to do so, delete this exception statement from
27 your version.
29 #ifndef FILTERLOGDIALOG_H
30 #define FILTERLOGDIALOG_H
32 #include <kdialog.h>
34 class QCheckBox;
35 class QSpinBox;
36 class QGroupBox;
38 /**
39 @short KMail Filter Log Collector.
40 @author Andreas Gungl <a.gungl@gmx.de>
42 The filter log dialog allows a continued observation of the
43 filter log of MailFilterAgent.
45 namespace PimCommon {
46 class PlainTextEditorWidget;
48 class FilterLogDialog : public KDialog
50 Q_OBJECT
52 public:
53 /** constructor */
54 explicit FilterLogDialog( QWidget * parent );
55 ~FilterLogDialog();
56 protected slots:
57 void slotLogEntryAdded( const QString& logEntry );
58 void slotLogShrinked();
59 void slotLogStateChanged();
60 void slotChangeLogDetail();
61 void slotSwitchLogState();
62 void slotChangeLogMemLimit( int value );
64 void slotUser1();
65 void slotUser2();
66 private:
67 void readConfig();
68 void writeConfig();
69 protected:
70 PimCommon::PlainTextEditorWidget * mTextEdit;
71 QCheckBox * mLogActiveBox;
72 QGroupBox * mLogDetailsBox;
73 QCheckBox * mLogPatternDescBox;
74 QCheckBox * mLogRuleEvaluationBox;
75 QCheckBox * mLogPatternResultBox;
76 QCheckBox * mLogFilterActionBox;
77 QSpinBox * mLogMemLimitSpin;
78 bool mIsInitialized;
79 private slots:
80 void slotTextChanged();
83 #endif