2
Copyright (c) 2001 Heiko Hund <heiko@ist.eigentlich.net>
3
Copyright (c) 2001 Thorsten Zachmann <t.zachmann@zagge.de>
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.
10
This program is distributed in the hope that it will be useful,
11
but 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.
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef KMPopHeaders_H
21
#define KMPopHeaders_H
27
//Keep these corresponding to the column numbers in the dialog for easier coding
28
//or change mapToAction and mapToColumn in PopHeadersView
29
enum KMPopFilterAction { Down=0, Later=1, Delete=2, NoAction=3 };
37
KMPopHeaders( const QByteArray & id, const QByteArray & uid,
38
KMPopFilterAction action );
40
/** returns the id of the message */
41
QByteArray id() const;
43
/** returns the uid of the message */
44
QByteArray uid() const;
46
/** returns the header of the message */
47
KMMessage * header() const;
50
* Set the header of the message.
51
* The header is then managed by this class, which
52
* deletes the header in the destructor.
54
void setHeader( KMMessage *header );
56
KMPopFilterAction action() const;
58
void setAction( KMPopFilterAction action );
60
bool ruleMatched() const;
62
void setRuleMatched( bool matched );
66
KMPopFilterAction mAction;