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
#include "kmpopheaders.h"
21
#include "kmmessage.h"
23
KMPopHeaders::KMPopHeaders()
24
: mAction( NoAction ),
27
mRuleMatched( false ),
32
KMPopHeaders::~KMPopHeaders()
37
KMPopHeaders::KMPopHeaders( const QByteArray & id, const QByteArray & uid,
38
KMPopFilterAction action )
42
mRuleMatched( false ),
47
QByteArray KMPopHeaders::id() const
52
QByteArray KMPopHeaders::uid() const
57
KMMessage * KMPopHeaders::header() const
62
void KMPopHeaders::setHeader( KMMessage *header )
67
KMPopFilterAction KMPopHeaders::action() const
72
void KMPopHeaders::setAction( KMPopFilterAction action )
77
void KMPopHeaders::setRuleMatched( bool matched )
79
mRuleMatched = matched;
82
bool KMPopHeaders::ruleMatched() const