kmail

kmpopheaders.cpp
1 /***************************************************************************
2  kmpopheaders.cpp - description
3  -------------------
4  begin : Mon Oct 22 2001
5  copyright : (C) 2001 by Heiko Hund
6  Thorsten Zachmann
7  email : heiko@ist.eigentlich.net
8  T.Zachmann@zagge.de
9  ***************************************************************************/
10 
11 #include <config.h>
12 #include "kmpopheaders.h"
13 #include <kdebug.h>
14 
15 KMPopHeaders::KMPopHeaders()
16  : mAction(NoAction),
17  mId(),
18  mUid(),
19  mRuleMatched(false),
20  mHeader(0)
21 {
22 }
23 
24 KMPopHeaders::~KMPopHeaders(){
25  delete mHeader;
26 }
27 
29 KMPopHeaders::KMPopHeaders(const TQString& aId, const TQString& aUid, KMPopFilterAction aAction)
30  : mAction(aAction),
31  mId(aId),
32  mUid(aUid),
33  mRuleMatched(false),
34  mHeader(0)
35 {
36 }
37 
39 TQString KMPopHeaders::id() const{
40  return mId;
41 }
42 
44 TQString KMPopHeaders::uid() const{
45  return mUid;
46 }
47 
49 KMMessage * KMPopHeaders::header() const{
50  return mHeader;
51 }
52 
54 void KMPopHeaders::setHeader(KMMessage *aHeader){
55  mHeader = aHeader;
56 }
57 
59 KMPopFilterAction KMPopHeaders::action() const{
60  return mAction;
61 }
62 
64 void KMPopHeaders::setAction(KMPopFilterAction aAction){
65  mAction = aAction;
66 }
68 void KMPopHeaders::setRuleMatched(bool b){
69  mRuleMatched = b;
70 }
72 bool KMPopHeaders::ruleMatched(){
73  return mRuleMatched;
74 }
This is a Mime Message.
Definition: kmmessage.h:68